Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #37706

    titioft
    Participant

    I have an home automation project @ Home which I have partially developed that is using xPL as its core messaging interface. Even though I like the openspringler Pi solution that I am using for a week now, I am looking at integrating the OpensprinklerPi into my Home systems… where I manage all my utilities (water counter / electricity / heat / weather / Security / etc…) I would like to do some scenario where I can start a station if I detect an unwanted move in my garden…; How about that? Might not be very usefull but in a nutschell I want to integrate.

    I am running the unified firmware on pi on a raspbian. Latest version 1.4.2 hw version: OSPI Firmware 2.1.4

    I think all the unified app is in cpp. I would like to do at least 2 things:
    – send an xpl-trig message when a station is turned on/off
    – receive an xpl-cmnd message to turn on/off a station

    The protocol is very simple (xPL) and open (http://xplproject.org.uk/). I search on the forum but it is impossible to search for xPL only I found all the “explain” “explore” in the message.

    I can develop a simple daemon that receive and send xpl message. But I don’t know how to interact with the opensprinkler daemon. Is it possible to read what it is doing in a share memory / sql db ? Or do I need to trap into the cpp file to fork somekind of thread to communicate with an external program.

    You may have developed a REST Api or web url that we can post/get to interract with the program?

    Thanks in advance for your help.

    -Olivier

    #37716

    DaveC
    Participant

    Hi,
    Without knowing anything about your automation SW… Since you have control and knowledge of your end and OS has an API (http and JSON) that they maintain and extend, it seems like it would be easier for you create an OS protocol driver for your end than trying to put something into OS and then keep it working as their system evolves.

    Just my $0.02. Ray and Samer’s opinions are worth substantially more.

    #37723

    titioft
    Participant

    ok thanks for your reply. I am looking for the API though. Any clue where I can find these?

    -Olivier

    #37724

    DaveC
    Participant

    Its in the support section under API Documentation
    https://opensprinkler.freshdesk.com/support/home

    Note that the current FW is 2.1.4 but the API doc hasn’t been updated yet. The API does appear to have changed, but the current manual (2.1.3) is close enough to do most functions.

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