OpenSprinkler › Forums › OpenSprinkler Mobile and Web App › programs aren't triggering › Reply To: programs aren't triggering
tomnykds
So, I figured out how to dump the state of the system with >>> contents = urllib2.urlopen(“http://192.168.0.69:8080/ja?pw=xxxx”).read(),
and I still can’t figure out why the programs (#5 specifically) isn’t triggering. I’d like to see logs of how the scheduler is deciding
to start or not start a station. I’ve found plenty of DEBUG_PRINT statements in the code, but don’t know how to enable them. This
is what’s in the logs. Can’t make sense of what it means, though.
pi@pi2b:~/OpenSprinklerGen2 $ cat logs/17747.txt
[0,”wl”,0,1533343998]
[0,”wl”,0,1533351200]
[0,”wl”,0,1533358402]
[0,”wl”,1,1533365604]
[0,”wl”,57,1533372806]
[0,”wl”,77,1533380008]
[0,”wl”,91,1533387210]
[0,”wl”,114,1533394412]
[0,”wl”,118,1533401614]
>>> print json.dumps(parsed, indent=4, sort_keys=True)
{
“options”: {
“con”: 150,
“den”: 1,
“devid”: 0,
“dexp”: -1,
“dim”: 50,
“dns1”: 8, “dns2”: 8, “dns3”: 8, “dns4”: 8, “ext”: 0,
“fpr0”: 100,
“fpr1”: 0,
“fwm”: 1,
“fwv”: 218,
“hwv”: 64,
“hp0”: 144, “hp1”: 31, “hwt”: 255,
“ife”: 0, “ipas”: 0,
“lg”: 1,
“lit”: 100,
“mas”: 0, “mas2”: 0,
“mexp”: 8, “mtof”: 0, “mtof2”: 0, “mton”: 0, “mton2”: 0,
“ntp1”: 50, “ntp2”: 97, “ntp3” : 210, “ntp4”: 169, “re” : 0,
“reset”: 0, “rso”: 0, “sar” : 0, “sdt”: 0, “sn2o” : 0, “sn2t”: 0,
“tz”: 20,
“urs”: 0,
“uwt”: 1,
“wl”: 0
},
“programs”: {
“pnsize” : 20
“mnp” : 34,
“mnst” : 4,
“nboards” : 1,
“nprogs” : 3,
“pd”: [ [ 3, 127, 0, [ 360, 0, 0, 0 ], [ 480, 480, 480, 480, 480, 480, 480, 0 ], “Program 5” ],
[ 3, 127, 0, [ 480, 0, 0, 0 ], [ 60, 60, 60, 60, 0, 0, 0, 0 ], “Program 4” ],
[ 0, 127, 0, [ 16384, 0, 0, 0 ], [ 60, 60, 60, 60, 60, 60, 60, 0 ], “Program 36” ],
],
“settings”: {
“devt” : 1533279729,
“lswc” : 1533279180,
“lwc” : 1533279180,
“sunrise” : 359,
“sunset” : 1238,
“eip” : 842338188,
“en” : 1,
“ifkey” : “”,
“loc” : “45.45015,-122.88491”,
“lupt” : 0,
“nbrd” : 1,
“rd” : 0,
“rdst” : 0,
“rs” : 0,
“sbits” : [ 0, 0 ],
“wtkey” : “”,
“wto”: { “bh” : 30, “br” : 0, “bt” : 69.98, “h” : 100, “r” : 100, “t” : 100 }
“lrun” : [ 3, 3, 21, 1532937685 ],
“ps” : [ [ 0, 0, 0 ],
[ 0, 0, 0 ],
[ 0, 0, 0 ],
[ 0, 0, 0 ],
[ 0, 0, 0 ],
[ 0, 0, 0 ],
[ 0, 0, 0 ],
[ 0, 0, 0 ] ],
},
“stations”: {
“ignore_rain” : [ 0 ],
“masop” : [ 255 ],
“masop2” : [ 0 ],
“maxlen” : 24,
“snames” : [ “S01”, “S02”, “S03”, “S04”, “S05”, “S06”, “S07”, “S08” ],
“stn_dis” : [ 128 ],
“stn_seq” : [ 255 ],
“stn_spe” : [ 0 ]
},
“status”: {
“nstations”: 8,
“sn”: [ 0, 0, 0, 0, 0, 0, 0, 0 ]
}
}