Pressure trend from Air module

In the websocket JSON message from the Air module there is a field for pressure trend:

<summary>
	<pressure_trend>steady</pressure_trend>
	<pressure_high_24h>1015.1</pressure_high_24h>
	<pressure_low_24h>1009.8</pressure_low_24h>
	<strike_count_3h>21</strike_count_3h>
	<strike_last_dist>10</strike_last_dist>
	<strike_last_epoch>1523359245</strike_last_epoch>
</summary>

I am wondering over what timescale this pressure trend is calculated (three hourly, hourly, minute to minute), and what change in pressure is required to define rising or falling?
Many thanks.

1 Like

The pressure three hours past subtracted from the current pressure. If the difference is more than one it is moving. Negative is falling. Positive is raising.

1 Like

Thanks @GaryFunk! Just to confirm, I assume it is a point-wise comparison and there is no averaging at the start or the end of the three hour period?

1 Like

That is correct. A simple value subtraction.

This is what WeatherFlow uses.

https://weatherflow.github.io/SmartWeather/api/derived-metric-formulas.html

5 Likes

Thanks for the link - that’s a brilliant reference!

1 Like

Not sure who to notify but there is a small unit error for the acceleration due to gravity, g, on that page under the Sea Level Pressure. The negative sign should be removed from the seconds squared unit since it is already in the denominator. The way it is written it means meters seconds squared rather than meters per second squared.

  • David D. Nelson
2 Likes

Good catch. Thanks, David. Fixed!

3 Likes