https://github.com/mathoudebine/nodemcu-dht22-webserver-mqtt-thingsboard
A NodeMCU Lua program to serve current temperature/humidity as web page and send it to ThingsBoard using MQTT
https://github.com/mathoudebine/nodemcu-dht22-webserver-mqtt-thingsboard
Last synced: 2 months ago
JSON representation
A NodeMCU Lua program to serve current temperature/humidity as web page and send it to ThingsBoard using MQTT
- Host: GitHub
- URL: https://github.com/mathoudebine/nodemcu-dht22-webserver-mqtt-thingsboard
- Owner: mathoudebine
- License: unlicense
- Created: 2019-05-05T14:22:16.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2019-05-05T15:17:11.000Z (about 6 years ago)
- Last Synced: 2025-01-22T13:51:37.318Z (4 months ago)
- Language: Lua
- Homepage:
- Size: 242 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# NodeMCU temperature sensor with MQTT/WebServer output
Lua program for NodeMCU open-source IoT platform.The code reads temperature and humidity from a DHT11/DHT22 sensor and serves it as HTML data to every browser consulting its IP.
The data is also uploaded to ThingsBoard MQTT broker to be displayed on your web dashboard.
## Pre-requisites
* A NodeMCU 2nd generation / v1.0 / V2 board (although it may work on any other board with ESP8266 ESP-12E module)
* NodeMCU latest firmware (>= 2.2.1-master_20190405 / SDK 2.2.1(6ab97e9)) with included modules : **dht,http,mqtt,wifi**
* DHT11 / DHT22 / AM2302 sensor
* A Thingsboard server / live demo account with an existing device## HowTo
The .ini files have to be edited with your Wi-Fi access point and Thingsboard account configurationsThe DHT/AM data wire shall be plugged to D4 pin (or edit source code to use another pin)
