Code: Select all
var _LANGUAGE = 'nl_NL'; //or: en_US, fr_FR, hu_HU
var _HOST_DOMOTICZ = 'http://IP:PORT';
var _DOMOTICZ_REFRESH = 5; //in seconds
var _DASHTICZ_REFRESH = 30; //in minutes
var _THEME = 'default'; // default = dashticz default theme
/*
IF YOU HAVE A MEDIABOX FROM ZIGGO (HORIZON), COPY SWITCH_HORIZON.PHP ON A WEBSERVER INSIDE YOUR NETWORK AND CHANGE THE IP.
ENTER THE PATH TO THIS FILE BELOW.
*/
var _HOST_ZIGGO_HORIZON = ''; //e.g. http://192.168.1.3/domoticz/switch_horizon.php';
var _APIKEY_WUNDERGROUND = 'XXXXXXXX';
var _WEATHER_CITY = 'Hoorn';
var _WEATHER_CITYNAME = ''; //show a different city name, leave empty if same as _WEATHER_CITY
var _WEATHER_COUNTRY = 'NL';
var _USE_AUTO_POSITIONING = false; //don't want to configure positions, use auto positioning
var _USE_FAVORITES = false; //only used when using auto positioning
var _HIDE_SECONDS_IN_CLOCK = false; //do not show the seconds in the clock
var _HIDE_MEDIAPLAYER_WHEN_OFF = false; //when you have a mediaplayer connected, hide it if nothing is playing
var _NEWS_RSSFEED = 'http://www.nu.nl/rss/algemeen';
var _USE_FAHRENHEIT = false;
var _USE_BEAUFORT = true; //Bft instead of m/s
var _TRANSLATE_SPEED = false; //windspeed, north northwest instead of NNW
var _STANDBY_AFTER_MINUTES = false; //enter amount of minutes like: 5 (5 minutes)
var _SCROLL_NEWS_AFTER = 7000; //milliseconds, so 7000 is 7 seconds
var _SHOW_LASTUPDATE = true;
var _LASTUPDATE_FORMAT = 'DD-MM-YY HH:mm';
var _SCREENSLIDER_EFFECT = 'slide'; //'slide' or 'fade' or 'cube' or 'coverflow' or 'flip'
var _USE_STATIC_WEATHERICONS = true; // Static or 'moving' weather icons
var _APIKEY_MAPS = '';
var _MAPS_LATITUDE = '';
var _MAPS_LONGITUDE = '';
var _AUTO_SWIPEBACK_TO = 1; //when no activity, swipe back to main screen after x seconds
var _AUTO_SWIPEBACK_TIME = 10; //seconds
var _SLIDE_PAGES = false; //Loop all pages and change page every x (min. 5) seconds, set _AUTO_SWIPEBACK_TIME = 0
var _IDXmoonpicture = 1; //index of the uservariabele MoonPicture
var buttons = {}
buttons.buienradar = {width:12, isimage:true, image: 'http://api.buienradar.nl/image/1.0/RadarMapNL?w=285&h=256', url: 'http://www.weeronline.nl/Europa/Nederland/Hoorn/4058302'}
//buttons.radio = {width:12, image: 'img/radio_on.png', title: 'Radio', url: 'http://nederland.fm'}
buttons.nunl = {width:4, icon: 'fa-newspaper-o', title: 'Nu.nl', url: 'http://www.nu.nl'}
//buttons.calendar = {width:4, icon: 'fa-calendar', title: 'Kalender', url: 'https://calendar.google.com/calendar'}
//buttons.webcam = {width:12, isimage:true, refresh:2000, image: 'http://ip_url_to_webcam', url: 'http://ip_url_to_webcam'}
//buttons.log = {key:'log', width:12, icon:'fa-microchip', title: 'Domoticz Log', log:true, level: 2}
buttons.moon= {width:12, isimage:true, refreshimage:60000, image: 'moon'}
//Begin blokken
var blocks = {}
//Blok voordeur
blocks[40] = {}
blocks[40]['width'] = 4; //1 to 12, remove this line if you want to use the default (4)
blocks[40]['title'] = 'Voordeur' //if you want change the name of switch different then domoticz
//blocks[40]['icon'] = 'fa-eye'; //if you want an other icon instead of the default, choose from: http://fontawesome.io/cheatsheet/
//blocks[40]['image'] = 'door_closed.png'; //if you want to show an image instead if icon, place image in img/ folder
//blocks[40]['switch'] = true; //if you want to switch the title and data
//blocks[40]['hide_data'] = true; //if you want to hide the data of this block
blocks[40]['show_lastupdate'] = true; //if you want to show the last update specific for this block
//blocks[40]['playsound'] = 'sounds/ping.mp3'; //play a sound when a device changes
blocks[40]['protected'] = true; //protect switching manually in Dashticz
//Blok achterdeur
blocks[25] = {}
blocks[25]['width'] = 4; //1 to 12, remove this line if you want to use the default (4)
blocks[25]['title'] = 'Achterdeur' //if you want change the name of switch different then domoticz
blocks[25]['show_lastupdate'] = true; //if you want to show the last update specific for this block
blocks[25]['protected'] = true; //protect switching manually in Dashticz
//Blok schuifpui
blocks[30] = {}
blocks[30]['width'] = 4; //1 to 12, remove this line if you want to use the default (4)
blocks[30]['title'] = 'Schuifpui' //if you want change the name of switch different then domoticz
blocks[30]['show_lastupdate'] = true; //if you want to show the last update specific for this block
blocks[30]['protected'] = true; //protect switching manually in Dashticz
//Blok kamer 1 raam
blocks[71] = {}
blocks[71]['width'] = 4; //1 to 12, remove this line if you want to use the default (4)
blocks[71]['title'] = 'Kamer 1' //if you want change the name of switch different then domoticz
//blocks[71]['image'] = 'window_closed.png'; //if you want to show an image instead if icon, place image in img/ folder
blocks[71]['show_lastupdate'] = true; //if you want to show the last update specific for this block
blocks[71]['protected'] = true; //protect switching manually in Dashticz
//Blok kamer 2 raam
blocks[74] = {}
blocks[74]['width'] = 4; //1 to 12, remove this line if you want to use the default (4)
blocks[74]['title'] = 'Kamer 2' //if you want change the name of switch different then domoticz
blocks[74]['show_lastupdate'] = true; //if you want to show the last update specific for this block
blocks[74]['protected'] = true; //protect switching manually in Dashticz
//Blok kamer 3 raam
blocks[77] = {}
blocks[77]['width'] = 4; //1 to 12, remove this line if you want to use the default (4)
blocks[77]['title'] = 'Kamer 3' //if you want change the name of switch different then domoticz
blocks[77]['show_lastupdate'] = true; //if you want to show the last update specific for this block
blocks[77]['protected'] = true; //protect switching manually in Dashticz
//Blok temperatuur beneden (rookmelder)
blocks[54] = {}
blocks[54]['width'] = 6; //1 to 12, remove this line if you want to use the default (4)
blocks[54]['title'] = 'Temperatuur beneden' //if you want change the name of switch different then domoticz
blocks[54]['show_lastupdate'] = false; //if you want to show the last update specific for this block
blocks[54]['protected'] = true; //protect switching manually in Dashticz
//Blok temperatuur boven (rookmelder)
blocks[61] = {}
blocks[61]['width'] = 6; //1 to 12, remove this line if you want to use the default (4)
blocks[61]['title'] = 'Temperatuur boven' //if you want change the name of switch different then domoticz
blocks[61]['show_lastupdate'] = false; //if you want to show the last update specific for this block
blocks[61]['protected'] = true; //protect switching manually in Dashticz
//Blok temperatuur buiten
blocks[32] = {}
blocks[32]['width'] = 4; //1 to 12, remove this line if you want to use the default (4)
blocks[32]['title'] = 'Weer buiten' //if you want change the name of switch different then domoticz
blocks[32]['show_lastupdate'] = false; //if you want to show the last update specific for this block
blocks[32]['protected'] = true; //protect switching manually in Dashticz
//Blok aquarium schakelaar
blocks[62] = {}
blocks[62]['width'] = 4; //1 to 12, remove this line if you want to use the default (4)
blocks[62]['title'] = 'Aquarium' //if you want change the name of switch different then domoticz
blocks[62]['show_lastupdate'] = true; //if you want to show the last update specific for this block
//blocks['s1'] = {} //scene or group
//blocks[204] = {} //dimmer
//blocks[204]['width'] = 12;
//blocks[204]['title'] = 'Living room' //if you want change the name of switch different then domoticz
blocks['blocktitle_1'] = {}
blocks['blocktitle_1']['type'] = 'blocktitle';
blocks['blocktitle_1']['title'] = 'Sensors';
blocks['blocktitle_6'] = {}
blocks['blocktitle_6']['type'] = 'blocktitle';
blocks['blocktitle_6']['title'] = 'Schakelaars';
blocks['blocktitle_2'] = {}
blocks['blocktitle_2']['type'] = 'blocktitle';
blocks['blocktitle_2']['title'] = 'Temperatuur';
blocks['blocktitle_3'] = {}
blocks['blocktitle_3']['type'] = 'blocktitle';
blocks['blocktitle_3']['title'] = 'Afval ophaaldagen';
blocks['blocktitle_4'] = {}
blocks['blocktitle_4']['type'] = 'blocktitle';
blocks['blocktitle_4']['title'] = 'Weersverwachting';
blocks['blocktitle_5'] = {}
blocks['blocktitle_5']['type'] = 'blocktitle';
blocks['blocktitle_5']['title'] = 'Verkeer';
//blocks['news_2'] = {}
//blocks['news_2']['feed'] = 'http://feeds.feedburner.com/tweakers/nieuws';
//Hiermee worden de afvaldagen opgehaald van HVC
var trashcan = {}
trashcan.hvc = { maxitems: 10, trashapp: 'hvc', width:12, zipcode:'XXXXXX', housenumber:'XX' }
var columns = {}
columns[1] = {}
columns[1]['blocks'] = ['blocktitle_1',40,25,30,71,74,77,'blocktitle_6',62,'blocktitle_2',54,61,32,'blocktitle_3',trashcan.hvc] //remark: idx 144 produces 2 blocks, so you can use: '144_1' and '144_2' (or just 144 if you want one)
columns[1]['width'] = 5;
columns[2] = {}
columns[2]['blocks'] = ['blocktitle_4','currentweather_big','weather','blocktitle_5','trafficmap','traffic']
columns[2]['width'] = 5;
columns[3] = {}
columns[3]['blocks'] = ['clock','sunrise',buttons.buienradar,buttons.moon]
columns[3]['width'] = 2;
var screens = {}
screens[1] = {}
screens[1]['background'] = 'bg2.jpg';
screens[1]['columns'] = [1,2,3]
//screens[2] = {}
//screens[2]['background'] = 'bg2.jpg';
//screens[2]['columns'] = [1,2,3]