OpenSprinkler Forums OpenSprinkler Unified Firmware AttributeError in Plugin weather_adj

Viewing 1 post (of 1 total)
  • Author
    Posts
  • #37441

    Agh42
    Participant

    Hi there,

    I have a problem with the weather_adj Plugin (plugin installed four days ago). It doesn’t set any delay. When I run ospi.py on the command line the output looks like this:

    Checking rain status…
    No rain detected: Fair. No action.
    Checking rain status…
    No rain detected: Fair. No action.
    Checking rain status…
    No rain detected: Light Rain. No action.
    Checking rain status…
    No rain detected: Light Rain. No action.
    Checking rain status…
    No rain detected: Fair. No action.
    Checking rain status…
    No rain detected: Fair. No action.
    Checking rain status…
    No rain detected: Fair. No action.
    Checking rain status…
    No rain detected: Mostly Cloudy. No action.
    Checking rain status…
    No rain detected: Light Rain. No action.
    Checking rain status…
    No rain detected: Light Rain. No action.
    Checking rain status…
    No rain detected: Light Rain. No action.
    Checking rain status…
    No rain detected: Fair. No action.
    Checking rain status…
    No rain detected: Fair. No action.
    Checking rain status…
    No rain detected: Fair. No action.
    Checking rain status…
    No rain detected: Fair. No action.
    Checking rain status…
    No rain detected: Fair. No action.
    Checking rain status…
    Unhandled exception in thread started by <function weather_to_delay at 0x6a8e30>
    Traceback (most recent call last):
    File “/home/pi/OSPi/plugins/weather_adj.py”, line 35, in weather_to_delay
    weather = get_weather_data() if data[‘weather_provider’] == “yahoo” else get_wunderground_weather_data()
    File “/home/pi/OSPi/plugins/weather_adj.py”, line 96, in get_weather_data
    weather = {“text”: newdata.group(1),
    AttributeError: ‘NoneType’ object has no attribute ‘group’

    After that the plugin apparently stops running because I see no more “Checking rain status” lines in the log file.

    I use yahoo as weather provider with location set to “Berlin”. I tried accessing the two URLs from weather_adj.py using wget and get valid results for my location that seem to match what the scipt is looking for (forecastrss & “select woeid from geoplacefinder…”).

    Does anyone have an idea what might go wrong here as soon as a “rainy” condition is detected?

    Thanks in advance,

    Alex

Viewing 1 post (of 1 total)
  • You must be logged in to reply to this topic.

OpenSprinkler Forums OpenSprinkler Unified Firmware AttributeError in Plugin weather_adj