Code: Select all
var config = {}
config['domoticz_ip'] = 'http://XXX.XXX.XXX.XXX:XXXX';
config['login_timeout'] = '60';
config['user_name'] = '';
config['pass_word'] = '';
config['app_title'] = 'Dashticz';
config['room_plan'] = '0';
config['domoticz_refresh'] = '5';
config['dashticz_refresh'] = '60';
config['default_news_url'] = 'https://www.bndestem.nl/XXXXXXXXXX/rss.xml';
config['news_scroll_after'] = '12';
config['default_cors_url'] = '';
config['dashticz_php_path'] = './vendor/dashticz/';
config['standby_call_url'] = '';
config['standby_call_url_on_end'] = '';
config['theme'] = 'default';
config['background_image'] = 'img/bg14.jpg';
config['standby_after'] = '0';
config['start_page'] = '1';
config['enable_swiper'] = '2';
config['vertical_scroll'] = '2';
config['auto_swipe_back_to'] = '1';
config['auto_swipe_back_after'] = '0';
config['auto_slide_pages'] = '0';
config['slide_effect'] = 'slide';
config['standard_graph'] = 'day';
config['blink_color'] = '255,0,0,0.5';
config['language'] = 'nl_NL';
config['timeformat'] = 'DD-MM-YY HH:mm';
config['calendarformat'] = 'dd DD.MM HH:mm';
config['calendarlanguage'] = 'nl_NL';
config['calendarurl'] = '';
config['boss_stationclock'] = 'RedBoss';
config['gm_api'] = 'xxxxxxxxxx';
config['gm_zoomlevel'] = '';
config['gm_latitude'] = 'xx.xxxxxx';
config['gm_longitude'] = 'xx.xxxxxx';
config['speak_lang'] = 'nl-NL';
config['wu_api'] = 'XXXXXXXXXX';
config['wu_city'] = 'XXXXXXXXXX';
config['wu_name'] = '';
config['wu_country'] = 'NL';
config['owm_api'] = 'XXXXXXXXXX';
config['owm_city'] = 'XXXXXXXXXX';
config['owm_name'] = 'XXXXXXXXXX';
config['owm_country'] = 'nl';
config['owm_lang'] = 'nl';
config['owm_cnt'] = '4';
config['idx_moonpicture'] = '';
config['longfonds_zipcode'] = 'XXXXXXXXXX';
config['longfonds_housenumber'] = 'XX';
config['switch_horizon'] = '';
config['host_nzbget'] = '';
config['spot_clientid'] = '';
config['sonarr_url'] = '';
config['sonarr_apikey'] = '';
config['sonarr_maxitems'] = '';
config['garbage_company'] = 'mijnafvalwijzer';
config['garbage_icalurl'] = '';
config['google_api_key'] = '';
config['garbage_calendar_id'] = '';
config['garbage_zipcode'] = 'XXXXXX';
config['garbage_street'] = '';
config['garbage_housenumber'] = 'XX';
config['garbage_housenumberadd'] = '';
config['garbage_maxitems'] = '3';
config['garbage_width'] = '12';
config['setpoint_min'] = '6';
config['setpoint_max'] = '30';
config['loginEnabled'] = 0;
config['disable_update_check'] = 1;
config['no_rgb'] = 1;
config['auto_positioning'] = 0;
config['use_favorites'] = 0;
config['disable_googleanalytics'] = 1;
config['last_update'] = 0;
config['hide_topbar'] = 0;
config['security_button_icons'] = 0;
config['edit_mode'] = 0;
config['hide_seconds'] = 1;
config['hide_seconds_stationclock'] = 0;
config['owm_days'] = 1;
config['owm_min'] = 1;
config['use_fahrenheit'] = 0;
config['use_beaufort'] = 0;
config['translate_windspeed'] = 1;
config['static_weathericons'] = 1;
config['hide_mediaplayer'] = 0;
config['garbage_hideicon'] = 0;
config['garbage_icon_use_colors'] = 0;
config['garbage_use_colors'] = 0;
config['garbage_use_names'] = 1;
config['garbage_use_cors_prefix'] = 1;
//Graph line colors and point size
config['lineColors'] = ['#EE0000', '#00EE00', '#0000EE'];
config['pointSize'] = ['0'];
//Garbage
config['garbage'] = {
gft: {kliko: 'green', code: '#375b23', name: 'GFT', icon: 'img/garbage/kliko_green.png'},
rest: {kliko: 'grey', code: '#5e5d5c', name: 'Rest', icon: 'img/garbage/kliko_grey.png'},
papier: {kliko: 'blue', code: '#153477', name: 'Papier', icon: 'img/garbage/kliko_blue.png'},
};
var _STREAMPLAYER_TRACKS = [
{"track":1,"name":"NPO Radio 1","file":"http://icecast.omroep.nl/radio1-bb-mp3"},
{"track":2,"name":"Omroep Brabant","file":"http://streaming.omroepbrabant.nl/mp3hq"},
{"track":3,"name":"Studio Brussel","file":"http://icecast.vrtcdn.be/stubru-high.mp3"},
];
var calendars = {}
calendars.f1 = {
maxitems: 5,
image: '../custom/img/f1.png',
url: 'https://www.f1calendar.com/#!/timezone/Europe-Amsterdam',
icalurl: 'http://ip:port/kalenders/f1-calendar_gp_2019.ics'
}
var buttons = {}
buttons.buienradar = {key: 'buienradar', width:12, isimage:true, refreshimage:60000, btnimage: 'http://api.buienradar.nl/image/1.0/RadarMapNL?w=256&h=256', url:'https://gadgets.buienradar.nl/gadget/zoommap/?lat=XX.XXXXX&lng=X.XXX&overname=2&zoom=13&naam=XXXXXX&size=3&voor=1', framewidth:580, frameheight: 520}
buttons.log = {key:'log', width:12, image: '../custom/img/dz.png', title: 'Domoticz Log', log:true, level: 1}
buttons.tvgids = {key: 'tvgids', width:4, image: '../custom/img/tv.png', title: 'TV Gids', url: 'https://www.tvgids24.nl/gadget'}
buttons.bndestem = {key: 'bndestem', width:4, image: '../custom/img/bndestem.png', title: 'Nieuws', newwindow:true, url: 'https://www.XXXX.nl/XXXXX'}
buttons.p2000 = {key: 'p2000', width:4, image: '../custom/img/siren.png', title: 'P2000', newwindow:true, url: 'https://monitor.p2000alarm.nl'}
buttons.fr24 = {key: 'fr24', width:4, image: '../custom/img/fr24.png', title: 'FR24', newwindow:true, url: 'https://flightradar24.com'}
buttons.books = {key: 'books', width:12, image: '../custom/img/book.png', title: 'Boeken', url: '../clz/book.html'}
buttons.movies = {key: 'movies', width:12, image: '../custom/img/film.png', title: 'Films', url: '../clz/movie.html'}
buttons.music = {key: 'music', width:12, image: '../custom/img/music.png', title: 'Muziek', url: '../clz/music.html'}
buttons.ipcam = {key: 'ipcam', width:4, image: '../custom/img/camera.png', title: 'Camera', url: '../ipcam'}
var frames = {}
frames.volumioplayer = { width:12, height:720, refreshiframe: 1000000, frameurl: "http://XXX.XXX.XXX.XXX/playback"}
var publictransport = {}
publictransport.ovinfobus= { key: 'ovinfobus', show_via: true, station: 'XXXXXXXXXX', show_lastupdate:false, provider: '9292-bus', icon: 'fas fa-bus-alt', results: 7 };
publictransport.ovinfotrains= { key: 'ovinfotrains', station: 'XXXXXXXXXX', show_lastupdate:false, provider: '9292-train', icon: 'fas fa-train', results: 7 };
var trafficinfo = {}
trafficinfo.anwba58 = { key:'anwba58', provider: 'anwb', road:'A58', trafficJams: false, roadWorks: true, radars: false, show_lastupdate:false, icon: 'fas fa-car', width:12, results: 10 };
var maps = {}
maps.thuis = { height: 300, link:'http://www.ovzoeker.nl', width:12, latitude: 51.432103, longitude: 4.314068, zoom:10 }
var tvguide = {}
tvguide.npo = { key:'tvnpo', image: '../custom/img/tv.png', width:12, channels: [1,2,3], maxitems: 5 }
tvguide.other = { key:'tvother', image: '../custom/img/tv.png', width:12, channels: [29,18], maxitems: 4 }
var blocks = {}
blocks[6] = { //Thuis
textOff: 'AFWEZIG',
textOn: 'AANWEZIG',
icon: 'fas fa-home'
}
blocks[7] = { //Slapen
textOff: 'WAKKER',
textOn: 'ZZZ',
image: '../custom/img/bed.png'
/* imageOff: '../custom/img/awake.png',
imageOn: '../custom/img/sleep.png' */
}
blocks[124] = { //Lamp Eettafel
hide_data: true, width: 6 }
blocks[126] = { //Lamp Slaapkamer
hide_data: true, width: 6 }
blocks[147] = { //Homey's Mike
title: 'Mike',
textOff: 'DICHT',
textOn: 'OPEN',
imageOff: '../custom/img/mic_off.png',
imageOn: '../custom/img/mic_on.png',
confirmation: 1
//flash: 5000
}
blocks[149] = {} //Poetsen
blocks[236] = { //Lamp Salontafel
hide_data: true, width: 6 }
blocks[249] = {} //Homey (alive)
blocks[252] = { //Lamp Badkamer
hide_data: true, width: 6 }
blocks[258] = {} //Kodi
blocks['274_1'] = {} //Energieverbruik (P1 USB)
blocks['274_1']['title'] = 'Nu';
blocks['274_1']['switch'] = true;
blocks['274_2'] = {} //Energie vandaag (P1 USB)
blocks['274_2']['title'] = 'Stroom';
blocks['274_2']['switch'] = true;
blocks[276] = {} //Internet (alive)
blocks['320_1'] = { //Gas vandaag (P1 USB)
title: 'Gas',
switch: true,
icon: 'fas fa-burn'
//image: '../custom/img/gas.png'
}
blocks[330] = {} //Afvalwijzer (text)
blocks[344] = {} //Open Weather Map (hidden)
blocks[345] = { //Buienradar (text)
title: 'Buienradar',
switch: true,
width: 12,
image: '../custom/img/umbrella.png'
}
blocks[346] = {} //RegenData (rain sensor)
blocks[347] = {} //Paraplu (switch)
blocks[350] = { //Notebook PC
title: 'Notebook',
textOff: 'OFFLINE',
textOn: 'ONLINE',
image: '../custom/img/laptop.png'
//icon: 'fas fa-laptop'
}
blocks[351] = { //Desktop PC
title: 'Desktop',
textOff: 'OFFLINE',
textOn: 'ONLINE',
image: '../custom/img/desktop.png'
//icon: 'fas fa-desktop'
}
blocks[352] = { //Mede8er
/* textOff: 'OFFLINE',
textOn: 'ONLINE', */
//imageOff: '../custom/img/toggle_off.png',
//imageOn: '../custom/img/toggle_on.png'
image: '../custom/img/clapper_board.png'
}
blocks[354] = {} //Buitentemperatuur (OWM)
blocks[354]['switch'] = true;
blocks[391] = { //Lamp Washok
hide_data: true, width: 6 }
blocks[392] = {} //Flightradar24 (alive)
blocks[400] = { //Schemerlamp
hide_data: true, width: 6 }
blocks[401] = {} //Dummie
blocks[413] = {} //Kodi System Alive Check
blocks[417] = { //Lamp Gang
hide_data: true, width: 6 }
blocks[428] = {} //Beweging Keuken
blocks[431] = { //Lamp Keuken
hide_data: true, width: 6 }
blocks[435] = {} //Camera
blocks[435]['image'] = '../custom/img/camera.png';
blocks[437] = {} //Binnentemperatuur (Toon)
blocks[437]['switch'] = true;
blocks[437]['title'] = 'Binnen';
blocks[438] = { //Toons (Selector Switch for Toon Program State)
hide_title: true,
width: 8,
image: '../custom/img/toon.png'
}
blocks['441_2'] = {} //Thermostaat (Toon Setpoint)
//blocks[441]['hide_title'] = true; // NOT AN OPTION
blocks['441_2']['image'] = '../custom/img/toon.png';
blocks[442] = {} //TV
blocks[442]['image'] = '../custom/img/tv.png';
blocks[443] = {} //Tuner
blocks[444] = {} //Volumio
blocks[444]['image'] = 'volumio.png';
//blocks[444]['image'] = '../custom/img/jukebox.png';
//blocks[443]['confirmation'] = 1;
blocks[326] = { protected: true, width: 4 } //Placeholder
blocks['v3'] = { //Uptime
title: 'Uptime',
image: '../custom/img/uptime.png',
switch: true,
width: 12
}
blocks['longfonds'] = {
width: 12,
switch: true,
icon: '',
image: '../custom/img/lungs.png',
}
blocks['news'] = {
image:'../custom/img/bndestem.png'
}
blocks['traffic'] = {
//image:'../custom/img/car.png'
icon: 'fas fa-car'
}
blocks['train'] = {
//image:'../custom/img/train.png'
icon: 'fas fa-train'
}
blocks['streamplayer'] = {
image: '../custom/img/radio.png'
}
blocks['news_nualg'] = {
feed: 'https://www.nu.nl/rss/algemeen',
maxheight: 400,
title: 'Nu.nl' //optional
//icon: 'fas fa-icon'
}
//defining number of columns, their contents en widths
//width can be a number 1 to 12, but total widths of all columns should always be 12
var columns = {}
//--- Topbar ---
columns['bar'] = {}
columns['bar']['blocks'] = ['logo','miniclock','settings']
//--- Screen 1 ---
columns[1] = {}
columns[1]['blocks'] = [6,7,147,'441_2',438,236,400,124,431,126,252,417,391,442,352,435,350,351]
columns[1]['width'] = 5;
columns[2] = {}
columns[2]['blocks'] = ['weather_owm',437,354,'320_1','274_1','274_2',444,258,'streamplayer',buttons.bndestem,buttons.p2000,buttons.fr24,buttons.ipcam,buttons.tvgids]
columns[2]['width'] = 5;
columns[3] = {}
columns[3]['blocks'] = ['sunrise',buttons.buienradar,345,'longfonds','garbage','v3']
columns[3]['width'] = 2;
//--- Screen 2 ---
columns[4] = {}
columns[4]['blocks'] = ['news',calendars.f1,tvguide.npo,tvguide.other]
columns[4]['width'] = 5;
columns[5] = {}
columns[5]['blocks'] = ['traffic',trafficinfo.anwba58,publictransport.ovinfobus,'train',publictransport.ovinfotrains]
columns[5]['width'] = 5;
columns[6] = {}
columns[6]['blocks'] = ['stationclock',buttons.homepage,buttons.books,buttons.movies,buttons.music]
columns[6]['width'] = 2;
columns[7] = {}
columns[7]['blocks'] = [frames.volumioplayer]
columns[7]['width'] = 6;
columns[9] = {}
columns[9]['blocks'] = [frames.homepage]
columns[9]['width'] = 6;
//--- Standby Screen ---
var columns_standby = {}
columns_standby[1] = {}
columns_standby[1]['blocks'] = ['clock']
columns_standby[1]['width'] = 12;
//--- Multiple screens ---
var screens = {}
screens[1] = {}
screens[1]['background'] = 'bg14.jpg';
screens[1]['columns'] = [1,2,3]
screens[2] = {}
screens[2]['background'] = 'bg14.jpg';
screens[2]['columns'] = [4,5,6]
screens[3] = {}
screens[3]['background'] = 'bg14.jpg';
screens[3]['columns'] = [7]