OpenSprinkler › Forums › Hardware Questions › OpenSprinkler Pi (OSPi) › Weather-based water level error
- This topic has 4 replies, 2 voices, and was last updated 10 years ago by navy2x.
-
AuthorPosts
-
October 11, 2014 at 1:37 pm #33474
navy2xParticipantI’m getting an error on the Weather-based water level plugin page. See screenshot below. I have an OpenSprinkler Pi v1.3 running software v2.1.2. Anyone have suggestions? Do I need to install a certain python library for this to work?
Weather-base water level encountered error: Traceback (most recent call last): File "/home/pi/OSPi/plugins/weather_level_adj.py", line 85, in run history = history_info() File "/home/pi/OSPi/plugins/weather_level_adj.py", line 319, in history_info 'humidity': float(day_info['humidity']) ValueError: could not convert string to float:
Screenshot: http://imgur.com/V9VG2Wx
Thanks for the help!
October 14, 2014 at 10:37 am #33893
wingnutParticipantIt seems we might be in the same boat… I have the following error listed below! I have just upgraded to V2.1.2 yesterday and it was working last night. Not able to convert string to float, I wonder if it has to do with WU replacing 0.0 with NULL or something like that. I hope someone we come to our rescue but until then I disabled mine because it was running up my WU API calls and didn’t want it to go over the 500 calls per day and start using my raindrops.
Weather-base water level encountered error:
Traceback (most recent call last):
File “/home/pi/OSPi/plugins/weather_level_adj.py”, line 87, in run
today = today_info()
File “/home/pi/OSPi/plugins/weather_level_adj.py”, line 340, in today_info
‘rain_mm’: float(day_info[‘precip_today_metric’]),
ValueError: could not convert string to float: —October 14, 2014 at 1:55 pm #33902
navy2xParticipantThe error is now a bit different for me:
Weather-base water level encountered error: Traceback (most recent call last): File "/home/pi/OSPi/plugins/weather_level_adj.py", line 85, in run history = history_info() File "/home/pi/OSPi/plugins/weather_level_adj.py", line 317, in history_info 'rain_mm': float(day_info['precipm']), ValueError: could not convert string to float: T
October 14, 2014 at 2:00 pm #33903
wingnutParticipantI just got mine working by going to the Option’s tab and in the Location field I put pws:mystationID
Hope this helpsOctober 14, 2014 at 2:36 pm #33910
navy2xParticipantLooks like that worked for me too! At least I no longer get an error. For those who are getting similar issues, this seems to be a temporary patch. On the Options page, go to the Location text field and instead of your zip, put “pws:” (for personal weather station) and enter the Station ID of the closest weather station to you.
-
AuthorPosts
- You must be logged in to reply to this topic.
OpenSprinkler › Forums › Hardware Questions › OpenSprinkler Pi (OSPi) › Weather-based water level error