| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
|
| |
* SimpleWeatherService: Add sunrise and sunset data
---------
Co-authored-by: mark9064 <30447455+mark9064@users.noreply.github.com>
|
| | |
|
| |
|
| |
Store 2 days steps history and display yesterday's steps on the Steps screen
|
| | |
|
| |
|
|
|
| |
Include null terminator in the bytes copied.
Set notif.size as it is done in AlertNotificationService.cpp and
AlertNotificationClient.cpp.
|
| | |
|
| | |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
| |
* Expose SystemTask dependency controllers
Expose NotificationManager and Settings for use by the feature in next commit.
This is a memory efficient way for accessing SystemTask dependencies from
controllers that have SystemTask injected as a dependency.
Looks like each direct dependency injection uses 4 bytes RAM.
As InfiniTime is close to running out of RAM (using 16 more bytes causes build
to fail with "ld: region RAM overflowed with stack") it might be helpful to use
this approach more.
* Add setting to disable DFU and FS access
|
| | |
|
| |\ |
|
| | |
| |
| |
| |
| |
| | |
Prevents reading uninitialised memory if notification gets cut off due
to being more than 100 chars. The last character is assumed to be \0, but
it is actually uninitialised.
|
| | |
| |
| |
| |
| | |
Also only iterate over the number of days actually in use, rather than
MaxNbForecastDays.
|
| | | |
|
| | |
| |
| |
| |
| |
| |
| | |
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.
|
| | |
| |
| |
| |
| |
| | |
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>’
|
| | |
| |
| |
| |
| | |
Add `FreeRTOS.h` include for the directly used data type `TickType_t` in the header
and the function `xTaskGetTickCount` from FreeRTOS's `task.h`
|
| | |
| |
| |
| |
| |
| | |
State transitions now happen immediately where possible
This simplifies state management in general,
and prevents bugs such as the chime issue from occurring in the first place
|
| | | |
|
| | | |
|
| | | |
|
| | |
| |
| |
| | |
If a DFU is restarted, the write indices aren't reset causing the image to be written out of bounds. The CRC check prevents the faulty image from booting but LittleFS still gets nuked.
|
| | |
| |
| |
| | |
Any screen that relies on DirtyValue to display up-to-date forecast data
would require the struct to provide an operator override for comparison.
|
| | | |
|
| | |
| |
| |
| |
| | |
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.
|
| | | |
|
| | |
| |
| |
| |
| | |
Fix ToUInt64() in SimpleWeatherService.cpp.
Fix typo in SimpleWeatherService.md.
|
| | |
| |
| |
| | |
Fix code formatting.
|
| | |
| |
| |
| | |
Store temperatures as int16_t (instead of uint8_t previously). The temperature is expressed in °C * 100.
|
| | |
| |
| |
| | |
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).
|
| | |
| |
| |
| |
| | |
Remove unused Weather debug app.
Fix formatting in SimpleWeatherService.cpp.
|
| | |
| |
| |
| |
| |
| |
| | |
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.
|
| | |
| |
| |
| | |
instance.
|
| | |
| |
| |
| | |
Fix recovery firmware and code formatting.
|
| | |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
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.
|
| | | |
|
| | |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
creation. (#1774)
This commit changes the order for the notification struct fields to allow the creation of notifications using a string literal.
```cpp
NotificationManager::Notifiation notification {
"String literal with notification text",
42,
NotificationManager::Categories::SimpleAlert
};
```
Co-authored-by: minacode <minamoto9@web.de>
|
| | | |
|
| | | |
|
| | | |
|
| | | |
|
| | | |
|
| |/ |
|
| |
|
|
| |
DateTimeController can provide everything we need.
|
| |
|
|
|
|
| |
The systick doesn't need to be updated when setting time.
Also removed unused nrf_rtc.h includes.
|
| |
|
|
|
|
| |
Fix warnings.
Some clang-formatting was necessary.
DebugPins is unused and was removed.
|
| |
|
|
| |
In my PR updating clang-format, I forgot to also format the headers.
|
| |
|
|
|
| |
Also add configuration options only available in 13 and 14.
Fixes warning about -fstack-usage in clang-tidy check.
|
| |
|
|
|
| |
Don't enable coding conventions from unrelated projects. Only enable
generic checks.
|
| | |
|
| |
|
|
| |
* Min/Max function fixes
* Faster way to calculate day start
|