Dashticz - Module - Calendar
Moderators: leecollings, htilburgs, robgeerts
-
- Posts: 16
- Joined: Thursday 23 November 2017 12:12
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: Dashticz - Module - Calendar
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?
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?
-
- Posts: 16
- Joined: Thursday 23 November 2017 12:12
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: Dashticz - Module - Calendar
Here is a print screen of my blank bug
-
- Posts: 16
- Joined: Thursday 23 November 2017 12:12
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: Dashticz - Module - Calendar
And this when the iframe is not blank
-
- Posts: 1273
- Joined: Saturday 24 January 2015 22:12
- Target OS: NAS (Synology & others)
- Domoticz version: 3.7067
- Location: NL
- Contact:
Re: Dashticz - Module - Calendar
Could you try google as a full url?
Just to check of it's the url or Dashticz...
Just to check of it's the url or Dashticz...
-
- Posts: 16
- Joined: Thursday 23 November 2017 12:12
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: Dashticz - Module - Calendar
Yes i will try and i say you tomorow...
The url lost when dashitcz reload the event.
Thank's
The url lost when dashitcz reload the event.
Thank's
-
- Posts: 16
- Joined: Thursday 23 November 2017 12:12
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: Dashticz - Module - Calendar
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.
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.
-
- Posts: 16
- Joined: Thursday 23 November 2017 12:12
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: Dashticz - Module - Calendar
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
and change the call
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">';
Code: Select all
calobject.attr('data-target','#calendar_42');
Last edited by Jempe on Sunday 26 November 2017 0:59, edited 1 time in total.
-
- Posts: 16
- Joined: Thursday 23 November 2017 12:12
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: Dashticz - Module - Calendar
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
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
-
- Posts: 127
- Joined: Sunday 13 September 2015 18:58
- Target OS: Raspberry Pi / ODroid
- Domoticz version: stable
- Location: Nieuwegein, NL
- Contact:
Re: Dashticz - Module - Calendar
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...
Stay tuned...
-
- Posts: 16
- Joined: Thursday 23 November 2017 12:12
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: Dashticz - Module - Calendar
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!
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!
-
- Posts: 127
- Joined: Sunday 13 September 2015 18:58
- Target OS: Raspberry Pi / ODroid
- Domoticz version: stable
- Location: Nieuwegein, NL
- Contact:
Re: Dashticz - Module - Calendar
It will only be for the google calendars, current ical links will just work as usual.
-
- Posts: 16
- Joined: Thursday 23 November 2017 12:12
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: Dashticz - Module - Calendar
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...
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...
-
- Posts: 127
- Joined: Sunday 13 September 2015 18:58
- Target OS: Raspberry Pi / ODroid
- Domoticz version: stable
- Location: Nieuwegein, NL
- Contact:
Re: Dashticz - Module - Calendar
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).
-
- Posts: 16
- Joined: Thursday 23 November 2017 12:12
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: Dashticz - Module - Calendar
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...
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...
-
- Posts: 1273
- Joined: Saturday 24 January 2015 22:12
- Target OS: NAS (Synology & others)
- Domoticz version: 3.7067
- Location: NL
- Contact:
Re: Dashticz - Module - Calendar
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.
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.
- Attachments
-
- ical.zip
- (18.56 KiB) Downloaded 91 times
-
- Posts: 16
- Joined: Thursday 23 November 2017 12:12
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: Dashticz - Module - Calendar
After the installation from some php moduIe it's work perfectly!
Thank you!
I have send you a "bitcoin beer"
Best regards
Thank you!
I have send you a "bitcoin beer"
Best regards
-
- Posts: 1273
- Joined: Saturday 24 January 2015 22:12
- Target OS: NAS (Synology & others)
- Domoticz version: 3.7067
- Location: NL
- Contact:
Re: Dashticz - Module - Calendar
Thanks, I appreciate it!
- HansieNL
- Posts: 957
- Joined: Monday 28 September 2015 15:13
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: Dashticz - Module - Calendar
Official Formula One calender 2018 available https://www.formula1.com/sp/static/f1/2 ... r/ical.ics
Blah blah blah
-
- Posts: 1601
- Joined: Friday 18 October 2013 23:33
- Target OS: Raspberry Pi / ODroid
- Domoticz version: BETA
- Location: Arnhem/Nijmegen Nederland
- Contact:
Re: Dashticz - Module - Calendar
Are there perhaps some people that have more nice calendars?
Xu4: Beta Extreme antenna RFXcomE,WU Fi Ping ip P1 Gen5 PVOutput Harmony HUE SolarmanPv OTG Winddelen Alive ESP Buienradar MySensors WOL Winddelen counting RPi: Beta SMAspot RFlinkTest Domoticz ...Different backups
-
- Posts: 1601
- Joined: Friday 18 October 2013 23:33
- Target OS: Raspberry Pi / ODroid
- Domoticz version: BETA
- Location: Arnhem/Nijmegen Nederland
- Contact:
Re: Dashticz - Module - Calendar
@ 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?
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?
Xu4: Beta Extreme antenna RFXcomE,WU Fi Ping ip P1 Gen5 PVOutput Harmony HUE SolarmanPv OTG Winddelen Alive ESP Buienradar MySensors WOL Winddelen counting RPi: Beta SMAspot RFlinkTest Domoticz ...Different backups
Who is online
Users browsing this forum: No registered users and 1 guest