OpenSprinkler Forums OpenSprinkler Unified Firmware Can the opensprinkler firmware make http API calls?

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #42509

    grahamk
    Participant

    About to pull the trigger on switching to this device from an X10 rain8 setup that has run out of capacity.

    I am curious if a station can be setup in such a way that instead of controlling anything it sends an API command to my isy zwave controller. This is for a greenhouse mister that runs on a 120V pump and is controlled by a zwave switch.

    I would need the station on/off command to send something like this:
    http://192.168.0.176/rest/nodes/ZW014_1/cmd/DON

    Possible?

    Thanks,
    Graham

    #42530

    Ray
    Keymaster

    Yes it can. In fact, that’s exactly how the firmware makes weather calls and implements remote stations. It’s done by using the ether.browseUrl method:
    https://github.com/OpenSprinkler/OpenSprinkler-Firmware/blob/master/weather.cpp#L153
    https://github.com/OpenSprinkler/OpenSprinkler-Firmware/blob/master/OpenSprinkler.cpp#L1035

    #42610

    grahamk
    Participant

    OK – so that looks like custom code to send to another device, or is there a way to plug an HTTP call into the gui?

    Thanks.
    Graham

    #42651

    Ray
    Keymaster

    If I understand it correctly, you are asking if there could be a ‘special station’ feature that triggers a general HTTP call, is that right? That’s an interesting question, and I think it’s fairly straightforward to extend the current ‘remote station’ feature to a general HTTP call. I will think about it.

    #42677

    grahamk
    Participant

    Yes, exactly. Thanks for giving it consideration.

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

OpenSprinkler Forums OpenSprinkler Unified Firmware Can the opensprinkler firmware make http API calls?