#27009

richpuch
Participant

Scott,

Having problems testing your code here is what I get on start-up:

sudo python ospi.py
The Python module apscheduler could not be found.
Setting water level to 100%
The Python module apscheduler could not be found.
Checking rain status…
No rain detected
Ignoring exception while loading the zone_settings plug-in.
name ‘sched’ is not defined
Ignoring exception while loading the wx_settings plug-in.
name ‘sched’ is not defined
Ignoring exception while loading the auto_program plug-in.
name ‘sched’ is not defined
plugins loaded:

Starting timing loop

http://0.0.0.0:8080/

Here is what I get when I go to http://192.168.2.30:8080/auto

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 416, in _delegate
mod = __import__(mod, None, None, )
File “/home/pi/OSPi/plugins/auto_program.py”, line 282, in
import wx_settings
File “/home/pi/OSPi/plugins/wx_settings.py”, line 35, in
@sched.cron_schedule(hour=1)
NameError: name ‘sched’ is not defined

192.168.2.114:58094 – – [27/Jul/2014 16:52:44] “HTTP/1.1 GET /auto” – 500 Internal Server Error

Any ideas?

Thanks
Rich