Page 96 of 184

Re: Dashticz v2.0, custom positioning and multiple screens

Posted: Wednesday 03 May 2017 20:18
by robgeerts
mvveelen wrote:Not really sure how to use this:

I have three calendars, OK I can only use 2, so I use the 2 URL's for the 2 calendars I want to add in the 2 first URL's I can add.
But then the calendars.combined : what URL can I use in the calendars.combined.url in the case of an iCloud calendar? Just https://www.icloud.com/#calendar ?
Do you get any errors in console?
Although I havent tested it, in theory you can use 3 calendars with this code:

Code: Select all

var calendars = {}
calendars.first = { icalurl: 'https://cors-anywhere.herokuapp.com/https://urlto.cal' }
calendars.second = { icalurl: 'https://cors-anywhere.herokuapp.com/https://urlto.cal' }
calendars.third = { icalurl: 'https://cors-anywhere.herokuapp.com/https://urlto.cal' }

calendars.combined = {}
calendars.combined.calendars = [
   { color:'white',calendar:calendars.first }, 
   { color:'#ccc',calendar:calendars.second }, 
   { color:'#ccc',calendar:calendars.third }
]
calendars.combined.url = 'https://www.icloud.com/#calendar';

Re: Dashticz v2.0, custom positioning and multiple screens

Posted: Wednesday 03 May 2017 20:52
by mvveelen
Even bijkomen van de wedstrijd hoor :mrgreen:

I get this error when I use the calendars:

Code: Select all

https://cors-anywhere.herokuapp.com/https://p03-calendarws.icloud.com/ca/subscribe/1/bknN4a2idziGc9c-aovFkgA-cut-nah7Lxm6Yof9Q
Failed to load resource: the server responded with a status of 421 (Misdirected Request)
Edit:

un-published the calendar and re-published the calendar. Got a new URL and that one works fine IF I use the calendars separately. The combined calendar doesn't show anything.

Error :

Code: Select all

https://cors-anywhere.herokuapp.com/webcal://p49-calendars.icloud.com/published/2/hkmcyFxGuPN-cut-iOokHc
Failed to load resource: the server responded with a status of 404 (Invalid host)

Re: Dashticz v2.0, custom positioning and multiple screens

Posted: Wednesday 03 May 2017 20:56
by htilburgs
robgeerts wrote:
TapNL wrote:
Would it be possible to add a wiki-file / how-to / readme for the extra's some users have made?

For instance:

- The waste calendar: how-to ad the switch, the contents of the lua script, etc.
- The moon add-on: what switches to add (and how), etc (nice, but not really sure HOW to add which switches etc).
- The calendar add-on (most recent)
- How to adjust the height (and witdh) of the traffic
- etc.

We can read this topic, but if it is in the package, then it would me much easier to maintain and find. Right?
I think this is a good idea, and are more then happy to contribute to this.
The way I imagine it is that we make per function as short description in the wiki and keep updating that.
If we create a trello board of functions that need to be fixed and functions that changed we can set this up quite easy.

@Rob: what do you think?
@Others: who wants to participate?
I just switched from Trello to the issue tracker of Github, for several reasons...
The wiki is already there, maintained by @htilburg. Everybody can participate to this wiki to expand the possibilities.
http://www.domoticz.com/wiki/Dashticz-v2
I've added today a page "Custom Applications" and made a start with "Moon Add-On".
Feel free to participate....;)

Re: Dashticz v2.0, custom positioning and multiple screens

Posted: Wednesday 03 May 2017 21:11
by EdwinK
htilburgs wrote:
I've added today a page "Custom Applications" and made a start with "Moon Add-On".
Feel free to participate....;)

If only I knew how I got the 'Afvalwijzer' working, I would add it.

And.. You are my hero... Moon script is working again. Still not from an external script, but just from within the Lua editor in Domoticz.

Re: Dashticz v2.0, custom positioning and multiple screens

Posted: Wednesday 03 May 2017 21:18
by htilburgs
EdKo66 wrote:
htilburgs wrote:
I've added today a page "Custom Applications" and made a start with "Moon Add-On".
Feel free to participate....;)

If only I knew how I got the 'Afvalwijzer' working, I would add it.
I just have the moonphase working on my testdashboard, the wiki will be updated in 5 minutes.
Than I will start with the waste calendar. Hope I can help you. (Have to read all the pages).

Do you know how to center the moonphase image?? It's now at the left.

Re: Dashticz v2.0, custom positioning and multiple screens

Posted: Wednesday 03 May 2017 21:19
by SwordFish
When I have time this weekend I will try to put description garbage calendar om the wiki

Re: Dashticz v2.0, custom positioning and multiple screens

Posted: Wednesday 03 May 2017 21:29
by EdwinK
htilburgs wrote:
EdKo66 wrote:
htilburgs wrote:
I've added today a page "Custom Applications" and made a start with "Moon Add-On".
Feel free to participate....;)

