Skip to content

An IoT-powered Home Automation system with Blockchain-based Billing and Payments.

Notifications You must be signed in to change notification settings

alanphil2k01/Hercules

 
 

Repository files navigation

Hercules

'Where IOT meets Blockchain......'

By Team Delta_Codinators


Hercules is an IoT-powered Home-Automation system with a Blockchain-based Electricity consumption recording, billing and payment mechanism. It provides a dApp for users to control their home appliances with just the click of buttons on the dApp. Home-Automation is executed using the Bolt IoT Wi-Fi Module and the dApp can be deployed on Matic.
The electricity consumption of the user is analysed and stored on the Blockchain and Billing is done accordingly. This amount can be paid in crypto to the Electricity Board.

Hercules Layout


Hercules_diagram


Running Hercules

Install Dependencies

Node JS - node

An Ethereum wallet like Metamask in your browser and set a custom RPC to https://rpc-mumbai.matic.today .

Clone the repo

$ git clone https://github.com/UltimateRoman/Hercules
$ cd Hercules

Install Truffle and other dependencies

$ npm install -g [email protected]
$ npm install
  • Add your Metamask account seed phrase in the .secret file of the repo.

Run the dApp

$ truffle migrate --network matic
$ npm run start
  • Visit localhost:3000 and connect your Metmask account.
  • Visit '/user' page and click 'Add me as new user' to use Hercules services.

Using Home-Automation

For performing Home Automation features of Hercules, a Bolt Wi-Fi Module is required. Connect your Home Appliances to pins 0-4 of the module using the circuit diagram below.

Bolt_diagram

  • Enter your Bolt device credentials in the '/user' page now and click 'update'.
  • Enjoy Home-Automation with Hercules using the buttons provided.
  • Units you have consumed will be calculated and bill amount is set accordingly.
  • Pay the bill once you wish to.

About

An IoT-powered Home Automation system with Blockchain-based Billing and Payments.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 81.8%
  • Solidity 7.6%
  • HTML 5.9%
  • CSS 4.7%