Code: Select all
var config = {}
config['language'] = 'nl_NL'; //or: en_US, de_DE, fr_FR, hu_HU, it_IT, pt_PT, sv_SV
config['domoticz_ip'] = 'http://[IP-adres]:[poort]';
config['domoticz_refresh'] = '5';
config['dashticz_refresh'] = '60';
config['user_name'] = 'username';
config['pass_word'] = 'password';
config['loginEnabled'] = 'false';
config['login_timeout'] = '0';
config['enable_websocket'] = 'true';
config['domoticz_timeout'] = '2000';
config['default_news_url'] = 'https://www.volkskrant.nl/voorpagina/rss.xml';
config['news_scroll_after'] = '10';
config['standby_after'] = '15';
config['start_page'] = '1';
config['vertical_scroll'] = '1';
config['enable_swiper'] = '2';
config['swiper_touch_move'] = '1';
config['auto_swipe_back_to'] = '1';
config['auto_swipe_back_after'] = '180';
config['auto_slide_pages'] = '0';
config['slide_effect'] = 'slide';
config['standard_graph'] = 'day';
config['security_panel_lock'] = '0';
config['language'] = 'nl_NL';
config['timeformat'] = 'DD-MM-YY HH:mm';
config['boss_stationclock'] = 'ViennaBoss';
config['gm_api'] = 'Google Maps API key';
config['gm_latitude'] = 'latitude';
config['gm_longitude'] = 'longitude';
config['static_weather_icons'] = 'false';
config['use_beaufort'] = 'true';
config['use_fahenheit'] = '0';
config['translate_windspeed'] = '1';
config['selector_instead_of_buttons'] = '0';
config['auto_positioning'] = '1';
config['use_favorites'] = '0';
config['use_hidden'] = '0';
config['use_cors'] = '0';
config['last_update'] = '1';
config['hide_topbar'] = '1';
config['hide_seconds'] = '0';
config['hide_seconds_stationclock'] = '1';
config['hide_mediaplayer'] = '1';
config['selector_instead_of_buttons'] = '1';
config['settings_icons'] = 'settings';
config['shortdate'] = 'D MMM';
config['longdate'] = 'D MMMM YYYY';
config['shorttime'] = 'HH:mm';
config['longtime'] = 'HH:mm:ss';
config['weekday'] = 'dddd';
config['no_rgb'] = '0';
config['colorpicker'] = '0';
config['standby_call_url'] = '';
config['standby_call_url_on_end'] = '';
config['hide_off_button'] = '0';
config['speak_lang'] = 'nl_NL';
config['use_favorites'] = 0; //Request all Domoticz Devices, not only favorites
config['auto_positioning'] = 0; // Use 0 if you have defined your own columns
config['garbage_icalurl'] = 'https://wasteapi2.ximmio.com/api/CallIcal?cn=Meerlanden&x=800bf8d7-6dd1-4490-ba9d-b419d6dc8a45&ty=Diemen&ua=3000099563&sd=2024-12-21&ed=2028-01-09&path=https://wasteapi2.ximmio.com&ln=nl&nt=7';
config['garbage'] = {
rest: {kliko: 'grey', code: '#5e5d5c', name: 'Restafval', icon: 'img/garbage/kliko_grey.png'},
gft: {kliko: 'green', code: '#2B660A', name: 'GFT', icon: 'img/garbage/kliko_green.png'},
pmd: {kliko: 'orange', code: '#db5518', name: 'Plastic', icon: 'img/garbage/kliko_orange.png'},
papier: {kliko: 'blue', code: '#153477', name: 'Papier', icon: 'img/garbage/kliko_blue.png'},
kca: {kliko: 'red', code: '#b21807', name: 'Chemisch afval', icon: 'img/garbage/kliko_red.png'},
brown: {kliko: 'brown', code: '7c3607', name: 'Bruin', icon: 'img/garbage/kliko_brown.png'},
black: {kliko: 'black', code: '#000000', name: 'Zwart', icon: 'img/garbage/kliko_black.png'},
milieu: {kliko: 'yellow', code: '#f9e231', name: 'Geel', icon: 'img/garbage/kliko_yellow.png'},
kerstboom: {kliko: 'green', code: '#375b23', name: 'Kerstboom', icon: 'img/garbage/tree.png'},
}
var frames = {}
frames.foksuk = {
frameurl: "/img/FokSuk.htm",
refresh: 10000,
height: 210,
scrollbars: false,
width: 6
}
frames.sigmund = {
frameurl: "/img/Sigmund.html",
refresh: 10000,
height: 195,
scrollbars: false,
width: 12
}
frames.volumegraph = {
frameurl: "/img/graph.htm",
height: 215,
scrollbars: false,
width: 4
}
frames.volumegraphsun = {
frameurl: "img/sungraph.htm",
height: 215,
scrollbars: false,
width: 4
}
frames.warmtepomp = {
frameurl: "img/warmtepomp.htm",
height: 215,
scrollbars: false,
width: 4
}
frames.flightradar = {
frameurl: "img/flightradar.htm",
width: 12,
height: 340,
scrollbars: false,
forcerefresh: 1
}
frames.iss = {
frameurl: "img/ISS.htm",
width: 7,
height: 336,
scrollbar: false
}
frames.airquality = {
frameurl: "img/AirQuality.htm",
refresh: 5000,
height: 71,
scrollbars: false,
width: 6
}
frames.pollen = {
frameurl: "img/Pollen.htm",
refresh: 5000,
height: 160,
scrollbars: false,
width: 12
}
frames.liander = {
frameurl: "img/Liander.htm",
refresh: 5000,
height: 92,
scrollbars: false,
width: 12
}
//definition of blocks
blocks['empty'] = {
title:'',
width: 12
}
blocks['empty2'] = {
title:'',
width: 1
}
blocks['traffic'] = {
show_lastupdate: false,
icon: 'fas fa-car-burst',
width: 12
}
blocks['train'] = {
width: 12
}
blocks['sunrise'] = {
width: 6
}
blocks['buien'] = {
frameurl: '/img/buienradar.htm',
scrollbars: false,
aspectratio: 1,
scaletofit: 256,
width: 6,
}
blocks['weer'] = {
type: 'weather',
provider: 'knmi',
apikey: 'api-key',
city: 'City',
layout: 4,
refresh: 900,
icon: 'meteo',
monochrome: false,
useBeaufort: true,
width: 6,
count: 3
}
blocks['news'] = {
title: 'Nieuws',
icon: 'fas fa-newspaper',
newwindow: 5,
filter: '3 days',
maxheight: '150',
width: 12
}
blocks['news_NASA'] = {
title: 'NASA Image of the Day',
feed: 'https://www.nasa.gov/feeds/iotd-feed/',
icon: 'fas fa-newspaper',
newwindow: 5,
filter: '3 days',
maxheight: '175',
width: 12
}
blocks['ovapi_1'] = {
tpc: '30009542',
title:'Metro 53 Diemen-Zuid',
show_lastupdate: true,
provider: 'ovapi',
show_via: true,
show_direction: true,
url: 'https://reisinfo.gvb.nl/nl/lijnen/53',
icon: 'fas fa-subway',
interval: '120',
newwindow: '1',
url: 'https://reisinfo.gvb.nl/reisinformatie/lijn/GVB/53',
results: 7,
width: 4
}
blocks['ovapi_2'] = {
tpc: '30000998',
title:'Bushalte Vinkenbrug',
show_lastupdate: true,
provider: 'ovapi',
show_via: true,
url: 'https://reisinfo.gvb.nl/nl/lijnen/66',
icon: 'fas fa-bus',
interval: '120',
newwindow: '1',
url: 'https://9292.nl/diemen/bushalte-vinkenbrug',
results: 8,
width: 6
}
blocks['ovapi_3'] = {
tpc: '30000453',
title:'Tram 19 Diemen-Sniep',
show_lastupdate: true,
provider: 'ovapi',
show_via: true,
url: 'https://reisinfo.gvb.nl/nl/lijnen/19',
icon: 'fas fa-train-tram',
interval: '120',
newwindow: '1',
url: 'https://reisinfo.gvb.nl/reisinformatie/lijn/GVB/19',
results: 10,
width: 6
}
blocks['mygarbage'] = {
company: 'meerlanden',
icon: 'fas fa-trash-alt',
zipcode: '1112WS',
street: 'street',
housenumber: nbr,
maxitems: 4,
maxdays: 14,
hideicon: false,
use_names: true,
use_colors: false,
icon_use_colors: true,
title: 'Afvalkalender',
layout: '1',
width: 12
}
blocks['my_calendar'] = {
type: 'calendar',
maxitems: 10,
layout: 1,
url: 'https://calendar.url.html',
icalurl: 'https://calendar/calendar.ics',
lastweek: false,
isoweek: true,
emptytext: 'Geen afspraken',
title: 'Agenda',
method: '2',
startonly: true,
scaletofit: 256,
width: 6
}
blocks['mymap'] = {
type: 'map',
latitude: latitude,
longitude: longitude,
zoom: 11,
width: 12,
height: 340,
showtraffic: true,
showUI: false,
showrefresh: false
}
blocks['moon'] = {
width: 12
}
blocks['graph_1'] = {
devices: [1],
title: 'Elektra',
height: 280,
width: 12,
graph: ['line', 'bar', 'bar'],
ylabels: ['kWh'],
custom: {
"Vandaag": {
range: 'day',
filter: '24 hours',
data: {
netto: 'd.v1_1+d.v2_1-d.r1_1-d.r2_1',
verbruik: 'd.v1_1+d.v2_1',
teruglevering: '-d.r1_1-d.r2_1'
}
},
"Maand": {
range: 'month',
filter: '30 days',
data: {
netto: 'd.v1_1+d.v2_1-d.r1_1-d.r2_1',
verbruik: 'd.v1_1+d.v2_1',
teruglevering: '-d.r1_1-d.r2_1'
}
},
"Jaar": {
range: 'year',
filter: '365 days',
data: {
netto: 'd.v1_1+d.v2_1-d.r1_1-d.r2_1',
verbruik: 'd.v1_1+d.v2_1',
teruglevering: '-d.r1_1-d.r2_1'
}
}
},
legend: true,
datasetColors: ['white', '#0096FF', '#FFEA00']
}
blocks['graph_95'] = {
devices: [95],
title: 'Warmtepomp',
graph: 'line',
height: 280,
width: 12,
graph: ['line'],
custom: {
"Vandaag": {
range: 'day',
filter: '24 hours',
data: {
netto: 'd.v1_95+d.v2_95',
verbruik: 'd.v1_95+d.v2_95',
}
},
"Maand": {
range: 'month',
filter: '30 days',
data: {
netto: 'd.v1_95+d.v2_95',
verbruik: 'd.v1_95+d.v2_95',
}
},
"Jaar": {
range: 'year',
filter: '365 days',
data: {
netto: 'd.v1_11+d.v2_11',
verbruik: 'd.v1_95+d.v2951',
}
}
},
legend: true,
datasetColors: ['white', '#0096FF']
}
blocks['zonnepanelen'] = {
devices: [12],
title: 'Zonnepanelen',
graph: 'line',
height: 280,
width: 12,
datasetColors: ['yellow'],
legend: true,
custom: {
"Vandaag": {
range: 'day',
filter: '12 hours',
data: {
Opbrengst: 'd.v_12' }
},
"Maand": {
range: 'month',
filter: '30 days',
data: {
Opbrengst: 'd.v_12' }
},
"Jaar": {
range: 'year',
filter: '365 days',
data: {
Opbrengst: 'd.v_12' }
}
}
}
blocks['graph_15'] = {
devices: [15],
title: 'Water',
graph: 'line',
width: 12,
height: 280,
datasetColors: ['#0096FF'],
legend: true,
custom: {
"Vandaag": {
range: 'day',
filter: '12 hours',
data: {
Waterverbruik: 'd.v_15/10' }
},
"Maand": {
range: 'month',
filter: '30 days',
data: {
Waterverbruik: 'd.v_15/10' }
},
"Jaar": {
range: 'year',
filter: '365 days',
data: {
Waterverbruik: 'd.v_15/10' }
}
}
}
blocks['waterverbruik_dial'] = {
type: 'dial',
idx: 14,
title: 'Waterverbruik',
showvalue: true,
animation: true,
showring: true,
shownumbers: true,
min: 0,
max: 3000,
last_update: false,
color: 'fff',
width: 10
}
blocks[28] = {
devices: [28],
icon: 'fas fa-sun',
width: 12
}
blocks[43] = {
devices: [43],
icon: 'fas fa-euro-sign',
width: 12
}
blocks[75] = {
devices: [75],
icon: 'fas fa-cloud-sun',
last_update: false,
width: 12
}
blocks['tijd-volgende-bui'] = {
idx: 31,
icon: 'fas fa-cloud-rain',
width: 12
}
blocks['p1_dial'] = {
type: 'dial',
subtype: 'usage',
idx: 73,
values: [
{
value: 'Data0',
unit: 'kWh',
label: 't1',
scale: 0.001
},
{
value: 'Data1',
unit: 'kWh',
label: 't2',
scale: 0.001
},
],
dialicon: 'fas fa-plug-circle-bolt',
showvalue: true,
animation: true,
showring: true,
shownumbers: true,
min: 0,
max: 6000,
last_update: false,
color: '#fff',
width: 5
}
blocks['power-failures_dial'] = {
idx: 61,
type: 'dial',
showring: true,
color: '#fff',
width: 3
}
blocks['long-power-failures_dial'] = {
idx: 62,
type: 'dial',
showring: true,
color: '#fff',
width: 3
}
blocks['warmtepomp_dial'] = {
type: 'dial',
idx: 105,
values: [
{
value: 'Data0',
unit: 'kWh',
label: 't1',
scale: 0.001
},
{
value: 'Data1',
unit: 'kWh',
label: 't2',
scale: 0.001
},
],
showvalue: true,
animation: true,
showring: true,
shownumbers: true,
min: 0,
max: 2500,
last_update: false,
color: '#fff',
unit: 'W',
width: 3
}
blocks['staande-lamp'] = {
idx: 117,
title: 'Staande lamp',
type: 'dial',
SwitchType: 'On/Off',
last_update: false,
color: '#7dd657',
width: 2
}
blocks['staande-lamp_dial'] = {
idx: 119,
title: 'Verbruik staande-lamp',
type: 'dial',
showvalue: true,
animation: true,
showring: true,
shownumbers: true,
min: 0,
max: 12,
last_update: false,
color: '#fff',
width: 3
}
blocks['kerstboom'] = {
idx: 122,
title: 'Kerstboom',
type: 'dial',
SwitchType: 'On/Off',
last_update: false,
color: '#57a3d6',
width: 5
}
blocks['temp_hum_baro'] = {
idx: 24,
title: 'Weer',
type: 'dial',
setpoint: 15,
min: -10,
max: 40,
width: 6,
/* dialicon: ['fas fa-thermometer-half', 'fas fa-arrow-down'], */ // dial icons array when dials have more than 1 extra info
/* dialimage: ['volumio.png', 'air.png'], */ // dial images array when for dials have more than 1 extra info
showunit: true,
shownumbers: true,
showring: true,
last_update: false // disabling last update to allow for more room
}
blocks['wind'] = {
idx: 26,
title: 'Wind',
type: 'dial',
setpoint: 18, // the entire outer ring will change color based on this setpoint, factoring in the current temperature (default 15)
offset: 0, // 0 will point to the wind source, 180 will point to wind direction (default is 0)
width: 6,
showring: true,
showunit: true,
shownumbers: true,
last_update: false
}
blocks['zonkracht'] = {
idx: 28,
type: 'dial',
min: 0,
max: 1000,
shownumbers: true,
showring: true,
last_update: true,
color: '#ffea00',
width: 6
}
blocks['zichtbaarheid'] = {
idx: 27,
type: 'dial',
min: 0,
max: 50,
shownumbers: true,
showring: true,
last_update: true,
color: '#fff',
width: 6
}
blocks['pi-temp'] = {
idx: 88,
title: 'Pi Temp',
type: 'dial',
min: 0,
max: 100,
shownumbers: true,
last_update: false,
color: '#7dd657',
width: 6
}
blocks['memory-usage'] = {
idx: 89,
title: 'Memory Usage',
type: 'dial',
min: 0,
max: 100,
shownumbers: true,
last_update: false,
color: '#7dd657',
width: 6
}
blocks['process-usage'] = {
idx: 90,
title: 'Process Usage',
type: 'dial',
min: 0,
max: 100,
shownumbers: true,
last_update: false,
color: '#7dd657',
width: 6
}
blocks['hdd'] = {
idx: 91,
title: 'HDD',
type: 'dial',
min: 0,
max: 100,
shownumbers: true,
last_update: false,
color: '#7dd657',
width: 6
}
blocks['hdd-boot'] = {
idx: 92,
title: 'HDD boot',
type: 'dial',
min: 0,
max: 100,
shownumbers: true,
last_update: false,
color: '#7dd657',
width: 6
}
blocks['cpu-usage'] = {
idx: 93,
title: 'CPU usage',
type: 'dial',
min: 0,
max: 100,
shownumbers: true,
last_update: false,
color: '#7dd657',
width: 6
}
blocks['alarmmeldingen'] = {
rss: 'https://alarmeringen.nl/feeds/city/amsterdam.rss',
filter: 'Amsterdam',
show_lastupdate: true,
icon: 'fas fa-tower-broadcast',
width: 12,
refresh: 60,
results: 10
}
blocks['log'] = {
title: 'Domoticz log',
type: 'log',
ascending: false,
width: 12,
height: 282,
icon: 'fas fa-file-lines'
}
//Definition of columns
var columns = {}
columns[1] = {
blocks : ['clock', frames.pollen, 'mygarbage', 'news', 'moon'],
width: 2
}
columns[2] = {
blocks : ['sunrise', frames.airquality, 'my_calendar', 'weer', 'empty', frames.foksuk, 'buien'],
width: 5
}
columns[3] = {
blocks : ['traffic', 'mymap', 'train', 'ovapi_3', 'ovapi_2'],
width: 5
}
columns[4] = {
blocks : [43, frames.liander, 75, 'zonkracht', 'zichtbaarheid', 'temp_hum_baro', 'wind', 'empty2', 'waterverbruik_dial'],
width: 2
}
columns[5] = {
blocks : [frames.volumegraph, frames.volumegraphsun, frames.warmtepomp, 'empty', 'zonnepanelen', 'graph_15'],
width: 5
}
columns[6] = {
blocks : ['graph_1', 'graph_95', 'news_NASA'],
width: 5
}
columns[7] = {
blocks : ['clock', 'memory-usage', 'process-usage', 'hdd', 'hdd-boot', 'cpu-usage', 'pi-temp'],
width: 2
}
columns[8] = {
blocks : ['alarmmeldingen', frames.iss],
width: 5
}
columns[9] = {
blocks : [frames.flightradar, frames.sigmund, 'log'],
width: 5
}
var columns_standby = {}
columns_standby[1] = {}
columns_standby[1]['blocks'] = ['weer', 'buien']
columns_standby[1]['width'] = 12;
//Definition of screens
var screens = {}
screens['default'] = {}
screens['default']['maxwidth'] = 3200;
screens['default']['maxheight'] = 1800;
screens['default'][1] = {}
screens['default'][1]['background'] = 'bg10.jpg';
screens['default'][1]['columns'] = [1,2,3]
screens['default'][2] = {}
screens['default'][2]['background'] = 'bg10.jpg';
screens['default'][2]['columns'] = [4,5,6]
screens['default'][3] = {}
screens['default'][3]['background'] = 'bg10.jpg';
screens['default'][3]['columns'] = [7,8,9]