Page 94 of 184

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

Posted: Wednesday 03 May 2017 8:14
by madrian
robgeerts wrote:
1.) download latest beta
2.) add following code to config.js:

The new animated weather icons are very cute. :)

BTW personally I haven't tried combined calendars, but separate calendars still not working. :twisted:

columns[3]['blocks'] = [calendars.private, calendars.business];

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

Posted: Wednesday 03 May 2017 9:33
by poudenes
And Agenda items that repeats every time are not shown as well.
For the rest wonderful scripting. Keep up the good work :D
madrian wrote:
robgeerts wrote:
1.) download latest beta
2.) add following code to config.js:

The new animated weather icons are very cute. :)

BTW personally I haven't tried combined calendars, but separate calendars still not working. :twisted:

columns[3]['blocks'] = [calendars.private, calendars.business];

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

Posted: Wednesday 03 May 2017 9:35
by robgeerts
madrian wrote: BTW personally I haven't tried combined calendars, but separate calendars still not working. :twisted:
columns[3]['blocks'] = [calendars.private, calendars.business];
Did youtry https://cors-anywhere.herokuapp.com/ instead of crosorigin.me in front of the calender-url?

Blueone wrote:I'm having some issues with the dashboard, after a while the dashboard reacts extremely slow and sometimes also doesn't exit the stand-by mode or also very slowly (looks like it is waiting for something). And sometimes when it end standby is shows only the background on a empty screen, I can swipe and am seeing the main screen but is goes back to the empty screen when I release the screen, a complete refresh is the only option in this case.
Do you have the latest version?
It should automatically reload after 30 minutes or so...

Teunissm wrote:is it posible in the latest beta version to add an rgb switch? I saw something about it?
Not yet finished ;)

poudenes wrote:And Agenda items that repeats every time are not shown as well.
For the rest wonderful scripting. Keep up the good work :D
I know, you mentioned it a couple of times ;)
Will look into this

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

Posted: Wednesday 03 May 2017 9:58
by poudenes
robgeerts wrote:
poudenes wrote:And Agenda items that repeats every time are not shown as well.
For the rest wonderful scripting. Keep up the good work :D
I know, you mentioned it a couple of times ;)
Will look into this
I'm sorry. :) there lots of posts and try to help. Did someone also have trouble with multiple screens in Beta? When its loaded i can't switch. Have to resize the browser first or change from full screen to normal and back on tablet before i can use the dots to switch.

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

Posted: Wednesday 03 May 2017 10:14
by robgeerts
b00n wrote:For the 2 hour time issue:

in ical_parser.js i changed:

Code: Select all

var utcdatems = ConvertUTCTimeToLocalTime(Date.UTC(dtutc.year, (dtutc.month-1), dtutc.day, dtutc.hour, dtutc.minute));
to

Code: Select all

var utcdatems = Date.UTC(dtutc.year, (dtutc.month-1), dtutc.day, dtutc.hour, dtutc.minute);
and the time issue is gone :D (last beta)
Ok just tested with this.
But, the problem I have is the when I use the last line of code you mentioned, I got most items right, but some items,created by someone else in shared calendar is still 2 hours off...

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

Posted: Wednesday 03 May 2017 10:18
by Blueone
robgeerts wrote:
Blueone wrote:I'm having some issues with the dashboard, after a while the dashboard reacts extremely slow and sometimes also doesn't exit the stand-by mode or also very slowly (looks like it is waiting for something). And sometimes when it end standby is shows only the background on a empty screen, I can swipe and am seeing the main screen but is goes back to the empty screen when I release the screen, a complete refresh is the only option in this case.
Do you have the latest version?
It should automatically reload after 30 minutes or so...
Using the last version, sometimes is also happens already after 5 minutes or so. I also notice it in the setpoint setting, when I change it could take a while before it refreshed while sometimes it is working perfect. So I think one piece of code or call is causing this issue which delays the rest. But is quite hard to debug, so tips to debug are welcome. Maybe I can also disable the block one by one to see if I can pin-point it.

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

Posted: Wednesday 03 May 2017 10:48
by gielie
koowee wrote:
SuperMouse wrote:But how to get the lastudate working?

