follow this medium article https://link.medium.com/J78zqfMHwW
Python 2.7 + Python https://www.python.org/downloads/
Git https://git-scm.com/downloads
Truffle
npm install -g truffle
Pip
ganache-cli
Flask
Web3.py
GPIO Emulator
*** Make Sure prerequisites are installed***
1.clone the repository into desktop
- install required PiP dependencies
3.instantiate Ganache-cli Private Network.
4.run app
wait a moment. this will take a minute or two.
After deployment of contract in private network, you will see status of each pin in your command line and Emulator on Screen.
5.head into browser and type <Your computer ip>/
and control through UI.
basically, it will write particular pin status on blockchain and retrieve it from the chain. and then activate pin confiuaration accordingly.
boom.
© Salman Dabbakuti