OpenSprinkler Forums Hardware Questions OpenSprinkler Pi (OSPi) List of Direct HTTP GET commands

  • This topic is empty.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
  • #22629


    Can someone direct me to a list of the GET commands? I found one here: but it is missing the “run program” command (rp). I’m curious to see what other commands exist. Specifically, I’m looking for a “stop program” or “close all valves” without going into manual mode and closing each station. I’d also be curious to see if I can get the status of the rain delay or next run-time.

    So far I can vebally tell my phone to “water the (back, front, etc…)” or ask it “are the sprinklers running?”.



    That is the correct list for the OpenSprinkler. The OSPi interval program available on the Raspberry Pi has an additional option as you mentioned, rp. It also accepts custom commands set in

    If you look at number 1 on the PDF you linked, you will see an option named: rsn. This is the stop all stations command you are after. To get the status of rain delay you can grab the home page and parse the javascript variable rd.

    This is a sample homepage result:

    You can get the variables you are after using the following regex in PHP (the regex can of course be used in any PCRE programming language):

    preg_match_all("/(ver|devt|nbrd|tz|en|rd|rs|mm|rdst|mas|urs|wl|ipas)=[w|d|."]+/", $data, $matches);

    In this example, $data is a string holding the home page result as shown above.

    Hope this helps.

    Update: I don’t think there is an easy way to get the next run-time without cycling days in preview mode and finding matches. Probably not very difficult but could be slow assuming your next run time is days/weeks in the future.



    Thanks for the detailed response! I saw the rsn command, but wasn’t sure what “reset” meant (i.e. does it clear the station’s name name?) but I guess it re-sets the stations to be closed. Anyway, it’s working great in my script.

    I’m going to look into building out the custom commands in so my other devices can interface with it at a deeper level. I’d rather have the OSPi do the computing than my phone/tablet.

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

OpenSprinkler Forums Hardware Questions OpenSprinkler Pi (OSPi) List of Direct HTTP GET commands