Touchscreen ESP32 CYD weather dashboard with a printable wall enclosure and LED light guide.
  • C++ 75.2%
  • Python 23.7%
  • C 1.1%
Find a file
2026-11-30 13:24:26 +00:00
CydWeather Publish CYD weather dashboard and printable enclosure 2026-11-30 13:24:26 +00:00
enclosure Publish CYD weather dashboard and printable enclosure 2026-11-30 13:24:26 +00:00
.gitignore Publish CYD weather dashboard and printable enclosure 2026-11-30 13:24:26 +00:00
README.md Publish CYD weather dashboard and printable enclosure 2026-11-30 13:24:26 +00:00

CYD Weather Dashboard

A touchscreen weather display for the 2.8-inch ESP32 Cheap Yellow Display. The project includes Arduino firmware and a printable wall enclosure with a clear LED light guide.

  • Now shows current conditions, temperature, feels-like temperature and a 12-hour precipitation outlook.
  • Hourly shows the next six hours. The precipitation chance applies to the hour ending at the listed time.
  • Daylight shows sunrise and sunset and switches to tomorrow's sunrise after dark. Calculations run on the device once its clock is set.
  • Swipe horizontally or tap the bottom tabs to switch pages. Tap the outlook on Now to open the hourly view.
  • The screen dims at sunset and adjusts to the front light sensor. After one hour without touch, the moving screensaver shows the temperature and a rain icon if it is raining. After three hours, the screen switches off. Tap anywhere to wake it.
  • Weather refreshes every 10 minutes. The rear RGB LED indicates conditions and blinks white during an update. Weather updates continue while the screen sleeps.

Configure your location

  1. Copy CydWeather/WeatherLocation.h.example to CydWeather/WeatherLocation.h.
  2. Set kWeatherTitle to the text you want on the display. Use up to 20 ASCII characters.
  3. Enter latitude and longitude in decimal degrees. South and west are negative. The template uses out-of-range placeholders, which the compiler rejects until you replace them. A nearby town centre is sufficient for local weather if you prefer to use approximate coordinates.
  4. Set kWeatherTimezone to the POSIX rule for the location. Use the rule value from the list, including any daylight-saving fields. The sample UTC0 displays UTC. POSIX time-zone rules
  5. Build and upload again after changing any of these settings.

Git ignores the local configuration file. A built firmware image contains the chosen location. The device sends the configured coordinates to Open-Meteo for forecasts. It keeps Wi-Fi details in its own flash. Open-Meteo API

Build and upload

Use the ESP32 Dev Module board and the Huge APP partition scheme in Arduino IDE, or run these Arduino CLI commands from the repository root. Open CydWeather/CydWeather.ino in Arduino IDE if you prefer the graphical workflow.

arduino-cli core install esp32:esp32@3.3.12 --additional-urls https://espressif.github.io/arduino-esp32/package_esp32_index.json
arduino-cli lib install "ArduinoJson@7.4.3" "Adafruit ILI9341@1.7.0" "Adafruit ST7735 and ST7789 Library@1.12.0" "XPT2046_Touchscreen@1.4.0"
arduino-cli board list
arduino-cli compile --fqbn esp32:esp32:esp32:PartitionScheme=huge_app,UploadSpeed=230400 CydWeather
arduino-cli upload -p YOUR_PORT --fqbn esp32:esp32:esp32:PartitionScheme=huge_app,UploadSpeed=230400 CydWeather

Replace YOUR_PORT with the CYD's serial port from arduino-cli board list.

Connect to Wi-Fi

  1. On your phone, join CYD-Weather-Setup using the temporary password on the display. Stay on the setup network if your phone reports that it has no internet.
  2. Open http://192.168.4.1 and enter the name and password of your 2.4 GHz Wi-Fi network.
  3. When the CYD connects, switch your phone back to your normal network. The display synchronises its clock and loads the forecast.

Hold BOOT for three seconds while the board is running to set up a new network. A USB serial monitor can also send setup at 115200 baud. Send commands with a newline.

Hardware and troubleshooting

The firmware uses the resistive XPT2046 touchscreen, front light sensor and rear RGB LED of the 2.8-inch ESP32-2432S028R. The rear LED shows blue for rain, amber for sunshine, green for dry cloudy or clear-night conditions, cyan for fog, ice or snow, and purple for storms. CYD pinout

The serial monitor reports the display driver, Wi-Fi status and weather updates. If the board boots with a blank screen, try panel ili9341, panel st7789, or panel ili9342. The board saves the setting and restarts. Use panel auto to restore automatic selection.

Sunrise and sunset are estimates from the board's coordinates and clock. At high latitudes a missing event appears as a dash. US Naval Observatory solar calculations