aboutsummaryrefslogtreecommitdiffstats
path: root/src/components/ble/SimpleWeatherService.cpp
Commit message (Collapse)AuthorAgeFilesLines
* SimpleWeatherService: Add sunrise and sunset data (#2100)Victor Kareh7 days1-3/+68
| | | | | | | * SimpleWeatherService: Add sunrise and sunset data --------- Co-authored-by: mark9064 <30447455+mark9064@users.noreply.github.com>
* weather: Switch to std::optional for Forecast daysFintasticMan2024-11-041-4/+4
| | | | | Also only iterate over the number of days actually in use, rather than MaxNbForecastDays.
* Switch to simpler temperature interfaceFintasticMan2024-11-041-14/+13
|
* weather: Refactor temperature type for type safetyFintasticMan2024-11-041-8/+9
| | | | | | | There is now a Temperature struct in the weather service, which holds the internal representation. There is also a temperature struct in the Applications namespace, which holds the temperature in either Celsius or Fahrenheit.
* Continuous time updatesmark90642024-06-091-1/+1
|
* SimpleWeatherService: Add forecast operator overrides (#2011)Victor Kareh2024-02-101-0/+13
| | | | Any screen that relies on DirtyValue to display up-to-date forecast data would require the struct to provide an operator override for comparison.
* Simple Weather Service : Fix timestampJean-François Milants2024-01-041-2/+2
| | | | | In the documentation, specify that the timestamp is expressed in seconds from epoch (instead of nanoseconds). SimpleWeatherService now uses "localtime" (GetCurrentDateTime()) instead of UTC time.
* Simple Weather ServiceJean-François Milants2023-12-231-1/+1
| | | | | Fix ToUInt64() in SimpleWeatherService.cpp. Fix typo in SimpleWeatherService.md.
* Simple Weather ServiceJean-François Milants2023-12-231-19/+11
| | | | Fix code formatting.
* Simple Weather ServiceJean-François Milants2023-12-231-8/+23
| | | | Store temperatures as int16_t (instead of uint8_t previously). The temperature is expressed in °C * 100.
* Simple Weather ServiceJean-François Milants2023-12-231-7/+9
| | | | Code improvements : icon fields are now typed as Icons, move the location string when creating a new instance of CurrentWeather, fix SimpleWeatherService::CurrentWeather::operator== (location was missing from the comparison).
* Simple Weather Service - code cleaning and improvementsJean-François Milants2023-12-231-6/+6
| | | | | Remove unused Weather debug app. Fix formatting in SimpleWeatherService.cpp.
* Simple Weather Service - code cleaning and improvementsJean-François Milants2023-12-231-24/+15
| | | | | | | Add missing icons (heavy clouds, thunderstorm, snow). Remove unneeded comparison operator (!=), improve conversion of Timestamp and MessageType, order includes. Fix typo in documentation. Remove not related change in StopWatch.
* Simple Weather Service : fix out of bounds access while creating Forecast ↵Jean-François Milants2023-12-231-2/+6
| | | | instance.
* SimpleWeather service : new weather implementationJean-François Milants2023-12-231-34/+37
| | | | Fix recovery firmware and code formatting.
* SimpleWeather service : new weather implementationJean-François Milants2023-12-231-0/+153
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.