Code: Select all
var config = {}
config['domoticz_ip'] = 'http://192.168.0.5:8080';
config['user_name'] = 'xxx';
config['pass_word'] = 'xxx';
config['app_title'] = 'Dashticz';
config['room_plan'] = '0';
config['domoticz_refresh'] = '5';
config['dashticz_refresh'] = '20';
config['default_news_url'] = 'http://www.nu.nl/rss/algemeen';
config['news_scroll_after'] = '7';
config['theme'] = 'default';
config['background_image'] = 'img/bg12.jpg';
config['standby_after'] = '0';
config['auto_swipe_back_to'] = 1;
config['auto_swipe_back_after'] = '10';
config['auto_slide_pages'] = '';
config['slide_effect'] = 'slide';
config['standard_graph'] = 'hours';
config['language'] = 'en_US';
config['timeformat'] = 'DD-MM-YY HH:mm';
config['calendarformat'] = 'dd DD.MM HH:mm';
config['calendarlanguage'] = 'en_US';
config['calendarurl'] = '';
config['boss_stationclock'] = 'RedBoss';
config['gm_api'] = '';
config['gm_zoomlevel'] = '';
config['gm_latitude'] = '';
config['gm_longitude'] = '';
config['speak_lang'] = 'en-US';
config['wu_api'] = '';
config['wu_city'] = 'Amsterdam';
config['wu_name'] = '';
config['wu_country'] = 'NL';
config['idx_moonpicture'] = '';
config['switch_horizon'] = '';
config['host_nzbget'] = '';
config['spot_clientid'] = 'xxx';
config['sonarr_url'] = '';
config['sonarr_apikey'] = '';
config['sonarr_maxitems'] = '';
config['garbage_company'] = 'hvc';
config['garbage_icalurl'] = '';
config['google_api_key'] = '';
config['garbage_calendar_id'] = '';
config['garbage_zipcode'] = 'xxx';
config['garbage_street'] = 'xxx';
config['garbage_housenumber'] = 'xxx';
config['garbage_housenumberadd'] = '';
config['garbage_maxitems'] = '2';
config['garbage_width'] = '12';
config['loginEnabled'] = 0;
config['no_rgb'] = '0';
config['auto_positioning'] = 0;
config['use_favorites'] = 1;
config['disable_googleanalytics'] = '1';
config['last_update'] = 0;
config['hide_topbar'] = '0';
config['edit_mode'] = '0';
config['hide_seconds'] = '0';
config['hide_seconds_stationclock'] = '0';
config['use_fahrenheit'] = '0';
config['use_beaufort'] = '0';
config['translate_windspeed'] = 1;
config['static_weathericons'] = '0';
config['hide_mediaplayer'] = '0';
config['garbage_hideicon'] = '0';
config['garbage_icon_use_colors'] = 1;
config['garbage_use_colors'] = 1;
config['garbage_use_names'] = 1;
config['garbage_use_cors_prefix'] = 1;
// Garbage Extra
config['garbage'] = {
gft: {kliko: 'green', code: '#FFFFFF', name: 'Groene bak', icon: 'img/garbage/kliko_green.png'},
pmd: {kliko: 'orange', code: '#FFFFFF', name: 'Plastic', icon: 'img/garbage/kliko_orange.png'},
rest: {kliko: 'grey', code: '#FFFFFF', name: 'Grijze bak', icon: 'img/garbage/kliko_grey.png'},
papier: {kliko: 'blue', code: '#FFFFFF', name: 'Blauwe bak', icon: 'img/garbage/kliko_blue.png'},
kca: {kliko: 'red', code: '#FFFFFF', name: 'Chemisch afval', icon: 'img/garbage/kliko_red.png'},
brown: {kliko: 'brown', code: '#FFFFFF', name: 'Bruin', icon: 'img/garbage/kliko_brown.png'},
black: {kliko: 'black', code: '#FFFFFF', name: 'Zwart', icon: 'img/garbage/kliko_black.png'},
milieu: {kliko: 'yellow', code: '#FFFFFF', name: 'Geel', icon: 'img/garbage/kliko_yellow.png'},
kerstboom: {kliko: 'green', code: '#FFFFFF', name: 'Kerstboom', icon: 'img/garbage/tree.png'},
};
// Online Radio
var _STREAMPLAYER_TRACKS = [
{"track":1,"name":"Slam! Live","file":"https://stream.slam.nl/slam_mp3"},
{"track":2,"name":"Slam! NonStop","file":"http://stream.radiocorp.nl/web10_mp3"},
{"track":3,"name":"Slam! Mix Marathon","file":"https://stream.slam.nl/web13_mp3"},
{"track":3,"name":"Sublime FM","file":"http://stream.sublimefm.nl/SublimeFM_mp3"},
{"track":5,"name":"538 Hitzone","file":"http://vip-icecast.538.lw.triple-it.nl/WEB11_MP3"},
{"track":6,"name":"Q-music","file":"http://icecast-qmusic.cdp.triple-it.nl/Qmusic_nl_live_96.mp3"},
];
///////////////////////
// Blocks - Pagina 1 //
///////////////////////
var blocks = {}
// Nest Thermostaat
blocks['blocktitle_100'] = {}
blocks['blocktitle_100']['type'] = 'blocktitle';
blocks['blocktitle_100']['width'] = 12;
blocks['blocktitle_100']['title'] = 'Nest Thermostaat';
// Kliko
blocks['blocktitle_101'] = {}
blocks['blocktitle_101']['type'] = 'blocktitle';
blocks['blocktitle_101']['width'] = 12;
blocks['blocktitle_101']['title'] = 'Afvalkalender';
// Spotify
blocks['blocktitle_102'] = {}
blocks['blocktitle_102']['type'] = 'blocktitle';
blocks['blocktitle_102']['width'] = 12;
blocks['blocktitle_102']['title'] = 'Spotify';
// Nest Thermostaat
blocks['blocktitle_103'] = {}
blocks['blocktitle_103']['type'] = 'blocktitle';
blocks['blocktitle_103']['width'] = 12;
blocks['blocktitle_103']['title'] = 'Online Radio';
blocks[17] = {}
blocks[18] = {}
blocks[19] = {}
blocks[19] = {}
blocks[20] = {}
blocks[1235] = {}
// Deuren
blocks['blocktitle_105'] = {}
blocks['blocktitle_105']['type'] = 'blocktitle';
blocks['blocktitle_105']['width'] = 12;
blocks['blocktitle_105']['title'] = 'Deuren';
// Deuren - Voordeur
blocks[21] = {}
// Deuren - Achterdeur
blocks[1] = {}
///////////////////////
// Blocks - Pagina 2 //
///////////////////////
// Stroom - Grafiek
blocks['blocktitle_1'] = {}
blocks['blocktitle_1']['type'] = 'blocktitle';
blocks['blocktitle_1']['width'] = 12;
blocks['blocktitle_1']['title'] = 'Grafiek - Stroom';
// Gas - Grafiek
blocks['blocktitle_2'] = {}
blocks['blocktitle_2']['type'] = 'blocktitle';
blocks['blocktitle_2']['width'] = 12;
blocks['blocktitle_2']['title'] = 'Grafiek - Gas';
// Overig
blocks['blocktitle_3'] = {}
blocks['blocktitle_3']['type'] = 'blocktitle';
blocks['blocktitle_3']['width'] = 12;
blocks['blocktitle_3']['title'] = 'Stroom';
// Overig
blocks['blocktitle_4'] = {}
blocks['blocktitle_4']['type'] = 'blocktitle';
blocks['blocktitle_4']['width'] = 12;
blocks['blocktitle_4']['title'] = 'Gas';
blocks[1233] = {}
blocks[1233]['width'] = 4;
blocks[1234] = {}
blocks[1234]['width'] = 4;
////////////////////////
// Columns - Pagina 1 //
////////////////////////
var columns = {}
// Nest Thermostaat + Deuren
columns[100] = {}
columns[100]['width'] = 6;
columns[100]['blocks'] = ['blocktitle_100',17,18,19,20,1235,'blocktitle_105',21,1];
// Garbage
columns[101] = {}
columns[101]['width'] = 3;
columns[101]['blocks'] = ['blocktitle_101','garbage'];
// Muziek
columns[102] = {}
columns[102]['width'] = 3;
columns[102]['blocks'] = ['blocktitle_103','buttons.nunl','buttons.buienradar','streamplayer'];
////////////////////////
// Columns - Pagina 2 //
////////////////////////
// Stroom Verbruik
columns[200] = {}
columns[200]['width'] = 3;
columns[200]['blocks'] = ['blocktitle_1','graph_1233'];
// Stroom
columns[201] = {}
columns[201]['width'] = 6;
columns[201]['blocks'] = ['blocktitle_3',1233,'blocktitle_4',1234];
// Gas Verbruik
columns[202] = {}
columns[202]['width'] = 3;
columns[202]['blocks'] = ['blocktitle_2','graph_1234'];
/////////////////////////
// Buttons //
/////////////////////////
var buttons = {}
buttons.buienradar = {width:12, isimage:true, refreshimage:60000, image: 'http://api.buienradar.nl/image/1.0/RadarMapNL?w=285&h=256', url: 'http://www.weer.nl/verwachting/nederland/son/189656/'};
buttons.nunl = {width:12, icon: 'fa-newspaper-o', title: 'Nu.nl', url: 'http://www.nu.nl'}
/////////////////////////
// Screens //
/////////////////////////
var screens = {}
screens[1] = {}
screens[1]['columns'] = [101,100,102];
screens[2] = {}
screens[2]['columns'] = [200,201,202];