Collect measurements from sensors connected to NodeMCU and transmit them to InfluxDB.
This project is intended as starting point for projects where you have to collect data from a set of sensors connected to ESP8266 and any othe IoT platform that support NodeMCU firmware.
- A ESP8266 module or similar
- Knowledge about NodeMCU platform and Lua programming language
- A NodeMCU firmware compiled with these modules at least: bit,dht,file,gpio,i2c,net,node,rtctime,sntp,tmr,uart,wifi . You can compile it easly using http://nodemcu-build.com/
- ESplorer for edit and upload code to the module
- An accessible instance of InfluxDB server
- You want collect data from sensors without interaction
- You need the most fiability as possible. It means support wifi or influxdb shutdowns with minor data loss.
- You supply energy to module using a mini UPS device.
- Clone or Download this repository
- Edit
config.lua
andconfig_local.lua
according to your environment - Upload all these files to NodeMCU module and reset it
- Inspect output of serial console of module, you should see a succesful wifi connection info.
- Start sending basic measurements to InfluxDB, type on console:
require('main')
- Check data captured on InfluxDB. You will get these measurements:
node_heap
,wifi_signal
,node_event
Bitcoin : 187w4iNVHX44y2PC96AuhP286aUKNjcrXV
Litecoin: LVutsPn9jaoC6SScdxsGMM2uAMvPbjNZXq
PIVX : D81ZZt8jAvWQFaLhtx3f4ntstUCCYBcdne