How grovety/crowpanel_openweather works
Project type and purpose
• This is an embedded IoT firmware project—a “full-stack” on the ESP32-S3 device—providing a touch-based weather dashboard built with LVGL for the Elecrow Panel Avance 5.0. It includes UI screens, business logic, network communication, and hardware drivers all packaged as an ESP-IDF component.
File structure
• Top-level files:
• CMakeLists.txt, sdkconfig.defaults, idf_component.yml: ESP-IDF build and configuration files.
• firmware/: Flash tool binaries & instructions (bootloader, partition, proj.bin).
• sources/: The main application code divided into:
• adapters/: LVGL port & HTTP request abstraction
• entities/: Domain models (Weather, Location, Units, CurrentTime, WIFI, Brightness) and UI screen composites (weather_screen, wifi_screen)
• usecases/: Application use cases (e.g., AccessPointsUpdate)
• main.cpp: Entry point, initialization, event loop
README for additional insights
• Two screens: Settings (Wi-Fi config, brightness, city) and Weather Display (current + forecast).
• External services: OpenWeather (weather), ip-api (city detection), pool.ntp.org (time sync).
• Build & flash via VSCode ESP-IDF Extension.