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