OpenSprinkler › Forums › Hardware Questions › OpenSprinkler Pi (OSPi) › Problem with manual mode Interval Program
Installation of hard- and software was easy. Thanks a lot for this wonderful project.
While setting station status works with the “Set station bit” HTTP GET command, the “Get station bit” command returns a 404 error.
I thought it’ll be as easy as “curl http://localhost:8080/sn1”
Is the GET command not implemented?
I also noticed the interval program on the Raspberry Pi does not seem to return status and only allows changing the station status. Looking at the URL defintions in the python code I see this:
'/sn=(d+?Z)', 'get_station', # regular expression, accepts any station number
'/sn(d+?=d(&t=d+?Z)?)', 'set_station', # regular expression, accepts any digits
Either case it seems to require an equal sign from what I see.
I received updated scripts from Dan a couple of days ago, and I just checked it into the Github repository. Please update and see if this has fixed the issue.
The updated scripts still require an equal sign for getting the station status but a quick change allows it to work properly. I also posted other changes to bring the API closer to the documentation here: http://rayshobby.net/phpBB3/viewtopic.php?f=2&t=154&start=40#p781
(Sorry for posting this all over the place just trying to make sure it’s documented and seen.)
OpenSprinkler › Forums › Hardware Questions › OpenSprinkler Pi (OSPi) › Problem with manual mode Interval Program