https://github.com/roycuadra/iot_server_monitor
A Wi-Fi-based temperature and humidity monitoring system using the ESP8266 and DHT11 sensor.
https://github.com/roycuadra/iot_server_monitor
dht11 my nodemcu-esp8266 oled-display-ssd1306 php
Last synced: 2 months ago
JSON representation
A Wi-Fi-based temperature and humidity monitoring system using the ESP8266 and DHT11 sensor.
- Host: GitHub
- URL: https://github.com/roycuadra/iot_server_monitor
- Owner: roycuadra
- Created: 2025-03-23T08:56:06.000Z (9 months ago)
- Default Branch: main
- Last Pushed: 2025-04-19T16:20:25.000Z (8 months ago)
- Last Synced: 2025-05-16T03:13:01.977Z (7 months ago)
- Topics: dht11, my, nodemcu-esp8266, oled-display-ssd1306, php
- Language: C++
- Homepage:
- Size: 794 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# ESP8266 Server Room Monitor
A Wi-Fi-based temperature and humidity monitoring system using the ESP8266 and DHT11 sensor. Data is shown on an OLED display and can be accessed via a local web server. In case of failed data transmission, readings are stored in the ESP8266's internal file system (LittleFS) and resent later.
## 📦 Features
- Reads temperature and humidity using DHT11
- Displays data on SSD1306 OLED
- Hosts a web server in Access Point (AP) mode
- Sends data to an HTTP server
- Stores failed data in `LittleFS` and retries
- Simple web API for reading or deleting failed data logs
---
## 📷 Screenshots of Web Application
> 📌 **Note:** The web application source code is currently not publicly available..


---
## 🔌 Pin Configuration
| Component | Description | ESP8266 Pin |
|----------------|----------------------------------|-------------|
| DHT11 Sensor | Temperature and humidity sensor | D4 (GPIO2) |
| OLED Display | SSD1306 I2C | SDA: D2 (GPIO4), SCL: D1 (GPIO5) |
| Built-in LED | Status indication | D0 (GPIO16) |
## 📷 Schematic Diagram

## 🌐 Wi-Fi Configuration
- **Mode:** Access Point (AP)
- **SSID:** `Server_Monitoring_AP`
- **Password:** `cuadra1234`
- **Default IP:** `192.168.4.1`
---
## 📁 API Endpoints
| Endpoint | Method | Description |
|----------------|--------|--------------------------------------|
| `/index.php` | GET | Returns latest temp & humidity (JSON)|
| `/data` | GET | Returns contents of failed data file |
| `/delete` | GET | Deletes the failed data file |
---
## 🛠️ Libraries Used
- `ESP8266WiFi.h`
- `WiFiClient.h`
- `ESP8266HTTPClient.h`
- `ESP8266WebServer.h`
- `LittleFS.h`
- `DHT.h`
- `Adafruit_GFX.h`
- `Adafruit_SSD1306.h`
- `Adafruit_Sensor.h`
---
## 📝 Notes
- This project is set up for **DHT11**. For **DHT22**, change the `DHTTYPE`.
- If the HTTP server is unreachable, the data is appended to `/failed_data.txt` in LittleFS.
- The web server allows you to manually check or delete the stored data.
---
## 🧠 Future Improvements
- Add more sensor support (e.g., MQ sensors, PIR)
---
## 💡 Author
> Created by a passionate hardware tinkerer. 😊