This project displays the current weather and time on an SSD1306 OLED display using an ESP32. It fetches weather data from OpenWeatherMap and the current time from Google's NTP servers.
- ESP32С3 Super Mini
- SSD1306 OLED Display
- WiFi connection
Install the following libraries in the Arduino IDE:
ESP32 Pin | OLED Pin |
---|---|
GND | GND |
VCC | VCC |
SDA | SDA |
SCL | SCL |
- Connect your ESP32 to your computer.
- Open the Arduino IDE and install the required libraries.
- Copy and paste the code into the Arduino IDE.
- Replace
YOUR_SSID
,YOUR_PASSWORD
,YOUR_API_KEY
, andYOUR_CITY
with your actual WiFi credentials, OpenWeatherMap API key, and desired city. - Upload the code to your ESP32.
- Open the Serial Monitor to check the status of your connection and data fetching.