vil1driver wrote:
my frontpage full here
https://drive.google.com/file/d/0BxlxVZ ... sp=sharing
work even when put in a subfolder (domoticz/www/monitor)
auto plus/min for dimmers (no flag needed),
thermostat setpoint (with max temp flag),
all blinds (include percentage),
auto show custom icons (set lastseen flag to 2)
choose icon for groups ( icon flag, ex: $.PageArray_Scenes = [ ['10','Status', 'cell22-2', 'Toute la maison','Light'], // group with icons Light ]; )
auto sun/moon and background change (no dusk sensor needed)
auto show swipe arrow
only on desktop
and more
Hi vil1driver
thanks for your job i use your frontpage with a little modification for more webcam
But i have a blind A-X10 with 3 buttons OPEN STOP CLOSE
So i try to add Stop Button but i can't can you help me
thanks a lot
This is my modification
Code: Select all
if (item.SwitchType == 'Blinds') {
if(vdata == 'Closed') {
var down = '<img src='+$.domoticzurl+'/images/blinds48sel.png hspace=2 width=40 onclick="SwitchToggle('+item.idx+', \'On\');lightbox_open(\'switch\', '+switch_on_timeout+', '+txt_blind_down+')">';
var stop = '<img src='+$.domoticzurl+'/images/blindsstop.png hspace=2 width=10 onclick="SwitchToggle('+item.idx+', \'Stop\');lightbox_open(\'switch\', '+switch_on_timeout+', '+txt_blind_stop+')">';
var up = '<img src='+$.domoticzurl+'/images/blindsopen48.png hspace=2 width=40 onclick="SwitchToggle('+item.idx+', \'Off\');lightbox_open(\'switch\', '+switch_off_timeout+', '+txt_blind_up+')">';
}
if (vdata == 'Open') {
var down = '<img src='+$.domoticzurl+'/images/blinds48.png hspace=10 width=40 onclick="SwitchToggle('+item.idx+', \'On\');lightbox_open(\'switch\', '+switch_on_timeout+', '+txt_blind_down+')">';
var stop = '<img src='+$.domoticzurl+'/images/blindsstop.png hspace=2 width=40 onclick="SwitchToggle('+item.idx+', \'Stop\');lightbox_open(\'switch\', '+switch_on_timeout+', '+txt_blind_stop+')">';
var up = '<img src='+$.domoticzurl+'/images/blindsopen48sel.png hspace=2 width=40 onclick="SwitchToggle('+item.idx+', \'Off\');lightbox_open(\'switch\', '+switch_off_timeout+', '+txt_blind_up+')">';
}
vdata = down.concat(up);
//console.log(vdata);
I thinks bug is var stop, i think i must declare var stop but where