ESPurna recipes

contents

Here I will keep a few "recipes" for devices I've flashed with ESPurna, using various sensors.

NodeMCU with HTU21D temperature sensorΒΆ

NodeMCU board, using HTD21D (datasheet) temperature and humidity sensor, clone of the SI70xx (datasheet). This is an I2C sensor, which just needs SCK, SDA, +3.3V and GND.

export PLATFORMIO_BUILD_FLAGS='-DWEB_FORCE_PASS_CHANGE=0 -DALEXA_SUPPORT=0 -DTELNET_SUPPORT=1 -DTHINGSPEAK_SUPPORT=0 -DMQTT_USER=\"device\" -DMQTT_PASS=\"yourpass\" -DMQTT_SERVER=\"192.168.1.160\" -DADMIN_PASS=\"yourpass\" -DWIFI1_GW=\"192.168.1.254\" -DWIFI1_MASK=\"255.255.255.0\" -DWIFI1_DNS=\"192.168.1.254\" -DDOMOTICZ_ENABLED=1 -DMQTT_ENABLED=1 -DSI7021_SUPPORT=1 -DSI7021_ADDRESS=0x00'

Required build flags:

-DSI7021_SUPPORT=1 -DSI7021_ADDRESS=0x00

Build and flash:

pio run -e nodemcu-lolin
pio run -t upload -e nodemcu-lolin