NodeMCU monitAir setup (what i did)

So that I can remember, rather than keep searching my old post and snippets in mattermost and slack.

Using a
NodeMCU v2 https://www.aliexpress.com/item/32593655688.html
SDS011 https://www.aliexpress.com/item/32776783119.html
BME280 https://www.aliexpress.com/item/32848964559.html

Using ESPEasy
https://www.letscontrolit.com/wiki/index.php?title=ESPEasy
but the newer v2 in development firmware.


current release I just used is
Release mega-20190630

Connect nodeMCU to Windows10 PC with a USB->microUSB ‘data’ cable.

It’ll see it as a COM port.
unzip the downloaded firmware file.
run ESP.Easy.flasher.exe, allow it
it should auto find the COM port (Silicon Labs CP210x USB to UART Bridge)
Select ESP_Easy_mega-20190630_dev_ESP8266_4M.bin

Hit Flash ESP Easy FW
(I’m sure there was another step— will add if I find it… could be hit the button marked FLASH on the nodeMCU?)

<TBC.> off to have some food

Once it’s finished RESET the device.
Wait and find it on the network.
It should be at http:// …

Go to the
TOOLS tab

Summary

Click the Advanced button and then tick
Rule Setting - Rules:
(both should be ticked Rules and Old Engine
NTP
Tick Use NTP and set to uk.pool.ntp.org
make sure DST Settings DST: (bottom of that list) us UNticked
continue down, make sure Serial Settings Enable Serial port is UNticked
further down.
Special and Experimental Settings
Restart WiFi Lost Conn: TICKED
CPU Eco Mode: TICKED
Hit SUBMIT

CONFIG Tab

Summary

Unit Name = CHASN-
Unit = 1
Append Unit Number to hostname = TICKED
(set an Admin password if you want, but remember it, probably best after setting everything up)

CONTROLLERS Tab

Summary

Hit Edit
Protocol = OpenHAB MQTT
Controller Hostname = mqtt.connectedhumber.org
Controller User = connectedhumber
Controller Password = <the password, you’ll need to ask ;-)>
tick Enabled at the bottom and Submit

Hardware tab

Summary

check I2C is set to GPIO-4 (D2) for SDA & GPIO-5 (D1) for SCL
and Submit

- Pull the power and attach the hardware
Attach the BME280 and SDS011

Summary

BME280
3V3 to 3v3
GND to GND
SCL to D1
SDA to D2

SDS011
TXD to D7
RXD to D8
5V to Vin
GNS to GND

Power up again
You should hear the SDS fan spinning and LEDs flashing ever second
DEVICES tab

Summary

Add the BME280
Click EDIT
Select P028 - Environment - BMx280
Name = BME
Enabled = Tick
I2C = 0x76 (noramly, it could be 0x77, you can check on Tools Tab - Interfaces - I2C Scan)
Temperature offset - (This can be set after the device has been in use for a while and you know the offset, one of mine is -6.6C)

Send to Controller = UNticked
Set all Decimal places to 1 for each reading

Add the SDS011
Select P056 - Dust - SDS011/018/198 (also works with 021)
Name = SDS
Enabled = ticked
Serial Port = HW Serial0 swap (etc)
Sleep = 6
Send to Controller = UNticked
both values PM2.5 & PM10 decimals to 1

RULES tab

Summary

copy and paste

On SDS#PM10 do
  publish airquality/data,{"dev":"%sysname%%mac_int%-%unit%","PM25":"[SDS#PM2.5]","PM10":"[SDS#PM10]","temp":"[BMP#Temperature]","pressure":"[BMP#Pressure]","humidity":"[BMP#Humidity]","timestamp":"%sysyear_0%-%sysmonth_0%-%sysday_0%T%systime%+00:00"}
endon

Submit

Reboot the device

1 Like

Seems I can move all setup to , flashing and setting WiFi.
Uploading setting with
Tools (tab) / Setting / Load
uploading config.dat
then adding the rule

Nice! Sounds like a pretty easy way to setup a new device quickly to start taking some readings.