Custom dashboard and event processing
Posted: Friday 04 December 2015 19:17
EDIT: no longer maintained. You can still find this on Github, but for something that is still updated, please see the node.js implementation of this. http://www.domoticz.com/forum/viewtopic ... 38&t=12361
Started as an internal project I never intended on releasing, but figured I might as well put this on github (which becomes public as I don't have private accounts), and clean stuff up. Still very much a work in progress, but thought I'd go ahead and post this.
https://github.com/dcnoren/Domoticz-Home-UI
Requires some configuration, but not a whole lot; although the functionality is setup specifically for my house, so any scenes will not work and may cause chaos on your setup - using wrong IDs, etc - and may even unlock doors - so be very careful with scene functionality and edit/comment/remove any of that code as required. Further, I am abstracting the event system from Domoticz to allow events to be processed within PHP. See readme about connector.php.
Does not use database, but instead "long-polls" the server. This is inefficient for large setups, but as long as only two or three clients are using it, it should be fine. Only intended for internal functionality, do not use on a public server, as there is no authentication or input sanitation.
I have a few tablets mounted on the walls that display this site full-screen. For now, it mostly replicates Domoticz's internal capabilities, although I can get fine-grained event processing and can tie in non-Domoticz-controlled systems and events, as well. Finally, there's built-in logging capabilities, pushing data to systems such as Loggly (free accounts are available).
Comments are welcome, but this is a home-grown project for my specific purposes and will remain as such - but the code may be useful for others.
A few screenshots:
Started as an internal project I never intended on releasing, but figured I might as well put this on github (which becomes public as I don't have private accounts), and clean stuff up. Still very much a work in progress, but thought I'd go ahead and post this.
https://github.com/dcnoren/Domoticz-Home-UI
Requires some configuration, but not a whole lot; although the functionality is setup specifically for my house, so any scenes will not work and may cause chaos on your setup - using wrong IDs, etc - and may even unlock doors - so be very careful with scene functionality and edit/comment/remove any of that code as required. Further, I am abstracting the event system from Domoticz to allow events to be processed within PHP. See readme about connector.php.
Does not use database, but instead "long-polls" the server. This is inefficient for large setups, but as long as only two or three clients are using it, it should be fine. Only intended for internal functionality, do not use on a public server, as there is no authentication or input sanitation.
I have a few tablets mounted on the walls that display this site full-screen. For now, it mostly replicates Domoticz's internal capabilities, although I can get fine-grained event processing and can tie in non-Domoticz-controlled systems and events, as well. Finally, there's built-in logging capabilities, pushing data to systems such as Loggly (free accounts are available).
Comments are welcome, but this is a home-grown project for my specific purposes and will remain as such - but the code may be useful for others.
A few screenshots: