Page 12 of 23

Re: Dashticz - Module - Calendar

Posted: Friday 24 November 2017 23:21
by Jempe
I have another problem with the calendar from dashticz.
I use the "url" option that open fullcalendar with all my event imported from some .ics
Fullcalendar work well but some time (most of time) the iframe display only a blank page... I have never a blank page when i load the url outside from dashticz. After a refresh from dashticz it's work, but if i clic later it's not working anymore.
var calendars = {}
calendars.commun = { maxitems: 10, url: 'http://lan.ip.nginx/custom/agenda/index.html', icalurl: 'https://www.myhosting/agenda.ics' }

This bug make the url option totaly useless...
An idee?

Re: Dashticz - Module - Calendar

Posted: Friday 24 November 2017 23:29
by Jempe
Here is a print screen of my blank bug
Image

Re: Dashticz - Module - Calendar

Posted: Friday 24 November 2017 23:41
by Jempe
And this when the iframe is not blank
Image

Re: Dashticz - Module - Calendar

Posted: Friday 24 November 2017 23:55
by robgeerts
Could you try google as a full url?
Just to check of it's the url or Dashticz...

Re: Dashticz - Module - Calendar

Posted: Saturday 25 November 2017 0:08
by Jempe
Yes i will try and i say you tomorow...
The url lost when dashitcz reload the event.
Thank's

Re: Dashticz - Module - Calendar

Posted: Saturday 25 November 2017 9:12
by Jempe
The url problem is the same with other url.
With google.ch the page as never worked during my test, blank every time. But with other page it's like my fullcalandar page. It's work after a full refresh of dashticz but the url is lost after dashitcz "refresh" the calendar part.

Re: Dashticz - Module - Calendar

Posted: Sunday 26 November 2017 0:19
by Jempe
I have found a solution for the blank iframe in calendar.
I have changing the random id on the iframe with a fixed id. And now it's work perfectly, no more blank iframe :-)

Code: Select all

var html = '<div class="modal fade" id="calendar_42" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">';
and change the call

Code: Select all

calobject.attr('data-target','#calendar_42');

Re: Dashticz - Module - Calendar

Posted: Sunday 26 November 2017 0:58
by Jempe
But for the character with accent i don't understand... I have change all the accent with the html code with sed on the ics file and the bug is not away...
And i really don't like the fact that's an external cal is made with my data... maybe i will search another solution... but my coding skill is limitate

Re: Dashticz - Module - Calendar

Posted: Sunday 26 November 2017 11:16
by aiolos
I'm currently working on some changes to use the google api for getting the data directly from the google calendar without using external tools. For now I'm working on it for the garbage module, but for the calendar stuff it will be similar. You only need to set up an api key in the google console and define it in the config. I can imagine the diacritics (accents) issue is also gone then.

Stay tuned...

Re: Dashticz - Module - Calendar

Posted: Sunday 26 November 2017 19:13
by Jempe
mmmh... I really don't want to use google... please let the choice to use google or not. I have an Nextcloud that give me all what i need.
The actual solution work and i will try to hosting the icstojson in my lan.
For the character problem i have a solution that work, i convert my ics to iso-85591 and it's work;
iconv -c -f UTF-8 -t ISO-8859-1 agenda42.ics > agenda.ics

Please don't change your calendar tool with a google solution. I will not use dashticz if it use google tools fo my calendar events
Thank's for your work!

Re: Dashticz - Module - Calendar

Posted: Sunday 26 November 2017 19:25
by aiolos
It will only be for the google calendars, current ical links will just work as usual.

Re: Dashticz - Module - Calendar

Posted: Sunday 26 November 2017 21:25
by Jempe
Perfect!
Can you provide the code from https://wedevise.nl/dashticz/ical that is use for you calendar module?
I really want to find a local solution for the calendar...

Re: Dashticz - Module - Calendar

Posted: Sunday 26 November 2017 23:07
by aiolos
That's something that Rob hosts on his server, I don't know what it looks like. A local solution would be to do this in a javascript library that translates the ical data to json (I already found one, which I'm trying to implement). However, not all servers give the right headers for cross domain data fetching, so you very likely end up using some service that adds/changes the right headers (although you could also do this with a local php script).

Re: Dashticz - Module - Calendar

Posted: Sunday 26 November 2017 23:31
by Jempe
Making an json from ics it's not a problem. But the script that Rob hosts on his server don't make only json. He parse the data and output code reorganise with an id for each event and only the title and start and end date. So it's not possible to use the calendar.js from dashitz without this part.
Or i have to make a script that parse the data exactly on the same way and i will not understand why Rob will keep this part secret...

Re: Dashticz - Module - Calendar

Posted: Monday 27 November 2017 9:53
by robgeerts
Well, I do not keep this secret on purpose.
A while ago I noticed lots off differences between ical's.
So decided to use PHP for this. Because not everyone runs PHP on the server where Dashticz is running, I placed it on a remote server.
I added the code in the attachment.

Re: Dashticz - Module - Calendar

Posted: Monday 27 November 2017 10:20
by Jempe
After the installation from some php moduIe it's work perfectly!
Thank you!
I have send you a "bitcoin beer"
Best regards

Re: Dashticz - Module - Calendar

Posted: Monday 27 November 2017 23:18
by robgeerts
Thanks, I appreciate it!

Re: Dashticz - Module - Calendar

Posted: Sunday 07 January 2018 14:49
by HansieNL
Official Formula One calender 2018 available https://www.formula1.com/sp/static/f1/2 ... r/ical.ics
naamloos.jpg
naamloos.jpg (120.51 KiB) Viewed 2735 times

Re: Dashticz - Module - Calendar

Posted: Sunday 07 January 2018 20:15
by Derik
Are there perhaps some people that have more nice calendars?

Re: Dashticz - Module - Calendar

Posted: Monday 22 January 2018 19:54
by Derik
@ Rob...
After a lot of trying finally more calendars combined very nice feature

Only when i did have the calendars separate i see the calendar more days event in the dash like event x day 1/5 - event x day 2/5 etc..

When i use the combined agenda's i see nog more days events like the separate way.
Or are there special settings in the calendar?