Weatherflow Tempest Weather Station (New Plugin)

User avatar
GlennNZ
Posts: 1872
Joined: Sun Dec 07, 2014 3:33 pm
Location: Central Coast, Australia

Re: Weatherflow Tempest Weather Station (New Plugin)

Post by GlennNZ »

Image

WeatherFlow Tempest — Plugin Update v2.6.0

New rolling rain totals — rain_lastweek and rain_lastmonth — calculated and persisted by the plugin. Ideal for irrigation logic: skip the sprinklers if enough rain fell this week.

Wiki: https://github.com/Ghawken/WeatherFlowTempest/wiki
GitHub: https://github.com/Ghawken/WeatherFlowTempest
Release notes: https://github.com/Ghawken/WeatherFlowTempest/wiki/Release-2.6.0

Image

New states — rain_lastweek and rain_lastmonth

Available on Tempest and Sky devices. The Tempest API doesn't provide multi-day rain totals, so the plugin now calculates them itself.
  • rain_lastweek — rolling 7-day total (today + previous 6 days)
  • rain_lastmonth — rolling 30-day total (today + previous 29 days)
Both respect your Rainfall unit preference (mm or inches), just like rain_today.

In the trigger list they appear as:
  • Rain Last 7 Days (rolling total, includes today)
  • Rain Last 30 Days (rolling total, includes today)
How it works

The plugin records each day's rain total into a per-day history saved to disk ([inlinecode]Preferences/Plugins/..._rain_history.json[/inlinecode]). At midnight the day's final total is locked in, and the rolling 7/30-day sums are recomputed on every observation. History survives plugin restarts, Indigo restarts, and reboots. Entries older than 31 days are pruned automatically.

Example — irrigation

Use a schedule condition or trigger on Rain Last 7 Days: only run sprinklers if rain_lastweek is less than 10 mm.

Worth knowing
  • History only accumulates while the plugin is running — a day the plugin is stopped records nothing (missed, not corrupted).
  • Totals use the local (UDP) device values — not rain-check corrected — consistent with rain_today_local.
  • After first upgrade, rain_lastweek starts at today's rain and grows one day at a time; after 7 days of running it's a true weekly total, after 30 days a true monthly one.
Image

Full release notes: Release 2.6.0

Image
Post Reply

Return to “GlennNZ's Plugins”