aboutsummaryrefslogtreecommitdiffstats
path: root/src/components/ble/SimpleWeatherService.cpp
Commit message (Collapse)AuthorAgeFilesLines
* 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.