If only I knew how I got the 'Afvalwijzer' working, I would add it.
I just have the moonphase working on my testdashboard, the wiki will be updated in 5 minutes.
Than I will start with the waste calendar. Hope I can help you. (Have to read all the pages).

Do you know how to center the moonphase image?? It's now at the left.
Not sure. But I might try and see. And just as I posted in a previous post, the moon script is working perfectly. :)
Moon
Moon
Screen Shot 2017-05-03 at 21.30.18.png (71.61 KiB) Viewed 1416 times

Re: Dashticz v2.0, custom positioning and multiple screens

Posted: Wednesday 03 May 2017 21:32
by htilburgs
SwordFish wrote:When I have time this weekend I will try to put description garbage calendar om the wiki
:D

Re: Dashticz v2.0, custom positioning and multiple screens

Posted: Wednesday 03 May 2017 21:40
by Derik
grrr

V2.o from github with gitclone. [ from the wiki ]

I do have:
a CONFIG.js

Code: Select all

var _LANGUAGE 			= 'nl_NL'; //or: en_US, fr_FR, hu_HU
var _HOST_DOMOTICZ		  	= 'http://192.168.5.70:8080';
var _DOMOTICZ_REFRESH		= 5; //in seconds
var _DASHTICZ_REFRESH		= 10; //in minutes

