I've a small tablet (got it free) which I 'mounted' on a pallet on the wall. The dashboard on the tablet is a older version, the picture above is the correct one
Config.js
- Spoiler: show
Code: Select all
var config = {} config['language'] = 'nl_NL'; config['domoticz_ip'] = 'http://192.168.0.2:8081'; config['app_title'] = 'Breda'; config['domoticz_refresh'] = '60'; config['dashticz_refresh'] = '60'; config['auto_positioning'] = 0; config['timeformat'] = 'DD-MM-YY HH:mm'; config['calendarformat'] = 'dd D MMM HH:mm'; config['calendarlanguage'] = 'nl_NL'; config['wu_api'] = 'xxx'; config['wu_city'] = 'Breda'; config['wu_name'] = ''; config['wu_country'] = 'NL'; config['hide_topbar'] = 1; var publictransport = {} publictransport.ovinfotrain= { station: 'station-breda', show_lastupdate:true, provider: '9292-train', icon: 'train', results: 5 }; var calendars = {} calendars.private = { maxitems: 5, icalurl: 'https://calendar.google.com/calendar/xxx/basic.ics' } /* BLOCKS CONFIGURATION */ var blocks = {} blocks['bt_1'] = {} blocks['bt_1']['type'] = 'blocktitle'; blocks['bt_1']['title'] = 'Verlichting'; blocks['bt_2'] = {} blocks['bt_2']['type'] = 'blocktitle'; blocks['bt_2']['title'] = 'Temperatuur'; blocks['bt_3'] = {} blocks['bt_3']['type'] = 'blocktitle'; blocks['bt_3']['title'] = 'Stroom'; blocks['bt_4'] = {} blocks['bt_4']['type'] = 'blocktitle'; blocks['bt_4']['title'] = 'Status'; //Voordeur blocks[8380] = {}; blocks[8380]['title'] = 'Voordeur'; blocks[8380]['show_lastupdate'] = false; blocks[8380]['width'] = 6 //Balkondeur blocks[8385] = {}; blocks[8385]['title'] = 'Balkondeur'; blocks[8385]['show_lastupdate'] = false; blocks[8385]['width'] = 6 //Keukenraam blocks[8382] = {}; blocks[8382]['title'] = 'Keukenraam'; blocks[8382]['show_lastupdate'] = false; blocks[8382]['width'] = 6 //Slaapkamerraam 1 blocks[8391] = {}; blocks[8391]['title'] = 'Slaapkamer gallerij'; blocks[8391]['show_lastupdate'] = false; blocks[8391]['width'] = 6 //Slaapkamerraam 2 blocks[8389] = {}; blocks[8389]['title'] = 'Slaapkamer balkon'; blocks[8389]['show_lastupdate'] = false; blocks[8389]['width'] = 6 //Woonkamerraam blocks[8387] = {}; blocks[8387]['title'] = 'Woonkamer'; blocks[8387]['show_lastupdate'] = false; blocks[8387]['width'] = 6 //* TEMPERATUUR *// blocks['1389_1'] = {}; blocks['1389_1']['title'] = 'Woonkamer'; blocks['1389_1']['switch'] = true; blocks['1833_1'] = {}; blocks['1833_1']['title'] = 'Slaapkamer'; blocks['1833_1']['switch'] = true; blocks['1834_1'] = {}; blocks['1834_1']['title'] = 'Badkamer'; blocks['1834_1']['switch'] = true; blocks[7208] = {}; blocks[7208]['title'] = 'Hal'; blocks[7208]['switch'] = true; blocks[8368] = {}; blocks[8368]['title'] = 'Keuken'; blocks[8368]['switch'] = true; blocks['6649_1'] = {}; blocks['6649_1']['title'] = 'Buiten'; blocks['6649_1']['switch'] = true; //* STROOM *// //Vaatwasser blocks['8394_1'] = {}; blocks['8394_1']['title'] = 'Vaatwasser'; blocks['8394_1']['icon'] = 'fa-bolt'; //Wasmachine blocks['8398_1'] = {}; blocks['8398_1']['title'] = 'Wasmachine'; blocks['8398_1']['icon'] = 'fa-bolt'; //Koelkast blocks['8396_1'] = {}; blocks['8396_1']['title'] = 'Koelkast'; blocks['8396_1']['icon'] = 'fa-bolt'; //Gas blocks['8405_1'] = {}; blocks['8405_1']['title'] = 'Gas'; //* VERLICHTING *// //Sfeerverlichting Kast blocks[82] = {}; blocks[82]['title'] = 'Kastverlichting'; blocks[82]['show_lastupdate'] = false; blocks[82]['width'] = 4 //Sfeerverlichting pallet blocks[83] = {}; blocks[83]['title'] = 'Pallet'; blocks[83]['show_lastupdate'] = false; blocks[83]['width'] = 4 //Woonkamer bol blocks[6576] = {}; blocks[6576]['title'] = 'Bol'; blocks[6576]['show_lastupdate'] = false; blocks[6576]['width'] = 4 //Studiekamer blocks[8330] = {}; blocks[8330]['title'] = 'Computer'; blocks[8330]['show_lastupdate'] = false; blocks[8330]['width'] = 4 //Eettafel blocks[8322] = {}; blocks[8322]['title'] = 'Eettafel'; blocks[8322]['show_lastupdate'] = false; blocks[8322]['width'] = 4 //Woonkamer lamp blocks[7207] = {}; blocks[7207]['title'] = 'Staande lamp'; blocks[7207]['show_lastupdate'] = false; blocks[7207]['width'] = 12 //Woonkamer spot blocks[8409] = {}; blocks[8409]['title'] = 'WK spots'; blocks[8409]['show_lastupdate'] = false; blocks[8409]['width'] = 4 //Slaapkamer 1 blocks[8325] = {}; blocks[8325]['title'] = 'Slaapkamer gallerij'; blocks[8325]['show_lastupdate'] = false; blocks[8325]['width'] = 4 //* Scenes *// //Slaapkamer 2 blocks[8327] = {}; blocks[8327]['title'] = 'Slaapkamer balkon'; blocks[8327]['show_lastupdate'] = false; blocks[8327]['width'] = 4 //Scene TV kijken blocks['s2'] = {}; blocks['s2']['title'] = 'TV Kijken'; blocks['s2']['show_lastupdate'] = false; blocks['s2']['width'] = 4 blocks['s2']['hide_data'] = true //Scene alles uit blocks['s3'] = {}; blocks['s3']['title'] = 'Alles uit'; blocks['s3']['show_lastupdate'] = false; blocks['s3']['width'] = 4 blocks['s3']['hide_data'] = true //* STROOM *// //Energieverbruik_1 blocks['8403_1'] = {}; blocks['8403_1']['title'] = 'Huidig verbruik'; //Energieverbruik_2 blocks['8403_2'] = {}; blocks['8403_2']['title'] = 'Totaal vandaag'; //* STATUS DEVICES *// //PC blocks[1828] = {}; blocks[1828]['title'] = 'PC'; blocks[1828]['show_lastupdate'] = false; blocks[1828]['width'] = 4 blocks[1828]['hide_data'] = true blocks[1828]['icon'] = 'fa-circle' //TV Woonkamer blocks[8416] = {}; blocks[8416]['title'] = 'TV WK'; blocks[8416]['show_lastupdate'] = false; blocks[8416]['width'] = 4 blocks[8416]['hide_data'] = true blocks[8416]['icon'] = 'fa-circle' blocks[8416]['protected'] = true //TV Slaapkamer blocks[1824] = {}; blocks[1824]['title'] = 'TV SK'; blocks[1824]['show_lastupdate'] = false; blocks[1824]['width'] = 4 blocks[1824]['hide_data'] = true blocks[1824]['icon'] = 'fa-circle' blocks[1824]['protected'] = true //ATV Woonkamer blocks[8841] = {}; blocks[8841]['title'] = 'ATV WK'; blocks[8841]['show_lastupdate'] = false; blocks[8841]['width'] = 4 blocks[8841]['hide_data'] = true blocks[8841]['icon'] = 'fa-circle' blocks[8841]['protected'] = true //ATV Slaapkamer blocks[1827] = {}; blocks[1827]['title'] = 'ATV SK'; blocks[1827]['show_lastupdate'] = false; blocks[1827]['width'] = 4 blocks[1827]['hide_data'] = true blocks[1827]['icon'] = 'fa-circle' blocks[1827]['protected'] = true //Philips Soundsystem blocks[6517] = {}; blocks[6517]['title'] = 'Philips HTB'; blocks[6517]['show_lastupdate'] = false; blocks[6517]['width'] = 4 blocks[6517]['hide_data'] = true blocks[6517]['icon'] = 'fa-circle' blocks[6517]['protected'] = true //Printer blocks[8839] = {}; blocks[8839]['title'] = 'Printer'; blocks[8839]['show_lastupdate'] = false; blocks[8839]['width'] = 4 blocks[8839]['hide_data'] = true blocks[8839]['icon'] = 'fa-circle' blocks[8839]['protected'] = true //Vaatwasser blocks[8421] = {}; blocks[8421]['title'] = 'Vaatwasser'; blocks[8421]['show_lastupdate'] = false; blocks[8421]['width'] = 4 blocks[8421]['hide_data'] = true blocks[8421]['icon'] = 'fa-circle' blocks[8421]['protected'] = true //Wasmachine blocks[8420] = {}; blocks[8420]['title'] = 'Wasmachine'; blocks[8420]['show_lastupdate'] = false; blocks[8420]['width'] = 4 blocks[8420]['hide_data'] = true blocks[8420]['icon'] = 'fa-circle' blocks[8420]['protected'] = true //Koelkast blocks[8393] = {}; blocks[8393]['title'] = 'Koelkast'; blocks[8393]['show_lastupdate'] = false; blocks[8393]['width'] = 4 blocks[8393]['hide_data'] = true blocks[8393]['icon'] = 'fa-circle' blocks[8393]['protected'] = true //Xiaomi Gateway blocks[8869] = {}; blocks[8869]['title'] = 'Xiaomi'; blocks[8869]['show_lastupdate'] = false; blocks[8869]['width'] = 4 blocks[8869]['hide_data'] = true blocks[8869]['icon'] = 'fa-circle' blocks[8869]['protected'] = true //Android Tablet blocks[8868] = {}; blocks[8868]['title'] = 'Tablet lader'; blocks[8868]['show_lastupdate'] = false; blocks[8868]['width'] = 4 blocks[8868]['hide_data'] = true blocks[8868]['icon'] = 'fa-circle' blocks[8868]['protected'] = true //Android Batterij blocks[8867] = {}; blocks[8867]['title'] = 'Android Tablet'; blocks[8867]['show_lastupdate'] = false; blocks[8867]['width'] = 6 blocks[8867]['protected'] = true blocks[8867]['icon'] = 'fa-percent' /* IEMAND THUIS */ //Tycho blocks[1825] = {}; blocks[1825]['title'] = 'Tycho'; blocks[1825]['icon'] = 'fa-male'; blocks[1825]['width'] = 6; blocks[1825]['hide_data'] = true /* COLUMN CONFIGURATION */ var columns = {} columns['bar'] = {}; columns['bar']['blocks'] = ['sunrise','miniclock','settings']; columns[1] = {}; columns[1]['blocks'] = ['clock','sunrise',publictransport.ovinfotrain,8380,8385,8382,8391,8389,8387,1825,8867]; columns[1]['width'] = 3; columns[2] = {}; columns[2]['blocks'] = ['bt_1',8409,8322,8330,83,82,6576,'s3','s2',calendars.private,'bt_4',1828,8839,8869,8416,6517,8841,1824,1827,8868,8393,8421,8420]; columns[2]['width'] = 5; columns[3] = {}; columns[3]['blocks'] = ['bt_2','weather','1389_1','1833_1','1834_1',7208,8368,'6649_1','bt_3','8403_1','8403_2','8396_1','8398_1','8394_1','8405_1']; columns[3]['width'] = 4; var columns_standby = {} columns_standby[1] = {} columns_standby[1]['blocks'] = ['clock','weather', 'currentweather_big'] columns_standby[1]['width'] = 12;
- Spoiler: show
Code: Select all
/* CUSTOM CSS FILE */ /* Titles */ div.mh.titlegroups h1, h2, h3, h4, h5, h6 { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif; font-weight: medium; font-style: normal; font-size: 17pt; letter-spacing: 0.5pt; margin: 0px; margin-left: 15px; padding-top:0px; height: auto !important; /* default height=75px */ } /* Blocks*/ .transbg.col-xs-1, .transbg.col-xs-2, .transbg.col-xs-4, .transbg.col-xs-4, .transbg.col-xs-5, .transbg.col-xs-6, .transbg.col-xs-7, .transbg.col-xs-8, .transbg.col-xs-9, .transbg.col-xs-10, .transbg.col-xs-11, .transbg.col-xs-12 { padding-top:10px; padding-bottom:10px; border: 2px solid rgba(255,255,255,0); /* border: 7px -> 3px - Smaller space between blocks */ background: rgba(0,0,0,0.2); background-clip: padding-box; border-radius: 8px; } .fa,.wi { font-size:24px !important; } .fa.fa-train { font-size:18px !important; } .fa.fa-unlock.on.icon, .fa.fa-lightbulb-o.on { color:#F1C300; } .fa.fa-lock.off.icon, .fa.fa-lightbulb-o.off { color:#fff; } /*Toggle*/ .fa.fa-toggle-on.icon{ color:#4bd961; opacity: 1 !important; } .fa.fa-toggle-off.icon{ color:#fff; opacity: 0.5 !important; } /*Circle*/ .fa.fa-circle.on { color:#4bd961; font-size:15px !important; opacity: 1 !important; } .fa.fa-circle.off { color:#ff0000; font-size:15px !important; opacity: 1 !important; } .lastupdate { display: none; } .fa.fa-male.on { color:#F1C300 } /*Status*/ .block_1828.transbg.col-xs-4, .block_8839.transbg.col-xs-4, .block_8416.transbg.col-xs-4, .block_6517.transbg.col-xs-4, .block_8841.transbg.col-xs-4, .block_1824.transbg.col-xs-4, .block_1827.transbg.col-xs-4, .block_8393.transbg.col-xs-4, .block_8421.transbg.col-xs-4, .block_8420.transbg.col-xs-4, .block_8868.transbg.col-xs-4, .block_8869.transbg.col-xs-4 { height: 34px; padding-top:7px; padding-bottom:1px; } /*Temperatuur*/ .block_1389_1.transbg.col-xs-4, .block_1833_1.transbg.col-xs-4, .block_1834_1.transbg.col-xs-4, .block_7208.transbg.col-xs-4, .block_8368.transbg.col-xs-4, .block_6649_1.transbg.col-xs-4 { height: 50px; padding-top:7px; padding-bottom:1px; } /*Verlichting*/ .block_8409.transbg.col-xs-4, .block_8322.transbg.col-xs-4, .block_8330.transbg.col-xs-4, .block_83.transbg.col-xs-4, .block_82.transbg.col-xs-4, .block_6576.transbg.col-xs-4, .block_s2.transbg.col-xs-4, .block_s3.transbg.col-xs-4 { height: 50px; padding-top:7px; padding-bottom:1px; } /*Stroom*/ .block_8403_1.transbg.col-xs-4, .block_8403_2.transbg.col-xs-4, .block_8396_1.transbg.col-xs-4, .block_8398_1.transbg.col-xs-4, .block_8394_1.transbg.col-xs-4, .block_8405_1.transbg.col-xs-4 { height: 60px; padding-top:7px; padding-bottom:1px; } /*Sensoren deur/raam + scene*/ .block_8380.transbg.col-xs-6, .block_8385.transbg.col-xs-6, .block_8382.transbg.col-xs-6, .block_8391.transbg.col-xs-6, .block_8389.transbg.col-xs-6, .block_8387.transbg.col-xs-6, .block_s3.transbg.col-xs-6 { height: 70px; padding-top:7px; padding-bottom:1px; } /*Tycho + Android Tablet*/ .block_8867.transbg.col-xs-6, .block_1825.transbg.col-xs-6 { height: 50px; padding-top:7px; padding-bottom:1px; } div.mh.titlegroups { height: 40px !important; /* default height=75px */ padding-top: 2px; /* center text for new height */ } div.mh h3 { padding-top: 1px; } /*Warning*/ .warning { background: rgba(199,44,44,0.3) !important; background-clip: padding-box; } .warningblue { background: rgba(45,119,204,0.3) !important; background-clip: padding-box; } .verbruik { color: #F1C300; }
- Spoiler: show
Code: Select all
//add custom javascript in here function afterGetDevices(){ } function getExtendedBlockTypes(blocktypes){ //blocktypes.Type['Lighting 2'] = { icon: 'fa fa-lightbulb-o', title: '<Name>', value: 'ds' } return blocktypes; } //Temperatuur woonkamer function getStatus_1389_1(idx,value,device){ if(parseFloat(device['Data'])>30){ $('div.block_1389_1').addClass('warning'); } else if (parseFloat(device['Data'])<5){ $('div.block_1389_1').addClass('warningblue'); } else { $('div.block_1389_1').removeClass('warning'); $('div.block_1389_1').removeClass('warningblue'); } } //Temperatuur Slaapkamer function getStatus_1833_1(idx,value,device){ if(parseFloat(device['Data'])>30){ $('div.block_1833_1').addClass('warning'); } else if (parseFloat(device['Data'])<5){ $('div.block_1833_1').addClass('warningblue'); } else { $('div.block_1833_1').removeClass('warning'); $('div.block_1833_1').removeClass('warningblue'); } } //Temperatuur Badkamer function getStatus_1834_1(idx,value,device){ if(parseFloat(device['Data'])>30){ $('div.block_1834_1').addClass('warning'); } else if (parseFloat(device['Data'])<5){ $('div.block_1834_1').addClass('warningblue'); } else { $('div.block_1834_1').removeClass('warning'); $('div.block_1834_1').removeClass('warningblue'); } } //Temperatuur Hal function getStatus_7208(idx,value,device){ if(parseFloat(device['Data'])>30){ $('div.block_7208').addClass('warning'); } else if (parseFloat(device['Data'])<5){ $('div.block_7208').addClass('warningblue'); } else { $('div.block_7208').removeClass('warning'); $('div.block_7208').removeClass('warningblue'); } } //Temperatuur Keuken function getStatus_8368_1(idx,value,device){ if(parseFloat(device['Data'])>30){ $('div.block_8368').addClass('warning'); } else if (parseFloat(device['Data'])<5){ $('div.block_8368').addClass('warningblue'); } else { $('div.block_8368').removeClass('warning'); $('div.block_8368').removeClass('warningblue'); } } //Temperatuur Buiten function getStatus_6649_1(idx,value,device){ if(parseFloat(device['Data'])>30){ $('div.block_6649_1').addClass('warning'); } else if (parseFloat(device['Data'])<5){ $('div.block_6649_1').addClass('warningblue'); } else { $('div.block_6649_1').removeClass('warning'); $('div.block_6649_1').removeClass('warningblue'); } } // SENSOREN //Voordeur function getStatus_8380(idx,value,device){ if(device['Status']=='Open') { blocks[8380]['icon'] = 'fa fa-unlock'} else { blocks[8380]['icon'] = 'fa fa-lock'} } //Balkondeur function getStatus_8385(idx,value,device){ if(device['Status']=='Open') { blocks[8385]['icon'] = 'fa fa-unlock'} else { blocks[8385]['icon'] = 'fa fa-lock'} } //Keukenraam function getStatus_8382(idx,value,device){ if(device['Status']=='Open') { blocks[8382]['icon'] = 'fa fa-unlock'} else { blocks[8382]['icon'] = 'fa fa-lock'} } //Slaapkamer gallerij function getStatus_8391(idx,value,device){ if(device['Status']=='Open') { blocks[8391]['icon'] = 'fa fa-unlock'} else { blocks[8391]['icon'] = 'fa fa-lock'} } //Slaapkamer balkon function getStatus_8389(idx,value,device){ if(device['Status']=='Open') { blocks[8389]['icon'] = 'fa fa-unlock'} else { blocks[8389]['icon'] = 'fa fa-lock'} } //Woonkamer raam function getStatus_8387(idx,value,device){ if(device['Status']=='Open') { blocks[8387]['icon'] = 'fa fa-unlock'} else { blocks[8387]['icon'] = 'fa fa-lock'} } //VERLICHTING //Woonkamer spot function getStatus_8409(idx,value,device){ if(device['Status']=='On') { blocks[8409]['icon'] = 'fa fa-toggle-on'} else { blocks[8409]['icon'] = 'fa fa-toggle-off'} } //Eettafel function getStatus_8322(idx,value,device){ if(device['Status']=='On') { blocks[8322]['icon'] = 'fa fa-toggle-on'} else { blocks[8322]['icon'] = 'fa fa-toggle-off'} } //Studeerkamer function getStatus_8330(idx,value,device){ if(device['Status']=='On') { blocks[8330]['icon'] = 'fa fa-toggle-on'} else { blocks[8330]['icon'] = 'fa fa-toggle-off'} } //Pallet function getStatus_83(idx,value,device){ if(device['Status']=='On') { blocks[83]['icon'] = 'fa fa-toggle-on'} else { blocks[83]['icon'] = 'fa fa-toggle-off'} } //Kastverlichting function getStatus_82(idx,value,device){ if(device['Status']=='On') { blocks[82]['icon'] = 'fa fa-toggle-on'} else { blocks[82]['icon'] = 'fa fa-toggle-off'} } //Bol function getStatus_6576(idx,value,device){ if(device['Status']=='On') { blocks[6576]['icon'] = 'fa fa-toggle-on'} else { blocks[6576]['icon'] = 'fa fa-toggle-off'} } //Alles uit function getStatus_s3(idx,value,device){ if(device['Status']=='On') { blocks['s3']['icon'] = 'fa fa-toggle-on'} else { blocks['s3']['icon'] = 'fa fa-toggle-off'} } //TV kijken function getStatus_s2(idx,value,device){ if(device['Status']=='On') { blocks['s2']['icon'] = 'fa fa-toggle-on'} else { blocks['s2']['icon'] = 'fa fa-toggle-off'} } //VERBRUIK //Koelkast function getStatus_8396_1(idx,value,device){ if(parseFloat(device['Usage'])>0){ $('div.block_8396_1.col-xs-4').addClass('verbruik'); } else { } } //Wasmachine function getStatus_8398_1(idx,value,device){ if(parseFloat(device['Usage'])>0){ $('div.block_8398_1.col-xs-4').addClass('verbruik'); } else { } } //Vaatwasser function getStatus_8394_1(idx,value,device){ if(parseFloat(device['Usage'])>0){ $('div.block_8394_1.col-xs-4').addClass('verbruik'); } else { } }