Page 4 of 11

Re: Dashticz - Module - Calendar

Posted: Wednesday 10 May 2017 20:06
by HansieNL
alveman wrote:Now the calendar just saying "Loding..." any suggestions? I'm using iCloud calendar.

Martin
Have you tried without https://crossorigin.me/

Re: Dashticz - Module - Calendar

Posted: Wednesday 10 May 2017 20:12
by robgeerts
HansieNL wrote:
alveman wrote:Now the calendar just saying "Loding..." any suggestions? I'm using iCloud calendar.

Martin
Have you tried without https://crossorigin.me/
This is handled automatically nowadays with the calendars ;)

Try:

Code: Select all

var calendars = {}
calendars.private = { maxitems: 5, icalurl: 'https://p02-calendarws.icloud.com/ca/subscribe/1/XXX' }

and then in your columns:

Code: Select all

columns[1]['blocks'] = [calendars.private]
But, I'm still working on the calendar-module.

Re: Dashticz - Module - Calendar

Posted: Wednesday 10 May 2017 21:27
by alveman
robgeerts wrote:
HansieNL wrote:
alveman wrote:Now the calendar just saying "Loding..." any suggestions? I'm using iCloud calendar.

Martin
Have you tried without https://crossorigin.me/
This is handled automatically nowadays with the calendars ;)

Try:

Code: Select all

var calendars = {}
calendars.private = { maxitems: 5, icalurl: 'https://p02-calendarws.icloud.com/ca/subscribe/1/XXX' }

and then in your columns:

Code: Select all

columns[1]['blocks'] = [calendars.private]
But, I'm still working on the calendar-module.
Now I have tested this but no luck

Code: Select all

//var _ICALENDAR_URL			= 'https://p02-calendarws.icloud.com/ca/subscribe/1/XXX'; 
//var _ICALENDAR_DATEFORMAT	= 'YYYY.MM.DD HH:mm'; 
//var _ICALENDAR_LOCALE		= 'en'; //en,hu, etc.
var calendars = {}
calendars.private = { maxitems: 5, icalurl: 'webcal://p02-calendarws.icloud.com/ca/subscribe/1/XXX' }
And changed the output block from 'icalendar' to calendars.private

Also tested both webcal:// and https:// but no difference same result. It's says "Loding..." for like 3 sec then emty. I can wait for the calendar-module ;) , keep up the good work!!

Martin

Re: Dashticz - Module - Calendar

Posted: Wednesday 10 May 2017 22:26
by robgeerts
Could you share your calendar link (only for me, via pm) so I can test it?
(I dont care about your appointments so dont bother about that ;)

Re: Dashticz - Module - Calendar

Posted: Wednesday 10 May 2017 22:44
by alveman
robgeerts wrote:Could you share your calendar link (only for me, via pm) so I can test it?
(I dont care about your appointments so dont bother about that ;)
It seems to be a Internet Explorer "bug", just walked by my wallmounted iPad and there was the calendar :D and it seems to work in Chrome as well. (worked in IE before the update)

But the output looks lite random calendar objects from 2014 until now.

Martin

Re: Dashticz - Module - Calendar

Posted: Thursday 11 May 2017 6:05
by poudenes
After latest update (beta) is see the items sorted correct. Only the repeated items are gone again.
I can share mine as well if you want to test it?

Re: Dashticz - Module - Calendar

Posted: Thursday 11 May 2017 8:53
by robgeerts
Recurring will be fixed, meanwhile I fixed something in latest beta when multiple events are at the same day/time

Re: Dashticz - Module - Calendar

Posted: Thursday 11 May 2017 11:06
by robgeerts
New version of the calendar module is available in BETA.
Please test, its not completely finished... 1 step at a time ;)

BACKUP YOUR CUSTOM.JS
BACKUP YOUR CUSTOM.JS
BACKUP YOUR CUSTOM.JS