/*
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 			= 'Nijmegen';
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 _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

// 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":"Music FM","file":"http://stream.musicfm.hu:8000/musicfm.mp3"},
								{"track":2,"name":"Radio 1","file":"http://213.181.210.106:8000/high.mp3"},
								{"track":3,"name":"Test FM","file":"http://213.181.210.106:8000/high.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. 

//Buttons or images to open webpages in an iframe, like a news website or weather forecast
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/Son/4058667'}
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'}


//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[1] = {}
blocks[1]['width'] = 4; 
blocks[1]['title'] = 'Living room'
blocks[1]['icon'] = 'fa-eye'; 
blocks[1]['image'] = 'bulb_off.png';

blocks[204] = {5} //dimmer
blocks[204]['width'] = 12;
blocks[204]['title'] = 'Living room' //if you want change the name of switch different then domoticz

blocks['blocktitle_1'] = {test'}
blocks['blocktitle_1']['type'] = 'blocktitle';
blocks['blocktitle_1']['title'] = 'Schakelaars';

var columns = {}

columns[1] = {}
columns[1]['blocks'] = ['Tester_1',9,2,62,'144_2',204,248,295] //remark: idx 144 produces 2 blocks, so you can use: '144_1' and '144_2' (or of course, just 144 if you want one)
columns[1]['width'] = 5;

columns[2] = {}
columns[2]['blocks'] = ['currentweather_big','weather',5,'144_1']
columns[2]['width'] = 5; 

columns[3] = {}
columns[3]['blocks'] = ['clock','sunrise','horizon','streamplayer',buttons.buienradar,buttons.radio,buttons.calendar,buttons.nunl,buttons.nzbget]
columns[3]['width'] = 2;

//var columns_standby = {}
//columns_standby[1] = {}
//columns_standby[1]['blocks'] = ['clock','currentweather_big','weather']
//columns_standby[1]['width'] = 12;

//if you want to use multiple screens, use the code below:
var screens = {}
screens[1] = {}
screens[1]['background'] = 'bg1.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'] = [1,2,3]

//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]

Without any Api because need to learn..

I do have:
ScreenShot236.jpg
ScreenShot236.jpg (39.79 KiB) Viewed 1409 times
Only no custom page with columns or blocks

So please where do i go wrong looks not so difficult....
Just the blank page is not what i was expecting... :roll: :roll:

Edit:
See now a error:
ScreenShot237.jpg
ScreenShot237.jpg (22.09 KiB) Viewed 1408 times
Check the domoticz adres and this is ok...

Re: Dashticz v2.0, custom positioning and multiple screens

Posted: Wednesday 03 May 2017 21:41
by htilburgs
EdKo66 wrote:
htilburgs wrote:
EdKo66 wrote:

If only I knew how I got the 'Afvalwijzer' working, I would add it.
I just have the moonphase working on my testdashboard, the wiki will be updated in 5 minutes.
Than I will start with the waste calendar. Hope I can help you. (Have to read all the pages).

Do you know how to center the moonphase image?? It's now at the left.
Not sure. But I might try and see. And just as I posted in a previous post, the moon script is working perfectly. :)
Screen Shot 2017-05-03 at 21.30.18.png
It's working great (that's why I'm going to make the wiki, because it's was not complete clear how-do-they-do-it).
My moon is not boxed and not centered...
Image

Re: Dashticz v2.0, custom positioning and multiple screens

Posted: Wednesday 03 May 2017 21:47
by htilburgs
Derik wrote:grrr

V2.o from github with gitclone. [ from the wiki ]

I do have:
a CONFIG.js

Code: Select all

var _LANGUAGE 			= 'nl_NL'; //or: en_US, fr_FR, hu_HU
var _HOST_DOMOTICZ		  	= 'http://192.168.5.70:8080';
var _DOMOTICZ_REFRESH		= 5; //in seconds
var _DASHTICZ_REFRESH		= 10; //in minutes

/*
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 			= 'Nijmegen';
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 _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

// 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":"Music FM","file":"http://stream.musicfm.hu:8000/musicfm.mp3"},
								{"track":2,"name":"Radio 1","file":"http://213.181.210.106:8000/high.mp3"},
								{"track":3,"name":"Test FM","file":"http://213.181.210.106:8000/high.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. 

//Buttons or images to open webpages in an iframe, like a news website or weather forecast
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/Son/4058667'}
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'}


//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[1] = {}
blocks[1]['width'] = 4; 
blocks[1]['title'] = 'Living room'
blocks[1]['icon'] = 'fa-eye'; 
blocks[1]['image'] = 'bulb_off.png';

blocks[204] = {5} //dimmer
blocks[204]['width'] = 12;
blocks[204]['title'] = 'Living room' //if you want change the name of switch different then domoticz

blocks['blocktitle_1'] = {test'}
blocks['blocktitle_1']['type'] = 'blocktitle';
blocks['blocktitle_1']['title'] = 'Schakelaars';

var columns = {}

columns[1] = {}
columns[1]['blocks'] = ['Tester_1',9,2,62,'144_2',204,248,295] //remark: idx 144 produces 2 blocks, so you can use: '144_1' and '144_2' (or of course, just 144 if you want one)
columns[1]['width'] = 5;

columns[2] = {}
columns[2]['blocks'] = ['currentweather_big','weather',5,'144_1']
columns[2]['width'] = 5; 

columns[3] = {}
columns[3]['blocks'] = ['clock','sunrise','horizon','streamplayer',buttons.buienradar,buttons.radio,buttons.calendar,buttons.nunl,buttons.nzbget]
columns[3]['width'] = 2;

//var columns_standby = {}
//columns_standby[1] = {}
//columns_standby[1]['blocks'] = ['clock','currentweather_big','weather']
//columns_standby[1]['width'] = 12;

//if you want to use multiple screens, use the code below:
var screens = {}
screens[1] = {}
screens[1]['background'] = 'bg1.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'] = [1,2,3]

//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]

Without any Api because need to learn..

I do have:
ScreenShot236.jpg

Only no custom page with columns or blocks

So please where do i go wrong looks not so difficult....
Just the blank page is not what i was expecting... :roll: :roll:

Edit:
See now a error:
ScreenShot237.jpg
Check the domoticz adres and this is ok...
I had the same issue today, after doing a git pull.
Seems that something went wrong, because I had the same issue. Looking into the problem, it seems that I didn't had an empty image (img) directory.
Copied my custom directory, renamed the dashboard folder to .org and did a new git clone.
Still no images and the same issue. After uploading the images from a backup, everything is Ok.

@Robgeerts, is there a possible issue with the github configuration?

Re: Dashticz v2.0, custom positioning and multiple screens

Posted: Wednesday 03 May 2017 21:47
by EdwinK
I want your moon ;)

Re: Dashticz v2.0, custom positioning and multiple screens

Posted: Wednesday 03 May 2017 21:48
by htilburgs
EdKo66 wrote:I want your moon ;)
It's default from the dashboard installation...

Re: Dashticz v2.0, custom positioning and multiple screens

Posted: Wednesday 03 May 2017 22:04
by EdwinK
Derik wrote:grrr

Edit:
See now a error:
ScreenShot237.jpg
Check the domoticz adres and this is ok...

I noticed that you als get that error when there is something else wrong. When i make a typo in a part of a 'var' then it also gives that error.

Re: Dashticz v2.0, custom positioning and multiple screens

Posted: Wednesday 03 May 2017 22:10
by Wheeling
htilburgs wrote:
EdKo66 wrote:
htilburgs wrote:
Image
Hi @htilburgs

Nice Dash
Can you share the iPhone script with us :)
I've been looking for it for a long time, but do not get it to work.

Thx
Bennie

Re: Dashticz v2.0, custom positioning and multiple screens

Posted: Wednesday 03 May 2017 22:29
by htilburgs
Wheeling wrote:
htilburgs wrote:
EdKo66 wrote:
Hi @htilburgs

Nice Dash
Can you share the iPhone script with us :)
I've been looking for it for a long time, but do not get it to work.

Thx
Bennie
Just send you a PM....

Re: Dashticz v2.0, custom positioning and multiple screens

Posted: Wednesday 03 May 2017 22:33
by robgeerts
htilburgs wrote:
Derik wrote:grrr

V2.o from github with gitclone. [ from the wiki ]

I do have:
a CONFIG.js

Code: Select all

var _LANGUAGE 			= 'nl_NL'; //or: en_US, fr_FR, hu_HU
var _HOST_DOMOTICZ		  	= 'http://192.168.5.70:8080';
var _DOMOTICZ_REFRESH		= 5; //in seconds
var _DASHTICZ_REFRESH		= 10; //in minutes

/*
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 			= 'Nijmegen';
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 _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

// 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":"Music FM","file":"http://stream.musicfm.hu:8000/musicfm.mp3"},
								{"track":2,"name":"Radio 1","file":"http://213.181.210.106:8000/high.mp3"},
								{"track":3,"name":"Test FM","file":"http://213.181.210.106:8000/high.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. 

//Buttons or images to open webpages in an iframe, like a news website or weather forecast
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/Son/4058667'}
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'}


//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[1] = {}
blocks[1]['width'] = 4; 
blocks[1]['title'] = 'Living room'
blocks[1]['icon'] = 'fa-eye'; 
blocks[1]['image'] = 'bulb_off.png';

blocks[204] = {5} //dimmer
blocks[204]['width'] = 12;
blocks[204]['title'] = 'Living room' //if you want change the name of switch different then domoticz

blocks['blocktitle_1'] = {test'}
blocks['blocktitle_1']['type'] = 'blocktitle';
blocks['blocktitle_1']['title'] = 'Schakelaars';

var columns = {}

columns[1] = {}
columns[1]['blocks'] = ['Tester_1',9,2,62,'144_2',204,248,295] //remark: idx 144 produces 2 blocks, so you can use: '144_1' and '144_2' (or of course, just 144 if you want one)
columns[1]['width'] = 5;

columns[2] = {}
columns[2]['blocks'] = ['currentweather_big','weather',5,'144_1']
columns[2]['width'] = 5; 

columns[3] = {}
columns[3]['blocks'] = ['clock','sunrise','horizon','streamplayer',buttons.buienradar,buttons.radio,buttons.calendar,buttons.nunl,buttons.nzbget]
columns[3]['width'] = 2;

//var columns_standby = {}
//columns_standby[1] = {}
//columns_standby[1]['blocks'] = ['clock','currentweather_big','weather']
//columns_standby[1]['width'] = 12;

//if you want to use multiple screens, use the code below:
var screens = {}
screens[1] = {}
screens[1]['background'] = 'bg1.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'] = [1,2,3]

//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]

Without any Api because need to learn..

I do have:
ScreenShot236.jpg

Only no custom page with columns or blocks

So please where do i go wrong looks not so difficult....
Just the blank page is not what i was expecting... :roll: :roll:

Edit:
See now a error:
ScreenShot237.jpg
Check the domoticz adres and this is ok...
I had the same issue today, after doing a git pull.
Seems that something went wrong, because I had the same issue. Looking into the problem, it seems that I didn't had an empty image (img) directory.
Copied my custom directory, renamed the dashboard folder to .org and did a new git clone.
Still no images and the same issue. After uploading the images from a backup, everything is Ok.

@Robgeerts, is there a possible issue with the github configuration?
I just pulled it from gitlab, renamed config-default.js to config.js. Then I only changed the domoticz path and worked like a charm....

Re: Dashticz v2.0, custom positioning and multiple screens

Posted: Wednesday 03 May 2017 22:34
by Trigun
Hi All,

first of all, what a great dashboard!
Allthough it looks amazing, I am not able to get it working and I can't see where it goed wrong.
I changed the CONFIG-DEFAULT.js with my IP adress and saved it as CONFIG.js after putting all the files in www/dashticzv2 folder.
tried to open http://192.168.1.94:8080/dashticzv2 but get an 404 error.

Am I overlooking something??

thanks in advance!

Re: Dashticz v2.0, custom positioning and multiple screens

Posted: Wednesday 03 May 2017 22:36
by robgeerts
Try calling index.html after it:
http://192.168.1.94:8080/dashticzv2/index.html
(otherwise Domoticz catches the request)

Re: Dashticz v2.0, custom positioning and multiple screens

Posted: Wednesday 03 May 2017 22:37
by EdwinK
Trigun wrote:Hi All,

first of all, what a great dashboard!
Allthough it looks amazing, I am not able to get it working and I can't see where it goed wrong.
I changed the CONFIG-DEFAULT.js with my IP adress and saved it as CONFIG.js after putting all the files in www/dashticzv2 folder.
tried to open http://192.168.1.94:8080/dashticzv2 but get an 404 error.

Am I overlooking something??

thanks in advance!
Perhaps you can share your CONFIG.js here. Are you sure the address is correct?