OpenSprinkler › Forums › Hardware Questions › OpenSprinkler Pi (OSPi) › Weather Adjust Settings link results in "internal server err
- This topic is empty.
-
AuthorPosts
-
August 8, 2014 at 4:46 pm #23100
chickenmadParticipantWeather Adjust Settings link results in “internal server error”
i.e. http://192.168.1.19:8080/wa results in “internal server error”
August 8, 2014 at 6:21 pm #27826
SamerKeymasterCan you please post the error message from the Python program? Run it manually so you can see the program output: python ospi.py
August 8, 2014 at 11:53 pm #27827
chickenmadParticipantsorry:
/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
August 9, 2014 at 12:16 am #27828
SamerKeymasterHave you updated to the latest version of OSPi? If so, try deleting: data/weather_adj.json
August 9, 2014 at 12:27 am #27829
chickenmadParticipantRPI is up to date aas well as git pull this AM. trying rm weather_adj.json now
August 9, 2014 at 12:31 am #27830
chickenmadParticipantthat 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.
August 9, 2014 at 12:37 am #27831
chickenmadParticipantchanging to wunderground now remained stable. didnt look at permissions for offending file or write it out – perhaps just corrupted somehow.
Thanks!
August 9, 2014 at 1:19 am #27832
SamerKeymasterAwesome, no problem!
-
AuthorPosts
- 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