OpenSprinkler Forums Hardware Questions OpenSprinkler Pi (OSPi) Problem with manual mode Interval Program

  • This topic is empty.
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #22481

    airmax
    Member

    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?

    #24501

    Samer
    Keymaster

    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.

    #24502

    Ray
    Keymaster

    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.

    #24503

    Samer
    Keymaster

    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.)

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.

OpenSprinkler Forums Hardware Questions OpenSprinkler Pi (OSPi) Problem with manual mode Interval Program