Does faulty custom.css generate "check var _HOST_DOMOTICZ " error that comes up time to time ?
Because im not finding any error in CONFIG.js atm ..
Im not sure is my custom.js faulty, i just copied some corner rounding code to it and it works, but might have errors in it. Can someone check it below ?
Code: Select all
/*
CUSTOM CSS FILE
*/
/* Background 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: 7px solid rgba(255,255,255,0);
background: rgba(0,0,0,0.2);
background-clip: padding-box;
border-radius: 25px; /* Round corners */
}
.fa.fa-lightbulb-o.on {
color:#F1C300;
}
.fa.fa-lightbulb-o.off {
color:#fff;
Code: Select all
var _LANGUAGE = 'en_US'; //or: en_US, fr_FR, hu_HU
var _HOST_DOMOTICZ = 'http://192.168.xxx.xxx:8080';
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 = '';
var _WEATHER_CITY = '';
var _WEATHER_CITYNAME = ''; //show a different city name, leave empty if same as _WEATHER_CITY
var _WEATHER_COUNTRY = 'FI';
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 = true; //when you have a mediaplayer connected, hide it if nothing is playing
var _NEWS_RSSFEED = 'http://feeds.feedburner.com/ampparit-kaikki-rss';
var _USE_FAHRENHEIT = false;
var _USE_BEAUFORT = false; //Bft instead of m/s
var _TRANSLATE_SPEED = false; //windspeed, north northwest instead of NNW
var _STANDBY_AFTER_MINUTES = 5; //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 _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
//predefined colors, when you have RGB-lamps
var _SAVED_COLORS = ['black', 'white', 'blanchedalmond','rgb(255, 128, 0);', 'hsv 100 70 50', 'lightyellow'];
// Online Radio Stream Plugin, Note: you must enable plugin in column section 'streamplayer', see columns[3]['blocks'] example below.
var _STREAMPLAYER_TRACKS = [
{"track":1,"name":"Kiss FM","file":"http://stream2.bauermedia.fi/kiss.mp3"},
{"track":2,"name":"Bassoradio","file":"http://stream.basso.fi:8000/stream"},
{"track":3,"name":"Loop","file":"http://icelive0.80692-icelive0.cdn.qbrick.com/10561/80692_Loop.mp3"},
{"track":4,"name":"Radio SuomiPop","file":"http://icelive0.80692-icelive0.cdn.qbrick.com/10566/80692_RadioSuomipop.mp3"},
{"track":5,"name":"Radio NRJ","file":"http://cdn.nrjaudio.fm/adwz1/fi/35001/mp3_128.mp3"},
{"track":6,"name":"Radio Rock","file":"http://icelive0.80692-icelive0.cdn.qbrick.com/10565/80692_RadioRock.mp3"},
];
// iCalendar Plugin, supports all .ics calendar types like Google Calendar, Apple Calendar
//var _ICALENDAR_URL = 'https://testurl.com/ical.ics'; //supports .ics type calendars (Google Calendar, Apple Calendar etc.)
//var _ICALENDAR_DATEFORMAT = 'friendly'; //'friendly', 'MM.DD.YYYY HH:mm', 'DD.MM.YYYY HH:mm', 'YYYY.MM.DD HH:mm'
//var _ICALENDAR_LOCALE = 'en'; //en,hu, etc.
var calendars = {}
calendars.hobby = { url: 'https://some_url/api/v2/public/calendar-share/fi/userfile/all.ics', icalurl: 'https://some_url/api/v2/public/calendar-share/fi/userfile/all.ics' }
//Buttons or images to open webpages in an iframe, like a news website or weather forecast
var buttons = {}
buttons.radio = {width:12, image: 'img/radio_on.png', title: 'Radio', url: 'http://livetaajuus.fi'}
buttons.nunl = {width:12, icon: 'fa-newspaper-o', title: 'Nu.nl', url: 'http://feeds.feedburner.com/ampparit-kaikki-rss'}
buttons.moon = {width:12, isimage:true, refreshimage:60000, image: 'moon'}
//CUSTOM POSITIONING:
//defining wich blocks to show, de numbers represents the IDX of the device in Domoticz
//only define if you want to use a custom width instead of the default
var blocks = {}
blocks[163] = {}
blocks[163]['width'] = 4; //1 to 12, remove this line if you want to use the default (4)
blocks[163]['title'] = 'BMW' //if you want change the name of switch different then domoticz
blocks[163]['image'] = 'fa_bmw.png'; //if you want to show an image instead if icon, place image in img/ folder
blocks[184] = {}
blocks[184]['width'] = 4; //1 to 12, remove this line if you want to use the default (4)
blocks[184]['title'] = 'KiA' //if you want change the name of switch different then domoticz
blocks[184]['image'] = 'kia-128.png'; //if you want to show an image instead if icon, place image in img/ folder
blocks[36] = {}
blocks[36]['width'] = 4; //1 to 12, remove this line if you want to use the default (4)
blocks[36]['title'] = 'Ulkopistoke' //if you want change the name of switch different then domoticz
blocks[36]['icon'] = 'fa-pause-circle-o'; //if you want an other icon instead of the default, choose from: http://fontawesome.io/cheatsheet/
//blocks[36]['image'] = 'wall-socket.png'; //if you want to show an image instead if icon, place image in img/ folder
//blocks[28] = {}
//blocks[28]['width'] = 4; //1 to 12, remove this line if you want to use the default (4)
//blocks[28]['title'] = 'Patio' //if you want change the name of switch different then domoticz
//blocks[28]['icon'] = 'fa-film'; //if you want an other icon instead of the default, choose from: http://fontawesome.io/cheatsheet/
var columns = {}
// First Column
columns[10] = {}
columns[10]['blocks'] = ['clock',calendars.hobby,119,120,121,122,123,2,144,1]
columns[10]['width'] = 5;
// Second Column
columns[20] = {}
columns[20]['blocks'] = ['currentweather_big','weather',149,163,184,93,99,27,98,33,28,105,36,162]
columns[20]['width'] = 5;
// Third Column
columns[30] = {}
columns[30]['blocks'] = ['sunrise',buttons.moon,'streamplayer',buttons.radio]
columns[30]['width'] = 2;
var columns_standby = {}
columns_standby[1] = {}
columns_standby[1]['blocks'] = ['clock','weather']
columns_standby[1]['width'] = 12;
//if you want to use multiple screens, use the code below:
var screens = {}
screens[1] = {}
screens[1]['background'] = 'bg_1.jpg';
//screens[1]['background_morning'] = 'bg_morning.jpg';
//screens[1]['background_noon'] = 'bg_noon.jpg';
//screens[1]['background_afternoon'] = 'bg_afternoon.jpg';
//screens[1]['background_night'] = 'bg_night.jpg';
screens[1]['columns'] = [10,20,30]
//screens[2] = {}
//screens[2]['background'] = 'bg3.jpg';
//screens[2]['background_morning'] = 'bg_morning.jpg';
//screens[2]['background_noon'] = 'bg_noon.jpg';
//screens[2]['background_afternoon'] = 'bg_afternoon.jpg';
//screens[2]['background_night'] = 'bg_night.jpg';
//screens[2]['columns'] = [4,5,6]