Final tune of the screens. Now DONE !!!
Screenshot_20170428-192019.png
Screenshot_20170428-192023.png
Screenshot_20170428-192029.png
CONFIG.js
Code: Select all
var _LANGUAGE = 'nl_NL';
var _HOST_DOMOTICZ = 'http://192.168.100.3:8081';
var _DOMOTICZ_REFRESH = 5;
/*
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 = '';
var _APIKEY_WUNDERGROUND = 'API KEY';
var _WEATHER_CITY = 'Amsterdam';
var _WEATHER_CITYNAME = '';
var _WEATHER_COUNTRY = 'NL';
var _USE_AUTO_POSITIONING = true;
var _USE_FAVORITES = true;
var _HIDE_SECONDS_IN_CLOCK = false;
var _HIDE_MEDIAPLAYER_WHEN_OFF = false;
var _NEWS_RSSFEED = 'http://www.nu.nl/rss';
var _USE_FAHRENHEIT = false;
var _USE_BEAUFORT = false;
var _STANDBY_AFTER_MINUTES = false;
var _SCROLL_NEWS_AFTER = 10000;
var _LASTUPDATE_FORMAT = 'DD-MM-YY HH:mm';
var _IDXmoonpicture = 1;
var _SCREENSLIDER_EFFECT = 'fade';
//var _APIKEY_MAPS = 'API KEY';
//var _MAPS_LATITUDE = 52.333368;
//var _MAPS_LONGITUDE = 4.870349;
//var _MAPS_ZOOMLEVEL = 15;
var frames = {}
frames.treinen = {refreshiframe:30000,height:700,frameurl:"https://www.rijdendetreinen.nl/vertrektijden/station/amsterdam-zuid?verberg_treinnummers=on&verberg_mat=on?stijl=tas",width:12} // OUDE stijl acter URL: ?stijl=tas plaatsen
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.weeronline.nl/Europa/Nederland/Amsterdam/4058223'}
buttons.radio = {width:12, image: 'img/radio_on.png', title: 'Radio', url: 'http://nederland.fm'}
buttons.nunl = {width:12, icon: 'fa-newspaper-o', title: 'Nu.nl', url: 'http://www.nu.nl'}
buttons.moon = {width:12, isimage:true, refreshimage:60000, image: 'moon'}
var _STREAMPLAYER_TRACKS = [
{"track":1,"name":"Q-music","file":"http://icecast-qmusic.cdp.triple-it.nl/Qmusic_nl_live_96.mp3"},
{"track":2,"name":"538","file":"http://vip-icecast.538.lw.triple-it.nl/RADIO538_MP3"},
{"track":3,"name":"538 Dance Dep","file":"http://vip-icecast.538.lw.triple-it.nl/WEB01_MP3"},
{"track":4,"name":"Slam! Juize","file":"http://stream.radiocorp.nl/web09_mp3"},
{"track":5,"name":"Slam! Boom Room","file":"http://stream.radiocorp.nl/web12_mp3"},
{"track":6,"name":"Slam! NonStop","file":"http://stream.radiocorp.nl/web10_mp3"},
{"track":7,"name":"100%NL","file":"http://stream.100p.nl/100pctnl.mp3"},
];
//
// SWITCH DENENITIES
//
var blocks = {}
blocks[1] = {} // THERMOSTAAT
blocks[1]['width'] = 12;
blocks[2] = {} // BINNEN TEMP EN VOCHTIGHEID
blocks[2]['width'] = 6;
blocks[25] = {} // RAAM
blocks[25]['width'] = 12;
blocks[26] = {} // MUUR
blocks[26]['width'] = 12;
blocks[19] = {} // EETTAFEL
blocks[19]['width'] = 12;
blocks[22] = {} // DRESSOIR
blocks[22]['width'] = 12;
blocks[24] = {} // BUITEN
blocks[24]['width'] = 12;
blocks[73] = {} // SLAAPKAMER
blocks[73]['width'] = 6;
blocks[33] = {} // BADKAMER
blocks[33]['width'] = 6;
blocks[27] = {} // HAL
blocks[27]['width'] = 12;
blocks[177] = {} // Bulb Status
blocks[177]['width'] = 6;
blocks[178] = {} // Bulb Effect
blocks[178]['width'] = 6;
blocks[101] = {} // IPHONE PETER
blocks[101]['title'] = 'iPhone Peter'
blocks[101]['width'] = 6;
blocks[102] = {} // IPHONE KAY
blocks[102]['title'] = 'iPhone Kay';
blocks[102]['width'] = 6;
blocks[127] = {} // EK DEUR
blocks[127]['title'] = 'Eetkamer Deur';
blocks[127]['width'] = 3;
blocks[127]['icon'] = 'fa-sign-out';
blocks[129] = {} // SK DEUR
blocks[129]['title'] = 'Slaapkamer Deur';
blocks[129]['width'] = 3;
blocks[129]['icon'] = 'fa-sign-out';
blocks[222] = {} // MAAN PHASE
blocks[222]['title'] = 'Phase';
blocks[222]['width'] = 6;
blocks[219] = {} // MAAN PERS
blocks[219]['width'] = 12;
blocks[219]['title'] = 'Moon Percentage';
blocks[225] = {} // iPhone %
blocks[225]['width'] = 12;
blocks[225]['title'] = 'iPhone Peter';
//
// SCENES
//
blocks[82] = {} // ALL OFF
blocks[82]['title'] = 'Alles uit';
blocks[75] = {} // EVENING
blocks[75]['title'] = 'Avond';
blocks[76] = {} // TV
blocks[76]['title'] = 'Ziggo';
blocks[77] = {} // MOVIE
blocks[77]['title'] = 'Film';
blocks[78] = {} // GOODNIGHT
blocks[78]['title'] = 'Slapen';
blocks[79] = {} // SEXY
blocks[79]['title'] = 'Romantisch';
blocks[80] = {} // LEAVING
blocks[80]['title'] = 'Weggaan';
blocks[81] = {} // COME HOME
blocks[81]['title'] = 'Thuiskomen';
blocks[106] = {} // GOOD MORNING
blocks[106]['title'] = 'Goedemorgen';
//
// RASPBERRY INFO
//
blocks[17] = {} // RPi TEMPERTURE
blocks[17]['width'] = 12;
blocks[17]['title'] = 'RPi Temp';
blocks[17]['image'] = 'pi3.png';
blocks[14] = {} // RPi MEMORY USAGE
blocks[14]['width'] = 12;
blocks[14]['title'] = 'RPi Mem';
blocks[14]['image'] = 'pi3.png';
blocks[15] = {} // RPi SD USAGE
blocks[15]['width'] = 12;
blocks[15]['title'] = 'RPi SD';
blocks[15]['image'] = 'pi3.png';
blocks[16] = {} // RPI USB USAGE
blocks[16]['width'] = 12;
blocks[16]['title'] = 'RPi USB';
blocks[16]['image'] = 'pi3.png';
//
// LOGITECH BUTTONS
//
blocks[86] = {} // ACTIVITY ALL OFF
blocks[86]['width'] = 12;
blocks[86]['title'] = 'Harmony uit';
blocks[86]['icon'] = 'fa-toggle-on';
blocks[87] = {} // ACTIVITY APPLETV
blocks[87]['width'] = 12;
blocks[87]['title'] = 'Harmony AppleTV';
blocks[87]['icon'] = 'fa-toggle-on';
blocks[88] = {} // ACTIVITY TV
blocks[88]['width'] = 12;
blocks[88]['title'] = 'Harmony Ziggo';
blocks[88]['icon'] = 'fa-toggle-on';
blocks[89] = {} // ACTIVITY AIRPLAY
blocks[89]['width'] = 12;
blocks[89]['title'] = 'Harmony AirPlay';
blocks[89]['icon'] = 'fa-toggle-on';
blocks[90] = {} // ACTIVITY KODI
blocks[90]['width'] = 12;
blocks[90]['title'] = 'Harmony Kodi';
blocks[90]['icon'] = 'fa-toggle-on';
//
// INTERNET SNELHEID
//
blocks[172] = {} // INTERNET PING
blocks[172]['width'] = 12;
blocks[172]['icon'] = 'fa-safari';
blocks[173] = {} // INTENRET DOWNLOAD
blocks[173]['width'] = 12;
blocks[173]['icon'] = 'fa-safari';
blocks[174] = {} // INTERNET UPLAD
blocks[174]['width'] = 12;
blocks[174]['icon'] = 'fa-safari';
//
// NEWS FEED
//
blocks['news_10'] = {} // NU.NL
blocks['news_10']['width'] = 6;
blocks['news_10']['feed'] = 'https://crossorigin.me/http://www.nu.nl/rss';
blocks['news_20'] = {} // TVGIDS
blocks['news_20']['width'] = 6;
blocks['news_20']['feed'] = 'https://crossorigin.me/https://www.tvgids24.nl/nieuws.rss';
blocks['news_30'] = {} // PEREZ
blocks['news_30']['width'] = 6;
blocks['news_30']['feed'] = 'https://crossorigin.me/http://i.perezhilton.com/?feed=rss2';
//
// TITLE BLOKKEN
//
blocks['blocktitle_10'] = {}
blocks['blocktitle_10']['type'] = 'blocktitle';
blocks['blocktitle_10']['title'] = 'Schakelaars';
blocks['blocktitle_20'] = {}
blocks['blocktitle_20']['type'] = 'blocktitle';
blocks['blocktitle_20']['title'] = 'Harmony';
blocks['blocktitle_30'] = {}
blocks['blocktitle_30']['type'] = 'blocktitle';
blocks['blocktitle_30']['title'] = 'Rapberry Pi';
blocks['blocktitle_40'] = {}
blocks['blocktitle_40']['type'] = 'blocktitle';
blocks['blocktitle_40']['title'] = 'Weerverwachting';
blocks['blocktitle_50'] = {}
blocks['blocktitle_50']['type'] = 'blocktitle';
blocks['blocktitle_50']['title'] = 'NEST Thermostaat';
blocks['blocktitle_60'] = {}
blocks['blocktitle_60']['type'] = 'blocktitle';
blocks['blocktitle_60']['title'] = 'Nieuws Feed';
blocks['blocktitle_80'] = {}
blocks['blocktitle_80']['type'] = 'blocktitle';
blocks['blocktitle_80']['title'] = 'Scenes';
blocks['blocktitle_90'] = {}
blocks['blocktitle_90']['type'] = 'blocktitle';
blocks['blocktitle_90']['title'] = 'Speedtest.net';
blocks['blocktitle_100'] = {}
blocks['blocktitle_100']['type'] = 'blocktitle';
blocks['blocktitle_100']['title'] = 'NS Vertrek tijden Amsterdam Zuid';
//
// COLUMNS DEFENITIES
//
var columns = {}
columns[10] = {} // TIJD SUNRISE SUNSET BUIENRADAR NEST
columns[10]['blocks'] = ['clock','sunrise',buttons.buienradar,buttons.calendar,buttons.moon,219];
columns[10]['width'] = 2;
columns[20] = {} // LAMPEN
columns[20]['blocks'] = ['blocktitle_10',25,26,19,22,24,27,177,178,73,33];
columns[20]['width'] = 5;
columns[30] = {} // WEERVERWACHTING
columns[30]['blocks'] = ['blocktitle_40','currentweather_big','weather',101,102,2];
columns[30]['width'] = 6;
columns[40] = {} // RASPBERRY PI
columns[40]['blocks'] = ['blocktitle_30',17,14,15,16];
columns[40]['width'] = 2;
columns[50] = {} // LOGITECH
columns[50]['blocks'] = ['blocktitle_20',86,87,88,90];
columns[50]['width'] = 2;
columns[60] = {} // STREAMPLAYER
columns[60]['blocks'] = ['streamplayer'];
columns[60]['width'] = 4;
columns[70] = {} // NIEUWS FEED
columns[70]['blocks'] = ['blocktitle_60','news_10','news_20'];
columns[70]['width'] = 10;
columns[80] = {} // NEST, SCENES EN DOWNLOAD SNELHEID
columns[80]['blocks'] = ['blocktitle_50',1,2,'blocktitle_80',82,75,76,77,78,79,80,81,106,'blocktitle_90',172,173,174];
columns[80]['width'] = 5;
columns[90] = {} // TREIN MELDINGEN
columns[90]['blocks'] = ['train'];
columns[90]['width'] = 10;
columns[200] = {} // RIJDEN DE TREINEN
columns[200]['blocks'] = ['blocktitle_100',frames.treinen];
columns[200]['width'] = 10;
columns[300] = {} // OV REALTIME
columns[300]['blocks'] = ['blocktitle_100',frames.gvb];
columns[300]['width'] = 10;
var screens = {}
screens[10] = {}
screens[10]['background'] = 'poesje.jpg';
screens[10]['columns'] = [10,30,50,40,60,70];
screens[20] = {} // LAMPEN EN SCENES
screens[20]['background'] = 'poesje.jpg';
screens[20]['columns'] = [10,20,80];
screens[30] = {} // TRAIN INFO
screens[30]['background'] = 'poesje.jpg';
screens[30]['columns'] = [10,200];
custom.css
Code: Select all
/* BLOCKS */
.transbg.col-xs-1,
.transbg.col-xs-2,
.transbg.col-xs-3,
.transbg.col-xs-4,
.transbg.col-xs-5,
.transbg.col-xs-6,
.transbg.col-xs-7,
.transbg.col-xs-8,
.transbg.col-xs-9,
.transbg.col-xs-10,
.transbg.col-xs-11,
.transbg.col-xs-12 {padding-top:15px; padding-bottom:15px; border: 3px solid rgba(0,0,0,0); background: rgba(0,0,0,0.5); background-clip: padding-box; border-radius: 9px; height:100%}
.transbg.col-xs-1.hover:hover,
.transbg.col-xs-2.hover:hover,
.transbg.col-xs-3.hover:hover,
.transbg.col-xs-4.hover:hover,
.transbg.col-xs-5.hover:hover,
.transbg.col-xs-6.hover:hover,
.transbg.col-xs-7.hover:hover,
.transbg.col-xs-8.hover:hover,
.transbg.col-xs-9.hover:hover,
.transbg.col-xs-10.hover:hover,
.transbg.col-xs-11.hover:hover,
.transbg.col-xs-12.hover:hover {padding-top:15px; padding-bottom:15px; border: 3px solid rgba(0,0,0,0); background: rgba(100,100,100,0.8); background-clip: padding-box; border-radius: 9px; cursor:pointer; height:100%}
/* ICONS */
.fa.fa-lightbulb-o.on:before {color:#00FF00;font-size: 25px;}
.fa.fa-lightbulb-o.off:before {color:#ff0000;font-size: 25px;}
.fa.fa-tv.on:before {color:#00FF00;font-size: 25px;}
.fa.fa-tv.off:before {color:#ff6666;font-size: 25px;}
.fa.fa-file-movie-o.on:before {color:#00FF00;font-size: 25px;}
.fa.fa-file-movie-o.off:before {color:#ffff00;font-size: 25px;}
.fa.fa-music.on:before {color:#00FF00;font-size: 25px;}
.fa.fa-music.off:before {color:#0099ff;font-size: 25px;}
.fa.fa-power-off.off.on:before {color:#00FF00;font-size: 25px;}
.fa.fa-power-off.off:before {color:#ff8000;font-size: 25px;}
.fa-toggle-on.on:before {color:#00FF00;font-size: 25px;}
.fa-toggle-on.off:before {color:#ff0000;font-size: 25px;}
.fa-sign-out.on:before {color:#00FF00;font-size: 25px;}
.fa-sign-out.off:before {color:#ff0000;font-size: 25px;}
/* WEATHER */
.wi {color:#fff000;}
/* DOTS BELOW SCREEN SWITCH SCREENS */
.swiper-pagination-bullet {background: #c7c7c7; width: 40px; height: 40px; float:left; position:relative; left:35px;}
/* BLOCKS TITLE */
h1, h2, h3, h4, h5, h6 { font-family: Arial, sans-serif; margin: 0px; margin-left: 15px; font-weight: 400; font-size: 145%; color: #00FF00;}
/* Round Corners
.input-groupBtn li {position:sticky; z-index: 9999; right: 1px; border-radius: 1px;}
*/