Custom hardware interface
Posted: Sunday 13 September 2015 15:17
Hello all,
After evaluating software like pimatic, pilight and homegenie i have ended up at Domoticz. This definitely looks like a nice option for my needs, but i would like to make custom hardware interfaces. I have looked at the "hardware" directory. I would like to start with a serial device that can receive commands from Domoticz and periodically sends data to Domoticz. So i need some kind of callback function for the serial data.
I took a look at Dummy.cpp and S0MeterSerial.cpp. I think adding a readCallback(const char *data, size_t len) to Dummy.cpp would be almost what i would need. But: i am not sure about the Domoticz framework and i cannot really find documentation of what functions are required and how the GUI is connected with the hardware. If there is good developer documentation it would help me immense.
Thanks in advance!
After evaluating software like pimatic, pilight and homegenie i have ended up at Domoticz. This definitely looks like a nice option for my needs, but i would like to make custom hardware interfaces. I have looked at the "hardware" directory. I would like to start with a serial device that can receive commands from Domoticz and periodically sends data to Domoticz. So i need some kind of callback function for the serial data.
I took a look at Dummy.cpp and S0MeterSerial.cpp. I think adding a readCallback(const char *data, size_t len) to Dummy.cpp would be almost what i would need. But: i am not sure about the Domoticz framework and i cannot really find documentation of what functions are required and how the GUI is connected with the hardware. If there is good developer documentation it would help me immense.
Thanks in advance!