Weather precipitation graph using Lilygo T5 2.13" ESP32 E-paper screen. This project displays a precipitation forecast for the next 90 minutes using data from YR.no.
-
Install the Arduino IDE from arduino.cc
-
Add ESP32 board support to Arduino IDE:
- Open Arduino IDE
- Go to File > Preferences
- Add the following URL to the "Additional Boards Manager URLs" field:
https://raw.githubusercontent.com/espressif/arduino-esp32/gh-pages/package_esp32_index.json
- Go to Tools > Board > Boards Manager
- Search for "esp32" and install the "ESP32 by Espressif Systems" package
-
Install required libraries:
- Download libs from https://github.com/Xinyuan-LilyGO/LilyGo-T5-Epaper-Series/tree/master/lib and put them in
Documents\Arduino\libraries
- Go to Sketch > Include Library > Manage Libraries
- Search for and install the following libraries:
- Time
- ArduinoJson
- WiFiManager
- QRcodeDisplay
- Preferences
- Download libs from https://github.com/Xinyuan-LilyGO/LilyGo-T5-Epaper-Series/tree/master/lib and put them in
-
Clone/download this repository and rename the folder
yr-regn-display
-
Create a
config.h
file in the same directory asyr-regn-display.ino
based on theexample.config.h
file -
Open the
yr-regn-display.ino
file in Arduino IDE -
Customize your configuration:
- In the
config.h
file:- Modify the
USER_AGENT
if desired - Set
DEBUG
totrue
orfalse
as needed - set
SHOW_GRAPH_ON_NO_PRECIPITATION
to liking - set
SHOW_BATTERY_INDICATOR
to liking
- Modify the
- In the
-
Select the correct board and port:
- Go to Tools > Board and select "ESP32 Dev Module" or your specific Lilygo T5 board
- Go to Tools > Port and select the appropriate port for your device
-
Upload the sketch to your Lilygo T5 device
Once uploaded, the device will prompt you to connect to Wi-Fi. Once connected, it will fetch precipitation data from YR.no, and display a graph showing the precipitation forecast for the next 90 minutes.
Feel free to open issues or submit pull requests to improve this project.
This work is licensed under Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International
- Weather data provided by the Norwegian Meteorological Institute. Used under the CC BY 4.0 license.