Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Issues with Weather-Based Water Level
#3
(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

Code:
rainPerDay = round(float(m_vals["daily_irrigation"]) / 25.4, 1)
 to

Code:
rainPerDay = round(float(m_vals["daily_irrigation"]), 1)
or even to:
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:
Code:
safe_float(options[u"daily_irrigation"]), u"in"
removing the "to_in" function call.

Dan
Reply


Messages In This Thread
RE: Issues with Weather-Based Water Level - by dan - 2020 Jan 20, 12:16 AM
RE: Issues with Weather-Based Water Level - by danny_aka_rudy - 2020 Jan 21, 04:19 AM
RE: Issues with Weather-Based Water Level - by dan - 2020 Jan 21, 03:39 PM
RE: Issues with Weather-Based Water Level - by dan - 2020 Jan 30, 05:06 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)