Add soil moisture index view to TUI #10
Loading…
Reference in a new issue
No description provided.
Delete branch "refs/pull/10/head"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Adds a soil moisture index view to the TUI, toggled with
m. Uses an exponential-decay leaky-bucket model (decay=0.85, ≈4–5 day half-life) applied to daily rainfall totals to approximate soil moisture level for farm management decisions.Changes
Database.get_moisture_index()— new DB method computing the leaky-bucket moisture time series, with the same grouping and pagination contract asget_rainChartModeenum andmkey binding — toggles the bar chart and stats panel between rainfall and moisture views_compute_tentative_moisture_entriesgenerates decaying synthetic bars for days since the last DB record, showing soil drying in real timeCloses #9