For everyone who also displays Dashticz on a 7 inch touchscreen, here's a preview of my project.
I have enlarged all blocks and texts, so that it can also be read from a distance.
Code: Select all
var config = {}
config['domoticz_ip'] = 'http://????????????';
config['language'] = 'nl_NL';
config['app_title'] = 'Dashticz';
config['domoticz_refresh'] = '5';
config['dashticz_refresh'] = '77';
//config['slide_effect'] = 'fade';
config['auto_swipe_back_after'] = '60';
config['auto_slide_pages'] = false;
config['vertical_scroll'] = 0;
config['use_favorites'] = 0;
config['hide_topbar'] = 1;
config['settings_icons'] = [];
config['timeformat'] = 'DD-MM-YY HH:mm';
config['calendarformat'] = 'dd DD.MM HH:mm';
config['shorttime'] = 'HH:mm';
config['longtime'] = 'HH:mm';
config['longdate'] = ' ';
config['weekday'] = ' ';
config['calendarlanguage'] = 'nl_NL';
config['lineColors'] = ['#aaa9a9', '#7e7e7e'];
config['standard_graph'] = 'day';
config['disable_update_check'] = 1;
config['enable_websocket'] = true;
config['domoticz_timeout'] = 2000;
config['enable_swiper'] = 1;
config['swiper_touch_move'] = 0;
config['units'] = {
names: {
kwh: ' kWh',
watt: ' W',
gas: ' m3',
water: ' Liter',
time: ''
},
decimals: {
kwh: 3,
watt: 0,
gas: 1,
water: 0,
time: 0
}
}
//weersvoorspelling
config['owm_api'] = '????????????????????????';
config['owm_city'] = '??????????';
config['owm_name'] = '';
config['owm_country'] = 'nl';
config['owm_lang'] = 'nl';
config['owm_cnt'] = '4';
config['owm_min'] = true;
config['owm_days'] = false;
config['static_weathericons'] = false;
//afvalkalender
config['garbage_company'] = 'rova';
config['garbage_icalurl'] = 0;
config['garbage_zipcode'] = '???????????';
config['garbage_street'] = '????????????????';
config['garbage_housenumber'] = '????????????????';
config['garbage_maxitems'] = '1';
config['garbage_width'] = '2';
config['garbage_hideicon'] = 0;
config['garbage_use_names'] = true;
config['garbage_use_colors'] = false;
config['garbage_icon_use_colors'] = true;
config['garbage_use_cors_prefix'] = false;
config['calendarlanguage'] = 'nl';
config['garbage'] = {
gft: {kliko: 'green', code: '#f9e231', name: '', icon: 'img/garbage/kliko_green.png'},
pmd: {kliko: 'orange', code: '#FF8C00', name: '', icon: 'img/garbage/kliko_orange.png'},}
//////////////////////////////////////////////////////////////Instellingen hier boven
var blocks = {}
blocks[75] = {
width: 12,
iconOn : 'fas fa-toggle-on', //Warm water
iconOff : 'fas fa-toggle-off',
switch : 0,
hide_data : 1,
last_update : 0,
};
blocks[33] = {
width: 12,
iconOn : 'fas fa-toggle-on', //Lampengroep tuin
iconOff : 'fas fa-toggle-off',
switch : 0,
hide_data : 1,
last_update : 0,
};
blocks[27] = {
width: 12,
iconOn : 'fas fa-toggle-on', //Lampen woonkamer
iconOff : 'fas fa-toggle-off',
switch : 0,
hide_data : 1,
last_update : 0,
};
blocks[227] = {
width: 12,
iconOn : 'fas fa-toggle-on', //Kerstboom
iconOff : 'fas fa-toggle-off',
switch : 0,
hide_data : 1,
last_update : 0,
};
blocks['s1'] = {
width: 12,
title: 'Sonos',
iconOn : 'fas fa-toggle-on', //Sonos
iconOff : 'fas fa-toggle-off',
switch : 0,
confirmation : 0,
hide_data : 1,
last_update : 0,
};
blocks['s3'] = {
width: 12,
title: 'Zolder',
iconOn : 'fas fa-toggle-on', //Zolder
iconOff : 'fas fa-toggle-off',
switch : 0,
protected: 1,
hide_data : 1,
last_update : 0,
};
blocks[56] = {
width: 6,
title: 'Was',
imageOn : 'roofwindow_open.svg', //Dakraam zolder was
imageOff : 'roofwindow_closed.svg',
switch : 0,
//hide_data : 1,
last_update : 0,
};
blocks[57] = {
width: 5,
title: 'Logé',
imageOn : 'roofwindow_open.svg', //Dakraam zolder slaap
imageOff : 'roofwindow_closed.svg',
switch : 0,
//hide_data : 1,
last_update : 0,
};
blocks[72] = {
width: 1,
//title: '',
icon : '', //temperatuur binnen
//image : '',
switch : true,
hide_title : 1,
hide_data : 1,
protected: 1,
last_update : false,
};
blocks[79] = {
width: 1,
//title: '',
icon : '', //temperatuur buiten
//image : '',
switch : true,
hide_title : 1,
hide_data : 1,
protected: 1,
last_update : false,
};
blocks[206] = {
width: 2,
title: '',
icon : '', //laagste temperatuur binnen >24h
//image : '',
switch : true,
hide_title : 1,
hide_data : 1,
protected: 1,
last_update : false,
};
blocks[211] = {
width: 2,
//title: '',
icon : '', //hoogste temperatuur binnen >24h
//image : '',
switch : true,
hide_title : 1,
hide_data : 1,
protected: 1,
last_update : false,
};
blocks[238] = {
width: 1,
title: '',
icon : '', //laagste temperatuur buiten >24h
//image : '',
switch : true,
hide_title : 1,
hide_data : 1,
protected: 1,
last_update : false,
};
blocks[239] = {
width: 1,
//title: '',
icon : '', //hoogste temperatuur buiten >24h
//image : '',
switch : true,
hide_title : 1,
hide_data : 1,
protected: 1,
last_update : false,
};
blocks[198] = {
width: 12,
title: '',
imageOn : 'Wasmachine.png', //Wasmachine
iconOff : '',
switch : 0,
hide_title : 1,
hide_data : 1,
protected: 1,
last_update : 0,
//gotoslideOn: 5,
};
blocks[184] = {
width: 12,
title: '',
imageOn : 'dishwasher_240px.png', //Vaatwasser
//imageOn : 'washer1.svg', //Vaatwasser
iconOff : '',
switch : 0,
hide_title : 1,
hide_data : 1,
protected: 1,
last_update : 0,
//gotoslideOn: 5,
};
blocks[234] = {
width: 12, //Luchtkwaliteit Woonkamer
//title: '',
//iconOff : '',
icon : 'fas fa-home',
switch : 1,
hide_title : 1,
//hide_data : 1,
//protected: 1,
last_update : 0,
//gotoslideOn: 5,
};
blocks[235] = {
width: 12, //ppm/% Woonkamer
//title: '',
//iconOff : '',
icon : 'fas fa-home',
//switch : 1,
//hide_title : 1,
//hide_data : 1,
//protected: 1,
last_update : 0,
//gotoslideOn: 5,
};
blocks['164_1'] = {
width: 12,
icon : 'fas fa-fire-alt', //Gasverbruik
switch : 1,
hide_title : 1,
hide_data : 1,
protected: 1,
last_update : 0,
popup: 'popup_gas'
};
blocks['popup_gas'] = {
title: 'Gasverbruik vandaag',
devices: [164],
toolTipStyle: false,
//datasetColors: ['red', 'yellow'],
graph: 'bar',
custom : {
"laatste uren": {
range: 'day',
filter: '4 hours',
data: {
m3: 'd.v_164*0.1' }
},
"vandaag": {
range: 'day',
filter: '12 hours',
data: {
m3: 'd.v_164*0.1' }
},
"afgelopen maand": {
range: 'month',
//filter: '7 days',
data: {
m3: 'd.v_164' }
}
}
};
blocks['160_2'] = {
width: 12,
icon : 'fas fa-plug', //Stroomverbruik
switch : 1,
hide_title : 1,
hide_data : 1,
protected: 1,
last_update : 0,
popup: 'popup_stroom'
};
blocks['popup_stroom'] = {
title: 'Stroomverbruik vandaag',
devices: [160],
toolTipStyle: false,
//datasetColors: ['red', 'yellow'],
graph: 'bar',
custom : {
"laatste uren": {
range: 'day',
filter: '4 hours',
data: {
watt: 'd.v_160*1+d.v2_160*1' }
},
"vandaag": {
range: 'day',
filter: '12 hours',
data: {
watt: 'd.v_160*1+d.v2_160*1' }
},
"afgelopen maand": {
range: 'month',
//filter: '7 days',
data: {
kWh: 'd.v_160*1+d.v2_160*1' }
}
}
};
blocks['42_1'] = {
width: 12,
icon : 'fas fa-faucet', //Waterverbruik
switch : 1,
hide_title : 1,
hide_data : 1,
protected: 1,
last_update : 0,
popup: 'popup_water'
};
blocks['popup_water'] = {
title: 'Waterverbruik vandaag',
devices: [42],
toolTipStyle: false,
//datasetColors: ['red', 'yellow'],
graph: 'bar',
custom : {
"laatste uren": {
range: 'day',
filter: '4 hours',
data: {
liter: 'd.v_42*100' }
},
"vandaag": {
range: 'day',
filter: '12 hours',
data: {
liter: 'd.v_42*100' }
},
"afgelopen maand": {
range: 'month',
//filter: '7 days',
data: {
liter: 'd.v_42*1000' }
}
}
};
blocks['dial_zolder'] = {
idx: 232,
title: 'Was Zolder',
type: 'dial',
setpoint: 60,
min: 40,
max: 80,
width: 4,
shownumbers: true,
last_update: false,
values: [
{
value:'Humidity',
unit:' %',
},
{
value:'Temp',
unit:' °C',
},
],
}
blocks['dial_badkamer'] = {
idx: 183,
title: 'Badkamer',
type: 'dial',
setpoint: 60,
min: 40,
max: 80,
width: 4,
shownumbers: true,
last_update: false,
values: [
{
value:'Humidity',
unit:' %',
},
{
value:'Temp',
unit:' °C',
},
],
}
blocks['dial_netatmo'] = {
idx: 234,
title: 'Woonkamer',
type: 'dial',
setpoint: 60,
min: 40,
max: 80,
width: 4,
shownumbers: true,
last_update: false,
values: [
{
value:'Humidity',
unit:' %',
},
{
value:'Temp',
unit:' °C',
},
],
}
blocks['nefiteasy'] = {
idx: 230,
title: 'Nefit Easy',
type: 'dial',
width: 4,
}
blocks['sonos_controller'] = {
idx: 237,
title: 'Sonos Radio',
type: 'dial',
width: 6,
}
blocks['sonos_volume'] = {
idx: 39,
title: 'Sonos Volume',
type: 'dial',
shownumbers: true,
min: 0,
max: 25,
width: 6,
}
blocks['blocktitle_1'] = {
type: 'blocktitle',
//title: 'Schakelaars',
width: 12
};
blocks['blocktitle_2'] = {
type: 'blocktitle',
//title: 'Menu',
width: 12
};
blocks['blocktitle_3'] = {
type: 'blocktitle',
//title: 'Info',
width: 12
};
/////////////////////////////////////////////////////////////////////////
var buttons = {}
buttons.p2 = {key: "button0",width:2, isimage:true, icon:'fas fa-bars', title: '', slide:2}
buttons.p1 = {key: "button1",width:2, isimage:true, icon:'fas fa-reply', title: '', slide:1}
buttons.p3 = {key: "button2",width:2, isimage:true, icon:'fas fa-music', title: '', slide:3}
buttons.p4 = {key: "button3",width:2, isimage:true, icon:'fas fa-info', title: '', slide:2}
/////////////////////////////////////////////////////////////////////////
var columns = {}
columns['bar0'] = {}
columns['bar0']['blocks'] = [79,239,238,'miniclock',206,211,72]
columns['bar1'] = {}
columns['bar1']['blocks'] = [buttons.p1]
columns[1] = {
blocks: ['blocktitle_1',75,33,227,'s1','s3'],
width: 5
}
columns[2] = {
blocks: ['blocktitle_3',56,57,'42_1','160_2','164_1',235],
width: 5
}
columns[3] = {
blocks: ['dial_netatmo','dial_badkamer','dial_zolder'],
width: 10
}
columns[4] = {
blocks: ['sonos_controller','sonos_volume'],
width: 10
}
columns['menu0'] = {
blocks: ['blocktitle_2',buttons.p2,184,198,'garbage'],
width: 2
}
columns['menu1'] = {
blocks: [buttons.p1,buttons.p4,buttons.p3],
width: 1
}
columns[5] = {
blocks: [buttons.p1,buttons.p4,buttons.p3],
width: 1
}
columns['menu2'] = {
blocks: [buttons.p2],
width: 1
}
/////////////////////////////////////////////////////////////////////////
var screens = {}
screens[1] = {
columns: ['bar0','menu0',1,2],
background: 'bg0.jpg',
}
screens[2] = {
columns: ['menu1', 3],
background: 'bg0.jpg'
}
screens[3] = {
columns: ['menu1', 4],
background: 'bg0.jpg'
}