OpenSprinkler Forums Hardware Questions OpenSprinkler Pi (OSPi) Python interval program update 8/25/13 Re: Re: Python interval program update 8/25/13

#25442

kkpwrh2o
Member

As mentioned in the previous post, I ran into this issue when I tried to change the GMT

 at /co
'16' is not in list

Python /home/pi/OSPi/ospi.py in GET, line 567
Web GET http://10.0.1.21:8080/co
Traceback (innermost first)

/home/pi/OSPi/ospi.py in GET
oidx = onumlst.index(key[1:]) ...
▶ Local vars
/home/pi/OSPi/web/application.py in handle_class
return tocall(*args) ...
▶ Local vars
/home/pi/OSPi/web/application.py in _delegate
return handle_class(cls) ...
▶ Local vars
/home/pi/OSPi/web/application.py in handle
return self._delegate(fn, self.fvars, args) ...
▶ Local vars
/home/pi/OSPi/web/application.py in process
return self.handle() ...
▶ Local vars
Request information

INPUT
Variable Value
cpw
''
htp
'80'
loc
'63368'
mas
'6'
npw
''
o1
'32'
o12
'80'
o13
'0'
o15
'0'
o16
'on'
o17
'0'
o18
'6'
o19
'0'
o20
'0'
o22
'on'
o23
'100'
th
'-4'
tq
'00'
COOKIES
No data.
META
Variable Value
app_stack
[]
fullpath
u'/co?o1=32&th=-4&tq=00&o12=80&o13=0&htp=80&o15=0&o16=on&o17=0&o18=6&mas=6&o19=0&o20=0&o22=on&o23=100&loc=63368&npw=&cpw='
headers
[]
home
u'http://10.0.1.21:8080'
homedomain
u'http://10.0.1.21:8080'
homepath
u''
host
u'10.0.1.21:8080'
ip
u'10.0.1.51'
method
u'GET'
output
u''
path
u'/co'
protocol
u'http'
query
u'?o1=32&th=-4&tq=00&o12=80&o13=0&htp=80&o15=0&o16=on&o17=0&o18=6&mas=6&o19=0&o20=0&o22=on&o23=100&loc=63368&npw=&cpw='
realhome
u'http://10.0.1.21:8080'
status
'200 OK'
ENVIRONMENT
Variable Value
ACTUAL_SERVER_PROTOCOL
'HTTP/1.1'
HTTP_ACCEPT
'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8'
HTTP_ACCEPT_ENCODING
'gzip, deflate'
HTTP_ACCEPT_LANGUAGE
'en-us'
HTTP_CONNECTION
'keep-alive'
HTTP_HOST
'10.0.1.21:8080'
HTTP_REFERER
'http://10.0.1.21:8080/vo'
HTTP_USER_AGENT
'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_8_4) AppleWebKit/536.30.1 (KHTML, like Gecko) Version/6.0.5 Safari/536.30.1'
PATH_INFO
'/co'
QUERY_STRING
'o1=32&th=-4&tq=00&o12=80&o13=0&htp=80&o15=0&o16=on&o17=0&o18=6&mas=6&o19=0&o20=0&o22=on&o23=100&loc=63368&npw=&cpw='
REMOTE_ADDR
'10xxxxxx
REMOTE_PORT
'xxxxx'
REQUEST_METHOD
'GET'
REQUEST_URI
'/co?o1=32&th=-4&tq=00&o12=80&o13=0&htp=80&o15=0&o16=on&o17=0&o18=6&mas=6&o19=0&o20=0&o22=on&o23=100&loc=63368&npw=&cpw='
SCRIPT_NAME
''
SERVER_NAME
'localhost'
SERVER_PORT
'8080'
SERVER_PROTOCOL
'HTTP/1.1'
SERVER_SOFTWARE
'CherryPy/3.2.0 Server'
wsgi.errors
', mode 'w' at 0xb6d5b0d0>
wsgi.input

wsgi.multiprocess
False
wsgi.multithread
True
wsgi.run_once
False
wsgi.url_scheme
'http'
wsgi.version
(1, 0)
You're seeing this error because you have web.config.debug set to True. Set that to False if you don't want to see this.

The GMT offset of -5 is what I need, but I am wondering about the resulting error page above?

Thanks,
Kevin