Dashticz V2 - Configuration

From Domoticz
Jump to: navigation, search

Dashticz v2.0 can be configured by editing the CONFIG.js file.
TIP! If CUSTOM POSITIONING is not working check if you have uncomment all lines from the blocks/colums/screens you want.

In the following part, the CONFIG.js is devided in sections. For each section there will be an explanation how to use.

Connection

var _LANGUAGE 			= 'nl_NL'; //or: en_US, de_DE, fr_FR, hu_HU, it_IT, pt_PT, sv_SE
var _HOST_DOMOTICZ	  	= 'http://192.168.1.3:8084';
var _DOMOTICZ_REFRESH		= 5; //in seconds
var _DASHTICZ_REFRESH		= 30; //in minutes
var _THEME		        = 'default'


Parameter Description
var _LANGUAGE can be used to select the language, Dutch (nl_NL), German (de_DE), English (en_US), French (fr_FR), Hungarian (hu_HU), Italian (it_IT), Portuguese (pt_PT), or Swedish (sv_SE)
var _HOST_DOMOTICZ is the URL to your Domoticz installation (with the correct PORT address)
var_DOMOTICZ_REFRESH the refresh rate of Dashticz v2.0 to get information from Domoticz
var _DASHTICZ_REFRESH the refresh rate of the Dashticz v2.0 Dashboard
var _THEME Select your Dashticz theme


Custom Parameters

/*
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 		= 'Eindhoven';
var _WEATHER_CITYNAME 		= ''; //show a different city name, leave empty if same as _WEATHER_CITY
var _WEATHER_COUNTRY 		= 'NL';
var _USE_AUTO_POSITIONING 	= true; //don't want to configure positions, use auto positioning
var _USE_FAVORITES		= true; //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 _MAPS_ZOOMLEVEL		= '';
 
var _AUTO_SWIPEBACK_TO		= 1; //when no activity, swipe back to main screen after x seconds
var _AUTO_SWIPEBACK_TIME	= 10; //seconds
 
var _STANDBY_CALL_URL           = 'http://127.0.0.1/cgi-bin/screen_brightness.cgi?brightness=20'; //adjust brightness raspberry touchscreen, leave empty if not used
var _END_STANDBY_CALL_URL       = 'http://127.0.0.1/cgi-bin/screen_brightness.cgi?brightness=250'; //adjust brightness raspberry touchscreen, leave empty if not used

Paramater Value Description
var _HOST_ZIGGO_HORIZON [ZIGGO URL] (Only Dutch users) If you have a Ziggo Horizon box, you can add this here
var _APIKEY_WUNDERGROUND [API KEY] Put here your API key for Wundergrond Weather. You can get a API key at https://www.wunderground.com/weather/api/d/pricing.html
var _WEATHER_CITY [CITY] Put here your weather city
var _WEATHER_COUNTRY [COUNTRY] Put here your weather country
var _USE_AUTO_POSITIONING true / false Make use of auto positioning for the Domoticz Favorites
var _USE_FAVORITES true / false If use auto positioning, then this item should be TRUE
var _HIDE_SECONDS_IN_CLOCK true / false Show the seconds of the clock
var _HIDE_MEDIAPLAYER_WHEN_OFF true / false When you have a mediaplayer connected, hide it when nothing is playing
var _NEWS_RSSFEED [RSSFEED URL] e.g. 'http://www.nu.nl/rss/algemeen'
var _USE_FAHRENHEIT true / false Select temperature in Celcius (Default) of Fahrenheit
var _USE_BEAUFORT true / false Use Bft instead of m/s for windspeed
var _TRANSLATE_SPEED true / false; For windspeed use north northwest instead of NNW
var _STANDBY_AFTER_MINUTES false / [MINUTES] Enter the amount of minutes like: 5 (5 minutes)
var _SCROLL_NEWS_AFTER [MILLISECONDS] Enter the ammount in milliseconds, so 7000 is 7 seconds (delay)
var _SHOW_LASTUPDATE true / false Show when the device is updated for the last time
var _LASTUPDATE_FORMAT 'DD-MM-YY HH:mm' What is de date / time format of the Last Update
var _SCREENSLIDER_EFFECT 'slide' or 'fade' or 'cube' or 'coverflow' or 'flip' Control which Screenslider effect you prefer
var _USE_STATIC_WEATHERICONS true / false Use Static or 'moving' weather icons
var _APIKEY_MAPS [API KEY] API Key to use with the Google Maps functionality
var _MAPS_LATITUDE [LATITUDE] Enter the Latitude to use within Google Maps
var _MAPS_LONGITUDE [LONGITUDE] Enter the Longitude to use within Google Maps
var _MAPS_ZOOMLEVEL [ZOOMLEVEL] Enter a number between 1..15 to determine the area shown in the map. 1 = Whole world, higher number smaller are, more detail.
var _AUTO_SWIPEBACK_TO [SCREEN NR] when no activity, swipe back to the selected screen
var _AUTO_SWIPEBACK_TIME [SECONDS] Define the seconds after swiping back to the selected screen
var _STANDBY_CALL_URL [URL] Enter the url for adjusting the brightness when entering stand-by mode
var _END_STANDBY_CALL_URL [URL] Enter the url for adjusting the brightness when exiting stand-by mode


Buttons

By default Dashticz v2.0 comes with several predefined buttons.
Buttons or images to open webpages in an iframe, like a news website or weather forecast.
The buttons can be used, by putting them in the desired place, defined in the part CUSTOM POSITIONING.

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.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.webcam = {width:12, isimage:true, refresh:2000, image: 'http://ip_url_to_webcam', url: 'http://ip_url_to_webcam'}


Parameter Description
var buttons = {} Mandatory - Defines the buttons section
buttons.buienradar width - defines the width of the button (default = 12)

isimage (true/false) - defines if you want to display an image for buienradar refreshimage:60000 - defines the refresh time of the image (in ms) image - defines the image you want to display (isimage:true) url - defines the url for the buienradar (change for your location)

buttons.radio width - defines the width of the button (default = 12)

image - defines the image (default = 'img/radio_on.png') title- defines the title (default = 'Radio') url - defines the url for radio (default = 'http://nederland.fm)

buttons.nunl width defines the width of the button (default = 12)

icon - defines the button icon (default = 'fa-newspaper-o') title - defines the title (default = 'Nu.nl') url - defines the url for nu.nl (default = 'http://www.nu.nl')

buttons.webcam width - defines the width of the button (default = 12)

isimage (true/false) - defines if you want to display an image for the webcam refreshimage:2000 - defines the refresh time of the image (in ms) image - defines the image you want to display (isimage:true) url - defines the url for the webcam (change for your location)



Dv2-home.png Dv2-positioning.png
Dashticz V2.0 Main Page Positioning