summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAvamander <avamander@gmail.com>2021-12-01 18:41:26 +0200
committerAvamander <avamander@gmail.com>2021-12-04 22:03:40 +0200
commitabbfb92fa2039754c45ae10e222ffd6d5bcbd778 (patch)
tree432d76d402badbdf7b6112186a7226af381c1691 /src
parent75cf5324baf760b3f463ba84126c317471266b32 (diff)
Added new precipitation and obscuration types
Diffstat (limited to 'src')
-rw-r--r--src/components/ble/weather/WeatherData.h14
1 files changed, 12 insertions, 2 deletions
diff --git a/src/components/ble/weather/WeatherData.h b/src/components/ble/weather/WeatherData.h
index 19b9709d..8f5ef8ea 100644
--- a/src/components/ble/weather/WeatherData.h
+++ b/src/components/ble/weather/WeatherData.h
@@ -51,6 +51,8 @@ namespace Pinetime {
Sand = 6,
/** Water particles suspended in the air; low-ish visibility; temperature is near dewpoint */
Mist = 7,
+ /** This is SPECIAL in the sense that the thing raining down is doing the obscuration */
+ Precipitation = 8,
Length
};
@@ -84,6 +86,8 @@ namespace Pinetime {
SnowGrains = 8,
/** Needles; columns or plates of ice. Sometimes described as "diamond dust". In very cold regions */
IceCrystals = 9,
+ /** It's raining down ash, e.g. from a volcano */
+ Ash = 10,
Length
};
@@ -230,9 +234,15 @@ namespace Pinetime {
*/
class Temperature : public TimelineHeader {
public:
- /** Temperature °C but multiplied by 100 (e.g. -12.50°C becomes -1250) */
+ /**
+ * Temperature °C but multiplied by 100 (e.g. -12.50°C becomes -1250)
+ * -32768 is reserved for "no data"
+ */
int16_t temperature;
- /** Dewpoint °C but multiplied by 100 (e.g. -12.50°C becomes -1250) */
+ /**
+ * Dewpoint °C but multiplied by 100 (e.g. -12.50°C becomes -1250)
+ * -32768 is reserved for "no data"
+ */
int16_t dewPoint;
};