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

    michaeli
    Participant

    Is there a http get command to pull the rain delay sensor status?

    #26796

    Anonymous
    Inactive

    Have a look at http://rayshobby.net/?p=8422, and the comments about JSON output. The queries most likely to help are /jo (controller option settings) and /jc (controller variables).

    Mark

    #26797

    michaeli
    Participant

    is there a general movement towards json over the http get commands? or are they both going to be supported going forward?

    #26798

    Samer
    Keymaster

    The JSON replies still occur over HTTP GET. The difference is a trusted syntax over parsing random HTML (that changes from build to build). This way apps/services built on top of OpenSprinkler can reliably get controller data.

    #26799

    Ray
    Keymaster

    I second Samer. The JSON data is still retrieved with a HTTP GET command, but it’s in a nice form that many programming languages (Javascript, Python, PHP…) can directly parse.

    #26800

    michaeli
    Participant

    sounds good, I have been looking through the values returned from the different options, and am not noticing one that shows the status of the rain device…is the json options for each command documented somewhere?

    #26801

    Ray
    Keymaster

    The JSON options are not documented in the user manual yet (I should add it soon). Here is the list of available commands:
    http://x.x.x.x/jo: returns options.
    http://x.x.x.x/jc: returns controller variables.
    http://x.x.x.x/jp: returns program data.
    http://x.x.x.x/jn: returns station names and data.
    http://x.x.x.x/js: returns station status bits.
    from the variable name you should be able to figure out the meaning of each variable.

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