OpenSprinkler Forums Hardware Questions OpenSprinkler Pi (OSPi) Weather Adjust Settings link results in "internal server err

  • This topic is empty.
Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #23100

    chickenmad
    Participant

    Weather Adjust Settings link results in “internal server error”

    i.e. http://192.168.1.19:8080/wa results in “internal server error”

    #27826

    Samer
    Keymaster

    Can you please post the error message from the Python program? Run it manually so you can see the program output: python ospi.py

    #27827

    chickenmad
    Participant

    sorry:
    /home/pi/OSPi# python ospi.py &
    [1] 5344
    /home/pi/OSPi# The Python module apscheduler could not be found.
    Setting water level to 100%
    plugins loaded:

    Starting timing loop

    http://0.0.0.0:8080/
    192.168.1.39:63440 – – [08/Aug/2014 18:48:41] “HTTP/1.1 GET /api/status” – 200 OK
    192.168.1.39:63440 – – [08/Aug/2014 18:48:41] “HTTP/1.1 GET /api/log” – 200 OK
    127.0.0.1:47999 – – [08/Aug/2014 18:49:05] “HTTP/1.1 GET /” – 200 OK
    127.0.0.1:48000 – – [08/Aug/2014 18:49:05] “HTTP/1.1 GET /sn0” – 200 OK
    192.168.1.39:63443 – – [08/Aug/2014 18:49:11] “HTTP/1.1 GET /api/status” – 200 OK
    192.168.1.39:63443 – – [08/Aug/2014 18:49:12] “HTTP/1.1 GET /api/log” – 200 OK
    192.168.1.39:63449 – – [08/Aug/2014 18:49:42] “HTTP/1.1 GET /api/status” – 200 OK
    192.168.1.39:63449 – – [08/Aug/2014 18:49:42] “HTTP/1.1 GET /api/log” – 200 OK
    127.0.0.1:48001 – – [08/Aug/2014 18:50:04] “HTTP/1.1 GET /” – 200 OK
    127.0.0.1:48002 – – [08/Aug/2014 18:50:05] “HTTP/1.1 GET /sn0” – 200 OK
    192.168.1.39:63469 – – [08/Aug/2014 18:50:12] “HTTP/1.1 GET /api/status” – 200 OK
    192.168.1.39:63469 – – [08/Aug/2014 18:50:13] “HTTP/1.1 GET /api/log” – 200 OK
    Traceback (most recent call last):
    File “/home/pi/OSPi/web/application.py”, line 239, in process
    return self.handle()
    File “/home/pi/OSPi/web/application.py”, line 230, in handle
    return self._delegate(fn, self.fvars, args)
    File “/home/pi/OSPi/web/application.py”, line 420, in _delegate
    return handle_class(cls)
    File “/home/pi/OSPi/web/application.py”, line 396, in handle_class
    return tocall(*args)
    File “/home/pi/OSPi/plugins/weather_adj.py”, line 150, in GET
    return self.render.weather_adj(get_weather_options())
    File “/home/pi/OSPi/web/template.py”, line 881, in __call__
    return BaseTemplate.__call__(self, *a, **kw)
    File “/home/pi/OSPi/web/template.py”, line 808, in __call__
    return self.t(*a, **kw)
    File “templates/weather_adj.html”, line 39, in __template__
    Wunderground
    KeyError: ‘delay_duration’

    192.168.1.39:63469 – – [08/Aug/2014 18:50:16] “HTTP/1.1 GET /wa” – 500 Internal Server Error

    #27828

    Samer
    Keymaster

    Have you updated to the latest version of OSPi? If so, try deleting: data/weather_adj.json

    #27829

    chickenmad
    Participant

    RPI is up to date aas well as git pull this AM. trying rm weather_adj.json now

    #27830

    chickenmad
    Participant

    that did the trick
    offending weather_adj.json:

    {“auto_delay”: “off”}

    new:

    {“weather_provider”: “yahoo”, “wapikey”: “”, “delay_duration”: “1”, “auto_delay”: “on”}

    the old one was generated after i entered to use wunderground…hmmm will experiment and try that again just to isolate.

    #27831

    chickenmad
    Participant

    changing to wunderground now remained stable. didnt look at permissions for offending file or write it out – perhaps just corrupted somehow.

    Thanks!

    #27832

    Samer
    Keymaster

    Awesome, no problem!

Viewing 8 posts - 1 through 8 (of 8 total)
  • You must be logged in to reply to this topic.

OpenSprinkler Forums Hardware Questions OpenSprinkler Pi (OSPi) Weather Adjust Settings link results in "internal server err