Difference between revisions of "User:Kieranc/Infinitime-Weather"

From PINE64
Jump to navigation Jump to search
(Initial draft of info about weather data on Infinitime)
 
m (Fxc moved page Infinitime-Weather to User:Kieranc/Infinitime-Weather: Moved to userspace for drafting purposes)
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
==Infinitime Weather==
Infinitime features a weather subsystem which stores weather data on the watch in a timeline which can be queried by apps or watchfaces. It can store many different types of data (see [https://github.com/InfiniTimeOrg/InfiniTime/blob/main/src/components/ble/weather/WeatherData.h here]) and each entry includes a timestamp and an expiry time. When entries expire they are removed from the timeline automatically.


Infinitime features a weather subsystem which stores weather data on the watch in a timeline which can be queried by apps or watchfaces. It can store many different types of data ([https://github.com/InfiniTimeOrg/InfiniTime/blob/main/src/components/ble/weather/WeatherData.h see here]) and each entry includes a timestamp and an expiry time. When entries expire they are removed from the timeline automatically.
== Sending weather data to the watch ==
 
===Sending weather data to the watch===


Weather data must be sent to the watch via a companion app, currently Gadgetbridge and ITD have this functionality implemented.  
Weather data must be sent to the watch via a companion app, currently Gadgetbridge and ITD have this functionality implemented.  
Line 9: Line 7:
Gadgetbridge is slightly more difficult to set up as it requires a separate app to fetch the weather data. Details are available on the [https://codeberg.org/Freeyourgadget/Gadgetbridge/wiki/Weather Gadgetbridge wiki]. There is currently (May 2023) a bug in the Pinetime implementation within Gadgetbridge which sets the expiry time to 5 minutes instead of the desired 6 hours, it should be resolved in the next available Gadgetbridge release.
Gadgetbridge is slightly more difficult to set up as it requires a separate app to fetch the weather data. Details are available on the [https://codeberg.org/Freeyourgadget/Gadgetbridge/wiki/Weather Gadgetbridge wiki]. There is currently (May 2023) a bug in the Pinetime implementation within Gadgetbridge which sets the expiry time to 5 minutes instead of the desired 6 hours, it should be resolved in the next available Gadgetbridge release.


===Displaying weather data===
== Displaying weather data ==
 
Currently there are 2 ways to display weather data on the watch, a debug app  which is disabled by default, and the PineTimeStyle watchface.
Currently there are 2 ways to display weather data on the watch, a debug app  which is disabled by default, and the PineTimeStyle watchface.
<Add details for enabling debug app>
 
TODO: Add details for enabling debug app
 
PineTimeStyle can display basic weather data in the sidebar when the option is enabled, see details here [[PineTimeStyle]]
PineTimeStyle can display basic weather data in the sidebar when the option is enabled, see details here [[PineTimeStyle]]

Latest revision as of 11:03, 2 May 2023

Infinitime features a weather subsystem which stores weather data on the watch in a timeline which can be queried by apps or watchfaces. It can store many different types of data (see here) and each entry includes a timestamp and an expiry time. When entries expire they are removed from the timeline automatically.

Sending weather data to the watch

Weather data must be sent to the watch via a companion app, currently Gadgetbridge and ITD have this functionality implemented. ITD is the easiest option as the feature simply needs enabling in the config file with a location specified. It uses MET.no data and provides one hour of data at a time. Gadgetbridge is slightly more difficult to set up as it requires a separate app to fetch the weather data. Details are available on the Gadgetbridge wiki. There is currently (May 2023) a bug in the Pinetime implementation within Gadgetbridge which sets the expiry time to 5 minutes instead of the desired 6 hours, it should be resolved in the next available Gadgetbridge release.

Displaying weather data

Currently there are 2 ways to display weather data on the watch, a debug app which is disabled by default, and the PineTimeStyle watchface.

TODO: Add details for enabling debug app

PineTimeStyle can display basic weather data in the sidebar when the option is enabled, see details here PineTimeStyle