Loading...
Searching...
No Matches
WeatherMessage Struct Reference

One weather message as the transport read it, before anything is kept. More...

#include <weather_reading.h>

Data Fields

uint8_t groups
 The WEATHER_GROUP_ bits for the groups that arrived.
bool ok
 The phone's fetch worked, so the current reading is real.
int temp
 The temperature in the user's unit.
const char * cond
 The sky word, such as "SUNNY".
int humidity
 Percent humidity.
int wind_kmh
 Wind speed in km/h.
const char * wind_dir
 Wind direction, such as "NW".
const char * cond_label
 The sky in words, such as "Partly Cloudy", or NULL for a face with no key for it.
int sunrise
 Sunrise as minutes past local midnight.
int sunset
 Sunset as minutes past local midnight.
int uv
 UV index.
int temp_max
 Today's high.
int temp_min
 Today's low.
int precip_chance
 Percent chance of rain.
int feels_like
 How warm it feels.
int pressure
 Sea level pressure in hPa.
int dew_point
 Dew point temperature.
const uint8_t * hourly
 The packed hourly strip, or NULL when none arrived.
uint16_t hourly_len
 Its length in bytes.
const uint8_t * daily
 The packed daily strip, or NULL when none arrived.
uint16_t daily_len
 Its length in bytes.

Detailed Description

One weather message as the transport read it, before anything is kept.

A group whose bit is clear left nothing in the message. Inside a group that did arrive, a number the phone left out reads INT_MIN and a string reads NULL, which is the one way this message marks a missing value. The strings and strips point into the message itself, so this only lives as long as the inbox callback that built it.


The documentation for this struct was generated from the following file: