Dashticz - Module - Calendar

Dashticz, alternative dashboard based on HTML, CSS, jQuery

Moderators: robgeerts, htilburgs

Jempe
Posts: 16
Joined: Thursday 23 November 2017 13:12
Target OS: Raspberry Pi
Domoticz version:
Contact:

Re: Dashticz - Module - Calendar

Post by Jempe » Saturday 25 November 2017 0:21

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?

Jempe
Posts: 16
Joined: Thursday 23 November 2017 13:12
Target OS: Raspberry Pi
Domoticz version:
Contact:

Re: Dashticz - Module - Calendar

Post by Jempe » Saturday 25 November 2017 0:29

Here is a print screen of my blank bug
Image

Jempe
Posts: 16
Joined: Thursday 23 November 2017 13:12
Target OS: Raspberry Pi
Domoticz version:
Contact:

Re: Dashticz - Module - Calendar

Post by Jempe » Saturday 25 November 2017 0:41

And this when the iframe is not blank
Image

User avatar
robgeerts
Posts: 1239
Joined: Saturday 24 January 2015 23:12
Target OS: NAS (Synology & others)
Domoticz version: 3.7067
Location: NL
Contact:

Re: Dashticz - Module - Calendar

Post by robgeerts » Saturday 25 November 2017 0:55

Could you try google as a full url?
Just to check of it's the url or Dashticz...
Creator of Dashticz
Do you appreciate my work and want to buy me a beer?
Send:
- XVG to D8fwNbyV6YxJk1aSiXftWTtdaPipsKn2Fa
- ANY ERC20-TOKEN to 0x9b8ee84329d77765a28bca188218c6c793875a8a

or donate via PayPal: https://www.paypal.me/robgeerts

Jempe
Posts: 16
Joined: Thursday 23 November 2017 13:12
Target OS: Raspberry Pi
Domoticz version:
Contact:

Re: Dashticz - Module - Calendar

Post by Jempe » Saturday 25 November 2017 1:08

Yes i will try and i say you tomorow...
The url lost when dashitcz reload the event.
Thank's

Jempe
Posts: 16
Joined: Thursday 23 November 2017 13:12
Target OS: Raspberry Pi
Domoticz version:
Contact:

Re: Dashticz - Module - Calendar

Post by Jempe » Saturday 25 November 2017 10:12

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.

Jempe
Posts: 16
Joined: Thursday 23 November 2017 13:12
Target OS: Raspberry Pi
Domoticz version:
Contact:

Re: Dashticz - Module - Calendar

Post by Jempe » Sunday 26 November 2017 1:19

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');
Last edited by Jempe on Sunday 26 November 2017 1:59, edited 1 time in total.

Jempe
Posts: 16
Joined: Thursday 23 November 2017 13:12
Target OS: Raspberry Pi
Domoticz version:
Contact:

Re: Dashticz - Module - Calendar

Post by Jempe » Sunday 26 November 2017 1:58

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

aiolos
Posts: 129
Joined: Sunday 13 September 2015 18:58
Target OS: Raspberry Pi
Domoticz version: stable
Location: Sale, UK
Contact:

Re: Dashticz - Module - Calendar

Post by aiolos » Sunday 26 November 2017 12:16

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...
Contributor to Dashticz
More on my Github profile

Jempe
Posts: 16
Joined: Thursday 23 November 2017 13:12
Target OS: Raspberry Pi
Domoticz version:
Contact:

Re: Dashticz - Module - Calendar

Post by Jempe » Sunday 26 November 2017 20:13

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!

aiolos
Posts: 129
Joined: Sunday 13 September 2015 18:58
Target OS: Raspberry Pi
Domoticz version: stable
Location: Sale, UK
Contact:

Re: Dashticz - Module - Calendar

Post by aiolos » Sunday 26 November 2017 20:25

It will only be for the google calendars, current ical links will just work as usual.
Contributor to Dashticz
More on my Github profile

Jempe
Posts: 16
Joined: Thursday 23 November 2017 13:12
Target OS: Raspberry Pi
Domoticz version:
Contact:

Re: Dashticz - Module - Calendar

Post by Jempe » Sunday 26 November 2017 22:25

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...

aiolos
Posts: 129
Joined: Sunday 13 September 2015 18:58
Target OS: Raspberry Pi
Domoticz version: stable
Location: Sale, UK
Contact:

Re: Dashticz - Module - Calendar

Post by aiolos » Monday 27 November 2017 0:07

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).
Contributor to Dashticz
More on my Github profile

Jempe
Posts: 16
Joined: Thursday 23 November 2017 13:12
Target OS: Raspberry Pi
Domoticz version:
Contact:

Re: Dashticz - Module - Calendar

Post by Jempe » Monday 27 November 2017 0:31

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...

User avatar
robgeerts
Posts: 1239
Joined: Saturday 24 January 2015 23:12
Target OS: NAS (Synology & others)
Domoticz version: 3.7067
Location: NL
Contact:

Re: Dashticz - Module - Calendar

Post by robgeerts » Monday 27 November 2017 10:53

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.
Attachments
ical.zip
(18.56 KiB) Downloaded 63 times
Creator of Dashticz
Do you appreciate my work and want to buy me a beer?
Send:
- XVG to D8fwNbyV6YxJk1aSiXftWTtdaPipsKn2Fa
- ANY ERC20-TOKEN to 0x9b8ee84329d77765a28bca188218c6c793875a8a

or donate via PayPal: https://www.paypal.me/robgeerts

Jempe
Posts: 16
Joined: Thursday 23 November 2017 13:12
Target OS: Raspberry Pi
Domoticz version:
Contact:

Re: Dashticz - Module - Calendar

Post by Jempe » Monday 27 November 2017 11:20

After the installation from some php moduIe it's work perfectly!
Thank you!
I have send you a "bitcoin beer"
Best regards

User avatar
robgeerts
Posts: 1239
Joined: Saturday 24 January 2015 23:12
Target OS: NAS (Synology & others)
Domoticz version: 3.7067
Location: NL
Contact:

Re: Dashticz - Module - Calendar

Post by robgeerts » Tuesday 28 November 2017 0:18

Thanks, I appreciate it!
Creator of Dashticz
Do you appreciate my work and want to buy me a beer?
Send:
- XVG to D8fwNbyV6YxJk1aSiXftWTtdaPipsKn2Fa
- ANY ERC20-TOKEN to 0x9b8ee84329d77765a28bca188218c6c793875a8a

or donate via PayPal: https://www.paypal.me/robgeerts

User avatar
HansieNL
Posts: 416
Joined: Monday 28 September 2015 15:13
Target OS: Raspberry Pi
Domoticz version:
Contact:

Re: Dashticz - Module - Calendar

Post by HansieNL » Sunday 07 January 2018 15:49

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 1584 times
Blah blah blah

User avatar
Derik
Posts: 2150
Joined: Friday 18 October 2013 23:33
Target OS: Raspberry Pi
Domoticz version: BETA
Location: Arnhem/Nijmegen Nederland
Contact:

Re: Dashticz - Module - Calendar

Post by Derik » Sunday 07 January 2018 21:15

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

User avatar
Derik
Posts: 2150
Joined: Friday 18 October 2013 23:33
Target OS: Raspberry Pi
Domoticz version: BETA
Location: Arnhem/Nijmegen Nederland
Contact:

Re: Dashticz - Module - Calendar

Post by Derik » Monday 22 January 2018 20:54

@ 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?
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

Post Reply

Who is online

Users browsing this forum: Bananaface and 8 guests