2020 Jan 21, 04:19 AM
(2020 Jan 20, 12:16 AM)dan,Thanks for the help. I still don\t think things are all fixed though...Current temperature: Wrote: 33.9deg.F
________________________________
Daily irrigation:
0.1in
Total rainfall:
0.0in
Water needed(6days):
-1.0in
________________________________
Irrigation needed:
0.0in
Weather Adjustment:
0.0%
We've had rain recently... Not sure why Water needed would be -1 in either. Maybe it's fine but something seems a little fishy.
Dan
------------------------------------------------------------------------------------------------------------------------------------------
danI see the same things. Thanks for posting.
The fix for the daily use value not showing properly is to change line 7 of weather_level_adj.html from
toCode:rainPerDay = round(float(m_vals["daily_irrigation"]) / 25.4, 1)
or even to:Code:rainPerDay = round(float(m_vals["daily_irrigation"]), 1)
Code:rainPerDay = m_vals["daily_irrigation"]
It is re-converting the value to inches (from inches)
Edit:
Also change lin 195 in weather_level_adj.py
to:
removing the "to_in" function call.Code:safe_float(options[u"daily_irrigation"]), u"in"
Dan