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