1bigwink wrote:This is a great feature for Domoticz - thanks for sharing it. As a newbie though I am struggling to create my own frontpage, even after reading through the whole thread... I'm having problems getting my IP Cam working and the popup to work with the doorbell, as well as 'on click' functions (e.g. show the thermostat up/down buttons when the temp value is clicked) is there a set of instructions anywhere? If there isn't could we get this added to the Domoticz wiki? I'd be happy to contribute myself as I learn (might need some pointers along the way though).
Thanks again!
What is the problem with the IP cam? Is it working in Domoticz? In that case you can also use the following in the frontpage.html (cell 25 is just an example).
Code: Select all
<div id="frame">
<div id="ls_cell25"></div><div id="cell25">
<img src="http://<domoticzip:port>/camsnapshot.jpg?idx=3&t=" onClick="lightbox_open('camera1', 92400);" width="200px" class='camera' /></div>
<div id="bcell25"></div>
<div id="desc_cell25">Buiten</div>
</div>
Replace the 3 after idx with the corresponding idx of the camera.
For the popup in the doorbell I use the following code in frontpage.js.
Code: Select all
//doorbell
if (item.idx == idx_doorbell && vdata == doorbell_status) {
lightbox_open('camera1', 15400);
vdata=new String(vdata).replace( "On", "Tringgg");
}
And in frontpage_settings.js.
Code: Select all
<!-- This triggers the camera PopUp when the doorbell is pressed -->
<!-- Text could be 'On', 'Group On' or 'Chime' -->
var doorbell_status = 'On';
var idx_doorbell = '200'; //dummy switch which goes on when doorbell rings, goes off after 10 seconds
var doorbell_cmd = "lightbox_open('camera1', 15400);"
I have made a dummy switch (idx 200) in Domoticz which goes on when the doorbell rings and goes off after 10 seconds.
How does you Thermostat line look like? Is the last value before the ] a 1? Then it should show the plus and min buttons.