nodemcu sensors


edsard boelen, 16 jan 2017


the esp8266 wemos boards are incredibly cheap and easy to handle, they have a couple of IO ports, enough memory and a lot of storage. The Nodemcu OS makes it even easier to quickly develop and deploy lots of small applications.


tooling


Esplorer is the de facto IDE for nodeMCU, from there you can easily build and upload scripts to the wemos boards.

firmware


with nodemcu cutsom builds you can select which libraries you want to include.




the init.lua is the first script which is being started after bootup, I use the following generic script.

application sources
{"date":"2019-01-16 07:32:12","pm10":"19.7","pm25":"17.6","temp":"17.4","humidity":"68.5"}
{"date":"2019-01-16 07:34:12","pm10":"20.9","pm25":"18.2","temp":"17.5","humidity":"68.6"}



connecting to RIVM