Do I need to add this in blocks ? like:

blocks[121] = {}
blocks[121]['lastupdate'] = true

How did you do this?
You need to enable _SHOW_LASTUPDATE variable

Code: Select all

var _SHOW_LASTUPDATE = true;
And if you want to hide last update data from some device, then you need to add this kind of block

Code: Select all

blocks[idx]['hide_lastupdate'] = true;
Thats really inconvenient, would it be more easy to make a show_lastupdate for the idx you want instead of the one you don't want.
@Rob Is this something you can put on your todo list?

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

Posted: Wednesday 03 May 2017 10:52
by robgeerts
Added to my list..

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

Posted: Wednesday 03 May 2017 10:57
by robgeerts
Link on multiple calendars

In latest beta it is possible to add a click-function to the calendar-block.

Code: Select all

var calendars = {}
calendars.wedevise = { icalurl: 'http://urlto.com/basic.ics' }
calendars.private = { icalurl: 'http://urlto.com/basic.ics' }

calendars.combined = {}
calendars.combined.calendars = [
	{ color:'white',calendar:calendars.wedevise }, 
	{ color:'#ccc',calendar:calendars.private }
]
calendars.combined.url = 'https://linktocalendar.com';

WARNING: if you already used combined calendars, change it to the code above, with or without the url part ('calendars' in varname has been added)

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

Posted: Wednesday 03 May 2017 10:58
by bimse
I can see that the 'Security pane' has been added, how is this used?

Is it possible to add a timer function to the radio so it can be used as a clock radio. Possibly ruled in lua.

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

Posted: Wednesday 03 May 2017 11:06
by poudenes
Maybe a idea to put all functions on the http://www.domoticz.com/wiki/Dashticz-v2 site?
Or at least whats in the production version is added.
robgeerts wrote:Link on multiple calendars

In latest beta it is possible to add a click-function to the calendar-block.

Code: Select all

var calendars = {}
calendars.wedevise = { icalurl: 'http://urlto.com/basic.ics' }
calendars.private = { icalurl: 'http://urlto.com/basic.ics' }

calendars.combined = {}
calendars.combined.calendars = [
	{ color:'white',calendar:calendars.wedevise }, 
	{ color:'#ccc',calendar:calendars.private }
]
calendars.combined.url = 'https://linktocalendar.com';

WARNING: if you already used combined calendars, change it to the code above, with or without the url part ('calendars' in varname has been added)

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

Posted: Wednesday 03 May 2017 11:32
by Blueone
Blueone wrote:
robgeerts wrote:
Blueone wrote:I'm having some issues with the dashboard, after a while the dashboard reacts extremely slow and sometimes also doesn't exit the stand-by mode or also very slowly (looks like it is waiting for something). And sometimes when it end standby is shows only the background on a empty screen, I can swipe and am seeing the main screen but is goes back to the empty screen when I release the screen, a complete refresh is the only option in this case.
Do you have the latest version?
It should automatically reload after 30 minutes or so...
Using the last version, sometimes is also happens already after 5 minutes or so. I also notice it in the setpoint setting, when I change it could take a while before it refreshed while sometimes it is working perfect. So I think one piece of code or call is causing this issue which delays the rest. But is quite hard to debug, so tips to debug are welcome. Maybe I can also disable the block one by one to see if I can pin-point it.
Oke, I think i found the cause with the timeline in debugging mode. I appears is't waiting very long for some images from nu.nl or something, an example.
2017-05-03 11_24_32-Dashticz.png
2017-05-03 11_24_32-Dashticz.png (4.75 KiB) Viewed 2192 times
http://sat.sanoma.fi/sat/sat.gif?log=1& ... 53&ctz=120

It is loading this every 10seconds (when refreshing the dashboard) while I don't have an active iframe with this info in it, only a button which directs to nu.nl (nu.nl is part of sanoma). It is also doing this in a syncronous job, so the json calls are waiting for this. I think there are two issues/improvements here:

- it is loading all the external information every 10 seconds while the buttons aren't open on the screen
- External information is loaded synchronously and the json call are waiting for it, maybe external information can be loaded async to inprove the user experience?

