aboutsummaryrefslogtreecommitdiffstats
path: root/src/components/ble/SimpleWeatherService.h
Commit message (Collapse)AuthorAgeFilesLines
* Move TemperatureColor to SimpleWeatherService for reusabilityScott2025-11-081-0/+14
|
* weather: Switch to std::optional for Forecast daysFintasticMan2024-11-041-2/+2
| | | | | Also only iterate over the number of days actually in use, rather than MaxNbForecastDays.
* Switch to simpler temperature interfaceFintasticMan2024-11-041-2/+27
|
* weather: Refactor temperature type for type safetyFintasticMan2024-11-041-12/+12
| | | | | | | 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.
* SimpleWeatherService #include <array>Lionel Elie Mamane2024-10-271-1/+1
| | | | | | not <vector> as that is what is actually used. Fixes build failure InfiniTime/src/components/ble/SimpleWeatherService.h:86:18: error: field ‘location’ has incomplete type ‘Pinetime::Controllers::SimpleWeatherService::Location’ {aka ‘std::array<char, 33>’
* Continuous time updatesmark90642024-06-091-2/+2
|
* SimpleWeatherService: Add forecast operator overrides (#2011)Victor Kareh2024-02-101-0/+4
| | | | Any screen that relies on DirtyValue to display up-to-date forecast data would require the struct to provide an operator override for comparison.
* weather: Add function for temperature in FahrenheitFintasticMan2023-12-231-0/+4
|
* Simple Weather ServiceJean-François Milants2023-12-231-2/+3
| | | | Fix code formatting.
* Simple Weather ServiceJean-François Milants2023-12-231-8/+8
| | | | 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/+7
| | | | 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-1/+0
| | | | | | | 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-1/+3
| | | | instance.
* SimpleWeather service : new weather implementationJean-François Milants2023-12-231-15/+23
| | | | Fix recovery firmware and code formatting.
* SimpleWeather service : new weather implementationJean-François Milants2023-12-231-0/+131
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.