aboutsummaryrefslogtreecommitdiffstats
path: root/src/displayapp/screens/Weather.h
Commit message (Collapse)AuthorAgeFilesLines
* navigation: fix greying out the app icon if not enabledHeiko Stuebner2025-07-031-0/+4
| | | | | | | | | | | | | | | | Commit 0aead42fdf51 ("navigation: Add is available (#1847)") added the ability to draw the app icon in grey and in a disabled state when some prerequisits were not met. Only the Navigation app was using this mechanism due to its icons being stored in the external memory and possibly missing. Commit 63e0c4f4efb0 ("Application selection at build time") broke this by always setting the state as true: for (const auto& userApp : userApps) { apps[i++] = Screens::Tile::Applications {userApp.icon, userApp.app, true}; } Fix this by creating an isAvailable() strcuture in the app classes, similar to how the Watchfaces handle the same problem of checking availability.
* weather: Add new app with forecastVictor Kareh2024-02-181-0/+56
|
* Simple Weather Service - code cleaning and improvementsJean-François Milants2023-12-231-58/+0
| | | | | Remove unused Weather debug app. Fix formatting in SimpleWeatherService.cpp.
* SimpleWeather service : new weather implementationJean-François Milants2023-12-231-1/+1
| | | | | | | | | | This new implementation of the weather feature provides a new BLE API and a new weather service. The API uses a single characteristic that allows companion apps to write the weather conditions (current and forecast for the next 5 days). The SimpleWeather service exposes those data as std::optional fields. This new implementation replaces the previous WeahterService. The API is documented in docs/SimpleWeatherService.md.
* Fix code formattingJean-François Milants2023-11-191-0/+2
|
* Application selection at build timeJean-François Milants2023-11-191-1/+12
| | | | | | | A list of "user applications" is built at compile time. It contains all the info needed to create the application at runtime (ptr to a create() function) and to display the app in the application menu. All applications declare a TypeTrait with these information. When a new app must be loaded, DisplayApp first check if this app is a System app (in which case it creates it like it did before). If it's not a System app, it looks for the app in the list of User applications and creates it if it found it. Those changes allow to more easily add new app and to select which app must be built into the firmware. Switch to C++20 (and fix a few issues in SpiMaster.cpp and Watchdog.cpp.
* screens: Remove displayapp parameter from screenRiku Isokoski2023-02-251-0/+1
| | | | | | | | The DisplayApp class isn't used in the Screen base class and most screens, so requiring it is pointless. In this commit, DisplayApp pointers were added to screens which use it and the explicit Screen constructor was removed in those screens.
* compiler warnings, #1035 and #notreported (#1481)cybuzuma2022-12-121-1/+0
|
* Bunch of bugs fixed, improved error handling, debug UI additionAvamander2021-12-041-4/+4
|
* Fixed a few compilation errors, fixed UUID.Avamander2021-12-041-2/+2
|
* Started initial work on the UIAvamander2021-12-041-22/+13
|
* Initial Weather service skeletonAvamander2021-12-041-0/+54