I hope you can do something with this information, thanks in advance! :D. And if you need extra debug information, please let me know :).

BTW, I think some of the external images which are requested by nu.nl are blocked by piHole, will check that this evening, but it shouldn't interfere the working of the dashboard.

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

Posted: Wednesday 03 May 2017 11:54
by madrian
robgeerts wrote: BTW personally I haven't tried combined calendars, but separate calendars still not working. :twisted:
columns[3]['blocks'] = [calendars.private, calendars.business];
Did youtry https://cors-anywhere.herokuapp.com/ instead of crosorigin.me in front of the calender-url?
[/quote]

Yep, because crossorigin.me not worked in the morning. Only one calendar works at the same time.

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

Posted: Wednesday 03 May 2017 12:41
by crashingdutchman
It seems that after the Standby period triggers my screen is now completely black instead of dimmed. I didn't find a settings for this. Anyone else seeing this too?

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

Posted: Wednesday 03 May 2017 13:35
by rbo0567
crashingdutchman wrote:It seems that after the Standby period triggers my screen is now completely black instead of dimmed. I didn't find a settings for this. Anyone else seeing this too?
Yep. Same here.

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

Posted: Wednesday 03 May 2017 14:03
by robgeerts
Not over here, could you send me your config.js (without credentials).
Do you have the latest version and cleared cache?

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

Posted: Wednesday 03 May 2017 14:07
by robgeerts
poudenes wrote:Maybe a idea to put all functions on the http://www.domoticz.com/wiki/Dashticz-v2 site?
Or at least whats in the production version is added.
robgeerts wrote:Link on multiple calendars

In latest beta it is possible to add a click-function to the calendar-block.

Code: Select all

var calendars = {}
calendars.wedevise = { icalurl: 'http://urlto.com/basic.ics' }
calendars.private = { icalurl: 'http://urlto.com/basic.ics' }

calendars.combined = {}
calendars.combined.calendars = [
	{ color:'white',calendar:calendars.wedevise }, 
	{ color:'#ccc',calendar:calendars.private }
]
calendars.combined.url = 'https://linktocalendar.com';

WARNING: if you already used combined calendars, change it to the code above, with or without the url part ('calendars' in varname has been added)
Added :)
http://www.domoticz.com/wiki/Dashticz_V ... tomization

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

Posted: Wednesday 03 May 2017 14:30
by robgeerts
gielie wrote:
koowee wrote:
SuperMouse wrote:But how to get the lastudate working?

Do I need to add this in blocks ? like:

blocks[121] = {}
blocks[121]['lastupdate'] = true

How did you do this?
You need to enable _SHOW_LASTUPDATE variable

Code: Select all

var _SHOW_LASTUPDATE = true;
And if you want to hide last update data from some device, then you need to add this kind of block

Code: Select all

blocks[idx]['hide_lastupdate'] = true;
Thats really inconvenient, would it be more easy to make a show_lastupdate for the idx you want instead of the one you don't want.
@Rob Is this something you can put on your todo list?
In latest beta it is possible to have:

Code: Select all

var _SHOW_LASTUPDATE = false;

var blocks = {}
blocks[233] = {}
blocks[233]['show_lastupdate'] = true;

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

Posted: Wednesday 03 May 2017 14:35
by SwordFish
I have one calendar, but after the last beta update it isn't working anymore?
I did put in the code for combined calendars en without but the calendar isn't showing :(

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

Posted: Wednesday 03 May 2017 14:44
by woody4165
robgeerts wrote: Will check out the graph height later. According the news-bug, this is fixed in next beta (not available yet).
In the meantime, open main.js, find:

Code: Select all

myswiper = new Swiper('.swiper-container', {
	pagination: '.swiper-pagination',
	paginationClickable: true,
	loop: true,
	effect: _SCREENSLIDER_EFFECT,
	keyboardControl:true
});
AND change to:

Code: Select all

myswiper = new Swiper('.swiper-container', {
	pagination: '.swiper-pagination',
	paginationClickable: true,
	loop: false,
	effect: _SCREENSLIDER_EFFECT,
	keyboardControl:true
});
(looping the slides gives too much headaches ;)
Hi @robgeerts

just tried, but no changes on second page... :roll: