routers/plants/get_water_overview only talks inches #2

Closed
opened 2026-10-07 16:57:41 +11:00 by greg · 2 comments
Owner

Stored data now can also be in metric units. get_water_overview needs to read (and use or convert) the units for each reading type.

Stored data now can also be in metric units. get_water_overview needs to read (and use or convert) the units for each reading type.
greg self-assigned this 2026-10-07 16:57:42 +11:00
Author
Owner

Line 1112:

rain_by_day.append({"date": day_str, "rain_inches": round(daily_rain, 2)})

Can maybe be replaced by something like this:

rain_by_day.append({"date": day_str, "rain": round(daily_rain, 2),"rain_units":rain_units})

And of course frontend/Plants.jsx will need to be updated to match

Line 1112: ``` rain_by_day.append({"date": day_str, "rain_inches": round(daily_rain, 2)}) ``` Can maybe be replaced by something like this: ``` rain_by_day.append({"date": day_str, "rain": round(daily_rain, 2),"rain_units":rain_units}) ``` And of course frontend/Plants.jsx will need to be updated to match
Author
Owner

Closed with pull request 038e573452

Closed with pull request 038e573452417ecb1bed13d58dbe73cb35684556
greg closed this issue 2026-10-09 15:53:32 +11:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
greg/isaac#2
No description provided.