Skip to content

ESP32 touchscreen gadget that shows the time, weather, and public transport schedule.

License

Notifications You must be signed in to change notification settings

cxcorp/esp32-home-screen-gadget

Repository files navigation

esp32-clock-weather-bus-schedule-screen

Firmware for a ESP32-2432S032 2.8" TFT (resistive) touchscreen module to provide the following features:

  • Clock
    • Synchronized via NTP
  • Weather for the next 15 hours
    • Temperature and weather symbol, courtesy of the Finnish Meteorological Institute
  • Public transport schedule for a couple of near bus/tram stops in Helsinki, Finland

The device has no interactive features other than waking up the display by tapping the screen.

The device dims the backlight after a short period of inactivity. Then, after further inactivity, the display is put into sleep. The display can be awakened by tapping on it anywhere. While the display is asleep, the weather and transport schedules are updated only once an hour, which is good enough to keep the weather up to date.

The UI is implemented with LVGL. SquareLine Studio software was used to design the UIs, and export the bare UI elements into code. Based on the esp32-smartdisplay library's LVGL configs.

Images

UI design
Mounted on the wall

Developing

  1. Copy include/secrets.h.example to include/secrets.h and fill in the secrets
  2. Uncomment the "Uncomment these if you want to flash over USB" portion of platformio.ini and comment out the OTA portion
  3. Flash to your device

Now that the OTA functionality is flashed, use OTA for following updates if you want to: 4. Copy upload_config.json.example to upload_config.json

  • Set the same OTA password as in secrets.h
  1. Do reverse of step 2 above where you comment out the OTA upload config

Case

Based on: https://www.printables.com/model/577921-p1touch-sunton-esp32-2432s028r-case-alien3d-deck-r

3D files in docs/enclosure

Licenses

Code

MIT License. See LICENSE.

Data

About

ESP32 touchscreen gadget that shows the time, weather, and public transport schedule.

Topics

Resources

License

Stars

Watchers

Forks

Languages