Re: Dashticz - Module - Calendar

Posted: Thursday 11 May 2017 11:18
by EdwinK
Going to check it out :)

Re: Dashticz - Module - Calendar

Posted: Thursday 11 May 2017 12:38
by robgeerts
poudenes wrote:After latest update (beta) is see the items sorted correct. Only the repeated items are gone again.
I can share mine as well if you want to test it?
Could you test recurring events in latest beta??
If not working, please pm me your calendar-url and date where recurring events should be..

Re: Dashticz - Module - Calendar

Posted: Thursday 11 May 2017 14:10
by mvveelen
Hi,

I tried the

Code: Select all

maxitems: 5, ......
but that doesn't work (yet ?).

Also, I see some strange behaviour (see attachment): recurring events are shown multiple times, the date is displayed wrong, the times are...wrong.

Work in progress, right :) ?
Schermafbeelding 2017-05-11 om 14.09.55.png
Schermafbeelding 2017-05-11 om 14.09.55.png (282.37 KiB) Viewed 456 times

Re: Dashticz - Module - Calendar

Posted: Thursday 11 May 2017 14:24
by poudenes
robgeerts wrote:New version of the calendar module is available in BETA.
Please test, its not completely finished... 1 step at a time ;)

BACKUP YOUR CUSTOM.JS
BACKUP YOUR CUSTOM.JS
BACKUP YOUR CUSTOM.JS
After latest update, It shows all repeated items somewhere in 2018. And the time is 1 hour later then actual in ical calendar.
And it shows 1 time item for next day (this one is for 12th may 2017)

Re: Dashticz - Module - Calendar

Posted: Thursday 11 May 2017 23:00
by gielie
I have the calendar working fine only the days and months are in English, is it possible to show this in Dutch?

Re: Dashticz - Module - Calendar

Posted: Thursday 11 May 2017 23:12
by robgeerts
"Da kenne we wel regelen"
I'm not at a pc right now but i thought there was a variable called '_CALENDAR_LOCALE' you can set to nl_NL in config.js

Re: Dashticz - Module - Calendar

Posted: Thursday 11 May 2017 23:35
by mvveelen
Eh....why does my calendar show these strange line then ? Using the latest beta (about 1 hour ago). Locale is set to NL, is this a bug or something with my setup (2 iCalendar's combined) ?

Re: Dashticz - Module - Calendar

Posted: Thursday 11 May 2017 23:37
by robgeerts
Wich line?

Re: Dashticz - Module - Calendar

Posted: Thursday 11 May 2017 23:39
by mvveelen
I mean lines....see this screenshot: https://www.domoticz.com/forum/viewtopi ... 84#p134107

Re: Dashticz - Module - Calendar

Posted: Friday 12 May 2017 9:59
by EdwinK
mvveelen wrote:Eh....why does my calendar show these strange line then ? Using the latest beta (about 1 hour ago). Locale is set to NL, is this a bug or something with my setup (2 iCalendar's combined) ?
Can we have combined calendar's again?

Re: Dashticz - Module - Calendar

Posted: Friday 12 May 2017 10:34
by robgeerts
mvveelen wrote:I mean lines....see this screenshot: https://www.domoticz.com/forum/viewtopi ... 84#p134107
Your calendar shows right at my dashboard, I have this var set in config.js:

Code: Select all

var _ICALENDAR_DATEFORMAT	= 'DD.MM HH:mm';
What do you have set in this variable?
Combined calendars should work again.

Re: Dashticz - Module - Calendar

Posted: Friday 12 May 2017 11:01
by EdwinK
Okay. Going to try them :)

When I use calendars.combined I get this error message:

Screen Shot 2017-05-12 at 11.03.48.png
Error combined calendars
Screen Shot 2017-05-12 at 11.03.48.png (34.22 KiB) Viewed 325 times
Looks like this happens with the private calendar. So, when I got back from work, I will see if I can find out WHY.