Such that you can incorporate in quickly in your own frontpage....
I'm missing an api call to get sensor widget... which you can add in your own html, webserver whatever code. And I mean without decoding json and that sort of stuff... just like... you can call:
Code: Select all
<div sensor="PresOut"><script="javascript:domoticz.pressure("PresOut","PRESSURE")">
Code: Select all
<div sensor="PresOut"><script="javascript:domoticz.pressure_idx("PresOut",120")>
and the javascript takes cares of updating the sensor and displaying it in the right right style (box or something which you then can override if you wish... maybe the css should be optional)
That also would make frontpage development, a piece of cake...
It's just an idea...

If this is possible then (and implemented easy for users), domoticz will be the go to software, to build your own smart home controller. Now I have the choice between hacking the frontpage myself... use openhab (which uses there style or options and their how to coonfigure hardware is terrible). or just stick with domoticz default page... would be nice to have a easy option to build your own frontpage, even for beginners... like just add this javascript... and you can begin adding sensors...
i just want to have a page...
Code: Select all
<css src="domoticz.css">
<script src="domoticz.js">
<div id="sensorID"></div>
and it displayed the sensor & update's it, just like on the domoticz frontpage, and you can override the css if you want.... (html format prob wrong..)
Code: Select all
<css src="http://ip:port/widget/domoticz.css">
<script src="http://ip:port/widget/domoticz.js">
<div id="room-Upstairs"></div>
or frontpafe
Code: Select all
<css src="my_own_style_domoticz.css">
<script src="http://username:password@ip:port/widget/domoticz.js">
<div id="floorplan-Downstairs"></div>