Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/deliaz/esp8266-dht-spiffs
ESP8266 Web interface for DHT22
https://github.com/deliaz/esp8266-dht-spiffs
arduino dht22 esp8266 spiffs web-interface
Last synced: about 2 months ago
JSON representation
ESP8266 Web interface for DHT22
- Host: GitHub
- URL: https://github.com/deliaz/esp8266-dht-spiffs
- Owner: Deliaz
- License: mit
- Created: 2018-05-01T18:09:07.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2018-05-01T18:39:36.000Z (over 6 years ago)
- Last Synced: 2024-10-24T21:59:50.198Z (3 months ago)
- Topics: arduino, dht22, esp8266, spiffs, web-interface
- Language: C++
- Size: 12.7 KB
- Stars: 2
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
## ESP8266 & DHT22 & SPIFFS
Demo for a ESP8266 board with sensor DHT22 and storing static web files using SPIFFS.
I tested it on Wemos D1 mini (V2).This code is built using:
* [FSBrowser](https://github.com/esp8266/Arduino/blob/master/libraries/ESP8266WebServer/examples/FSBrowser/FSBrowser.ino)
* [HttpBasicAuth](https://github.com/esp8266/Arduino/blob/master/libraries/ESP8266WebServer/examples/HttpBasicAuth/HttpBasicAuth.ino)
* [DHT_Unified_Sensor](https://github.com/adafruit/DHT-sensor-library/blob/master/examples/DHT_Unified_Sensor/DHT_Unified_Sensor.ino)There is some debounce time for sensor updates which implemented using great [CreateTimer](http://forum.arduino.cc/index.php?topic=351306.msg2431155#msg2431155) lib.
### Basic Auth
In order to protect `/edit` endpoint (see FSBrowser example) I use Basic Auth.### Run
1. Create your own `credentials.h` from `credentials-example.h` and change settings.
2. Upload code
3. Upload static files into SPIFFS ([docs](https://github.com/esp8266/arduino-esp8266fs-plugin))
4. Open board's IP with port `8080`