You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: doc/SimpleWeatherService.md
+14-5Lines changed: 14 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -17,23 +17,25 @@ The host uses this characteristic to update the current weather information and
17
17
18
18
This characteristics accepts a byte array with the following 2-Bytes header:
19
19
20
-
-[0] Message Type :
20
+
-[0] Message Type :
21
21
-`0` : Current weather
22
22
-`1` : Forecast
23
-
-[1] Message Version : Version `0` is currently supported. Other versions might be added in future releases
23
+
-[1] Message Version :
24
+
-`0` : Currently supported
25
+
-`1` : Adds support for sunrise and sunset
24
26
25
-
### Current Weather
27
+
### Current Weather
26
28
27
29
The byte array must contain the following data:
28
30
29
31
-[0] : Message type = `0`
30
-
-[1] : Message version = `0`
32
+
-[1] : Message version = `1`
31
33
-[2][3][4][5][6][7][8][9] : Timestamp (64 bits UNIX timestamp, number of seconds elapsed since 1 JAN 1970) in local time (the same timezone as the one used to set the time)
32
34
-[10, 11] : Current temperature (°C * 100)
33
35
-[12, 13] : Minimum temperature (°C * 100)
34
36
-[14, 15] : Maximum temperature (°C * 100)
35
37
-[16]..[47] : location (string, unused characters should be set to `0`)
36
-
-[48] : icon ID
38
+
-[48] : icon ID
37
39
- 0 = Sun, clear sky
38
40
- 1 = Few clouds
39
41
- 2 = Clouds
@@ -43,6 +45,13 @@ The byte array must contain the following data:
43
45
- 6 = Thunderstorm
44
46
- 7 = Snow
45
47
- 8 = Mist, smog
48
+
-[49, 50] : Sunrise (number of minutes elapsed since midnight)
49
+
-`0` sun already up when day starts
50
+
-`-1` unknown
51
+
-`-2` no sunrise (e.g. polar night)
52
+
-[51, 52] : Sunset (number of minutes elapsed since midnight)
If you want to change the apps and/or watchfaces built in the project, you can pass `ENABLE_USERAPPS` and `ENABLE_WATCHFACES` as environment variables like so:
92
+
93
+
```sh
94
+
docker run --rm -it -v ${PWD}:/sources -e ENABLE_USERAPPS="Apps::Alarm,Apps::Timer,Apps::Steps,Apps::HeartRate,Apps::Music,Apps::Navigation" infinitime-build
Copy file name to clipboardExpand all lines: doc/code/Intro.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -7,7 +7,7 @@ This page is meant to guide you through the source code, so you can find the rel
7
7
Infinitime is based on FreeRTOS, a real-time operating system.
8
8
FreeRTOS provides several quality of life abstractions (for example easy software timers)
9
9
and most importantly supports multiple tasks.
10
-
If you want to read up on real-time operating systems, you can look [here](https://www.freertos.org/implementation/a00002.html) and [here](https://www.freertos.org/features.html).
10
+
If you want to read up on real-time operating systems, you can look [here](https://www.freertos.org/Documentation/01-FreeRTOS-quick-start/01-Beginners-guide/01-RTOS-fundamentals) and [here](https://www.freertos.org/features.html).
11
11
The main "process" creates at least one task and then starts the FreeRTOS task scheduler.
12
12
This main "process" is the standard main() function inside [main.cpp](/src/main.cpp).
13
13
The task scheduler is responsible for giving every task enough cpu time.
0 commit comments