-
Notifications
You must be signed in to change notification settings - Fork 9
Description
Air pressure is used by barometers. Tracking it is useful for local weather prediction. It is measured in mbar, and oscillates around a value of 1013. (900-1100).
https://en.wikipedia.org/wiki/Atmospheric_pressure
in MySensors this is initiated as follows:
MyMessage pressureMsg(BARO_CHILD_ID, V_PRESSURE);
MyMessage forecastMsg(BARO_CHILD_ID, V_FORECAST);
So a child can receive two values:
- pressure in mbar
- a code value that indicates upcoming weather.
The codes are:
#define STABLE 0 // "Stable Weather Pattern"
#define SUNNY 1 // "Slowly rising Good Weather", "Clear/Sunny "
#define CLOUDY 2 // "Slowly falling L-Pressure ", "Cloudy/Rain "
#define UNSTABLE 3 // "Quickly rising H-Press", "Not Stable"
#define THUNDERSTORM 4 // "Quickly falling L-Press", "Thunderstorm"
#define UNKNOWN 5 // "Unknown (More Time needed)
Supporting just the pressure would already be great. A lot of controllers can calculate the weather prediction from that themselves.
Another solution to the "human readable" issue would be the support of text sensors. There is an issue about that already.