A firmware for NodeMCU device connected to a thinger.io server (raspberry PI 3) both running in a local network.
- NodeMCU v1 Board
- DHT22 Sensor
- LiPO Battery 2000mAh
- LiPO Charger module
- DuPont Female connectors
- Install Docker by following steps detailed in docker installation guide
- Download docker image for nodemcu:
sudo docker pull marcelstoer/nodemcu-build
- Build the firmware:
sudo docker run --rm -ti -v ~/samples/nodemcu/nodemcu-firmware:/opt/nodemcu-firmware marcelstoer/nodemcu-build
- Flash the firmware (change "XXXX" by your version number and include your full path):
sudo ./esptool.py -b 115200 write_flash --flash_mode dio --flash_size 4MB 0x0 ~/[PATH_TO_YOUR_PROJECT]/nodemcu-firmware/bin/nodemcu_integer_master_XXXX.bin --verify
- Copy all files to be uploaded to "luatool" folder.
cd lua
cp *.lua ../luatools/luatools
- Flash every file (check your USB Port using dmesg and change "ttyUSBX" to the correct value):
sudo ./luatool.py --port /dev/ttyUSBX -b 115200 --src config.lua --dest config.lua -v
sudo ./luatool.py --port /dev/ttyUSBX -b 115200 --src dht11.lua --dest dht11.lua -v
sudo ./luatool.py --port /dev/ttyUSBX -b 115200 --src init.lua --dest init.lua -v
You can check details of a demo dashboard using 2 nodeMCU devices measuring temperature and humidity in two different rooms of a house HERE.
You can download all files in [Thingiverse](https://www.thingiverse.com/thing:2330811).