'Where IOT meets Blockchain......'
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.
Node JS - node
An Ethereum wallet like Metamask in your browser and set a custom RPC to https://rpc-mumbai.matic.today .
$ git clone https://github.com/UltimateRoman/Hercules
$ cd Hercules
$ npm install -g [email protected]
$ npm install
- Add your Metamask account seed phrase in the .secret file of the repo.
$ 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.
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.
- 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.