Dashticz - Module - Calendar

Dashticz, alternative dashboard based on HTML, CSS, jQuery

Moderators: robgeerts, htilburgs

robgeerts
Posts: 840
Joined: Saturday 24 January 2015 23:12
Target OS: NAS (Synology & others)
Domoticz version: 3.6796
Location: The Netherlands
Contact:

Re: Dashticz - Module - Calendar

Postby robgeerts » Tuesday 16 May 2017 20:29

It should work with latest beta found here: https://github.com/robgeerts/dashticz_v2/tree/beta
If not, send me your config with the code you've tried.

User avatar
EdKo66
Posts: 577
Joined: Sunday 22 January 2017 22:46
Target OS: NAS (Synology & others)
Domoticz version: Beta
Location: Rhoon - Netherlands
Contact:

Re: Dashticz - Module - Calendar

Postby EdKo66 » Tuesday 16 May 2017 20:51

Still having problems with the combined and private calendar. Business is working.

Something I just thought of, In Textwrangler (some sort of programm to write code in), the 'private' part is in blue-ish colour, while .combined isn't.
columns[1] = {}
columns[1]['blocks'] =
['blocktitle_1','s1',91,51,99,125,52,53,54,55,56,'blocktitle_11',calendars.private]//idx 57 - 62 reserve KaKU
columns[1]['width'] = 5;

Screen Shot 2017-05-16 at 20.58.23.png
Error messagee
Screen Shot 2017-05-16 at 20.58.23.png (32.56 KiB) Viewed 601 times
Running latest BETA on a NAS Synology 413j | Toon Thermostat | RFxcom | Dashticz V2 |

Trigun
Posts: 124
Joined: Wednesday 30 November 2016 12:58
Target OS: Raspberry Pi
Domoticz version: 3.5877
Contact:

Re: Dashticz - Module - Calendar

Postby Trigun » Tuesday 16 May 2017 21:14

htilburgs wrote:
Trigun wrote:Hi Guys, trying to setup the calender but am quite lost with all the info within this topic.
I am trying to setup a google calendar but don't know which info is right and which is not.
I assume I need 2 things:
1: the Icalender URL = which is ?
2: the ical url = which I have.
but whats next.

Thnx in advance guys!


Have you already take a look at the wiki?
http://www.domoticz.com/wiki/Dashticz_V2_-_Tips,_Tricks_%26_Customization#Showing_a_calendar


to be honest, I didn't know it was written in the Wiki but i read it :)
as for now I get a nice calendar whenever I click on the block.
but so far I am not seeiing all the event is on block.
this is my code(where the private info is "x"


Code: Select all

// iCalendar Plugin, supports all .ics calendar types like Google Calendar, Apple Calendar
var _ICALENDAR_URL      = 'https://calendar.google.com/calendar/ical/x/public/basic.ics'; //supports .ics type calendars (Google Calendar, Apple Calendar etc.)
var _ICALENDAR_DATEFORMAT   = 'friendly'; //'friendly', 'MM.DD.YYYY HH:mm', 'DD.MM.YYYY HH:mm', 'YYYY.MM.DD HH:mm'
var _ICALENDAR_LOCALE      = 'en'; //en,hu, etc.

var calendars = {}

calendars.business = { maxitems: 5, url: 'https://calendar.google.com/calendar/embed?src=x&ctz=Europe/Amsterdam', icalurl: 'https://calendar.google.com/calendar/ical/x/public/basic.ics' }
calendars.private = { maxitems: 5, icalurl: 'https://calendar.google.com/calendar/ical/x/private-x/basic.ics' }


can anyone tell me where I'm going wrong?

Thnx in advance guys!

User avatar
mvveelen
Posts: 596
Joined: Friday 31 October 2014 11:22
Target OS: NAS (Synology & others)
Domoticz version: Beta
Location: Hoorn, The Netherlands
Contact:

Re: Dashticz - Module - Calendar

Postby mvveelen » Tuesday 16 May 2017 21:20

My combined calendar is working. However, I see several appointments from 2018 scattered through the list. At least I know what to do in about 12 months :) I hope this will be fixed in a new update.

This is what I'm using in CONFIG.js:

Code: Select all

var calendars = {}
calendars.samen = { icalurl: 'https://p49-calendars.icloud.com/published/2/bla' }
calendars.shayna = { icalurl: 'https://p49-calendars.icloud.com/published/2/ookbla' }

calendars.combined = {}
calendars.combined.calendars = [
   { color:'white',calendar:calendars.samen },
   { color:'pink',calendar:calendars.shayna }
]


and

Code: Select all

var columns = {}
columns[1] = {}
columns[1]['blocks'] = ['s1',508,778,'s2',509,779,3453,3454,3455,3452,3533,3534,calendars.combined]
columns[1]['width'] = 5;



@Trigun:

you use:

Code: Select all

// iCalendar Plugin, supports all .ics calendar types like Google Calendar, Apple Calendar
var _ICALENDAR_URL      = 'https://calendar.google.com/calendar/ical/x/public/basic.ics'; //supports .ics type calendars (Google Calendar, Apple Calendar etc.)
var _ICALENDAR_DATEFORMAT   = 'friendly'; //'friendly', 'MM.DD.YYYY HH:mm', 'DD.MM.YYYY HH:mm', 'YYYY.MM.DD HH:mm'
var _ICALENDAR_LOCALE      = 'en'; //en,hu, etc.

var calendars = {}

calendars.business = { maxitems: 5, url: 'https://calendar.google.com/calendar/embed?src=x&ctz=Europe/Amsterdam', icalurl: 'https://calendar.google.com/calendar/ical/x/public/basic.ics' }
calendars.private = { maxitems: 5, icalurl: 'https://calendar.google.com/calendar/ical/x/private-x/basic.ics' }


But your URL's don't match, Is there a reason for that? One is: "url" and the other is "icalurl".....
Synology DS414 DSM6.1 + RFXCOM rfxtrx433E + Aeon Labs Z-Stick v2 + Xiaomi Gateway + Philips HUE Lights + Nefit Easy + Dashticz v2 + Domoticz latest Beta

User avatar
EdKo66
Posts: 577
Joined: Sunday 22 January 2017 22:46
Target OS: NAS (Synology & others)
Domoticz version: Beta
Location: Rhoon - Netherlands
Contact:

Re: Dashticz - Module - Calendar

Postby EdKo66 » Tuesday 16 May 2017 21:41

mvveelen wrote:
But your URL's don't match, Is there a reason for that? One is: "url" and the other is "icalurl".....


This is why.

Where 'url' is the webaddress of the page to be shown when clicking the block.
'icalurl' is the webaddress to the ical-version of your calendar.

Code: Select all

/ iCalendar Plugin, supports all .ics calendar types like Google Calendar, Apple Calendar
var _ICALENDAR_URL      = 'https://calendar.google.com/calendar/ical/x/public/basic.ics'; //supports .ics type calendars (Google Calendar, Apple Calendar etc.)
var _ICALENDAR_DATEFORMAT   = 'friendly'; //'friendly', 'MM.DD.YYYY HH:mm', 'DD.MM.YYYY HH:mm', 'YYYY.MM.DD HH:mm'
var _ICALENDAR_LOCALE      = 'en'; //en,hu, etc.

Wasn't this part obsolute now?
Running latest BETA on a NAS Synology 413j | Toon Thermostat | RFxcom | Dashticz V2 |

robgeerts
Posts: 840
Joined: Saturday 24 January 2015 23:12
Target OS: NAS (Synology & others)
Domoticz version: 3.6796
Location: The Netherlands
Contact:

Re: Dashticz - Module - Calendar

Postby robgeerts » Tuesday 16 May 2017 22:37

I use 'private' too so that shouldnt be a problem.
Did private work when you use only that calendar (and not combined?)
If not, are the settings in google correct (share settings) ?

User avatar
EdKo66
Posts: 577
Joined: Sunday 22 January 2017 22:46
Target OS: NAS (Synology & others)
Domoticz version: Beta
Location: Rhoon - Netherlands
Contact:

Re: Dashticz - Module - Calendar

Postby EdKo66 » Tuesday 16 May 2017 22:39

I think all my settings are okay, but never could use the private calendar.
Spoiler: show
Deze agenda openbaar maken Meer informatie
Deze agenda wordt weergegeven in de openbare zoekresultaten van Google
Running latest BETA on a NAS Synology 413j | Toon Thermostat | RFxcom | Dashticz V2 |

poudenes
Posts: 170
Joined: Wednesday 08 March 2017 10:42
Target OS: Linux
Domoticz version: 3.7392
Location: Amsterdam
Contact:

Re: Dashticz - Module - Calendar

Postby poudenes » Tuesday 16 May 2017 23:08

robgeerts wrote:It should work with latest beta found here: https://github.com/robgeerts/dashticz_v2/tree/beta
If not, send me your config with the code you've tried.


I see with last update (did update today) that there is a improvement of the calendar.
Still see also itms from 2018 already. If you want i can send you a link to do some tests on it?
Raspberry Pi3 - OSMC - Domoticz - Dashticz - MiPow PlayBulb - Nanolead Aurora - KaKu - Logitech Hamony - Nest - RFLink

User avatar
EdKo66
Posts: 577
Joined: Sunday 22 January 2017 22:46
Target OS: NAS (Synology & others)
Domoticz version: Beta
Location: Rhoon - Netherlands
Contact:

Re: Dashticz - Module - Calendar

Postby EdKo66 » Tuesday 16 May 2017 23:13

When I now look with the Inspector, I see this.

Code: Select all

Request URL:https://cors-anywhere.herokuapp.com/http://ical-to-json.herokuapp.com/convert.json?url=https://calendar.google.com/calendar/ical/PRIVATE KEY/basic.ics/
Request Method:GET
Status Code:400 Bad Request
Remote Address:23.23.100.24:443
Referrer Policy:no-referrer-when-downgrade



Fixed the typo.
Last edited by EdKo66 on Wednesday 17 May 2017 12:16, edited 1 time in total.
Running latest BETA on a NAS Synology 413j | Toon Thermostat | RFxcom | Dashticz V2 |

User avatar
EdKo66
Posts: 577
Joined: Sunday 22 January 2017 22:46
Target OS: NAS (Synology & others)
Domoticz version: Beta
Location: Rhoon - Netherlands
Contact:

Re: Dashticz - Module - Calendar

Postby EdKo66 » Wednesday 17 May 2017 9:25

Business is still working
Private keeps loading but doesn't seem to finish.
combined gives an error
Running latest BETA on a NAS Synology 413j | Toon Thermostat | RFxcom | Dashticz V2 |

robgeerts
Posts: 840
Joined: Saturday 24 January 2015 23:12
Target OS: NAS (Synology & others)
Domoticz version: 3.6796
Location: The Netherlands
Contact:

Re: Dashticz - Module - Calendar

Postby robgeerts » Wednesday 17 May 2017 9:54

Maybe its because of the [[ in the url of the calendar... wich i have to escape..

User avatar
EdKo66
Posts: 577
Joined: Sunday 22 January 2017 22:46
Target OS: NAS (Synology & others)
Domoticz version: Beta
Location: Rhoon - Netherlands
Contact:

Re: Dashticz - Module - Calendar

Postby EdKo66 » Wednesday 17 May 2017 12:13

No, that was a copy/paste error for the posting here. Forgot to adjust it. Changed it in my previous post.
Running latest BETA on a NAS Synology 413j | Toon Thermostat | RFxcom | Dashticz V2 |

User avatar
mvveelen
Posts: 596
Joined: Friday 31 October 2014 11:22
Target OS: NAS (Synology & others)
Domoticz version: Beta
Location: Hoorn, The Netherlands
Contact:

Re: Dashticz - Module - Calendar

Postby mvveelen » Thursday 18 May 2017 16:42

Any progress EdKo66 ? Your private calendar IS shared, right?
Synology DS414 DSM6.1 + RFXCOM rfxtrx433E + Aeon Labs Z-Stick v2 + Xiaomi Gateway + Philips HUE Lights + Nefit Easy + Dashticz v2 + Domoticz latest Beta

User avatar
EdKo66
Posts: 577
Joined: Sunday 22 January 2017 22:46
Target OS: NAS (Synology & others)
Domoticz version: Beta
Location: Rhoon - Netherlands
Contact:

Re: Dashticz - Module - Calendar

Postby EdKo66 » Thursday 18 May 2017 19:13

Yeah, it is. Didn't had any time to test it more this week though.
Screen Shot 2017-05-18 at 19.15.08.png
Screen Shot 2017-05-18 at 19.15.08.png (29.42 KiB) Viewed 409 times


Calendar is :
Attachments
Screen Shot 2017-05-18 at 19.16.42.png
Screen Shot 2017-05-18 at 19.16.42.png (79.87 KiB) Viewed 409 times
Running latest BETA on a NAS Synology 413j | Toon Thermostat | RFxcom | Dashticz V2 |

User avatar
mvveelen
Posts: 596
Joined: Friday 31 October 2014 11:22
Target OS: NAS (Synology & others)
Domoticz version: Beta
Location: Hoorn, The Netherlands
Contact:

Re: Dashticz - Module - Calendar

Postby mvveelen » Thursday 18 May 2017 19:26

What exact code do you use (without the private URL)?
Synology DS414 DSM6.1 + RFXCOM rfxtrx433E + Aeon Labs Z-Stick v2 + Xiaomi Gateway + Philips HUE Lights + Nefit Easy + Dashticz v2 + Domoticz latest Beta

User avatar
EdKo66
Posts: 577
Joined: Sunday 22 January 2017 22:46
Target OS: NAS (Synology & others)
Domoticz version: Beta
Location: Rhoon - Netherlands
Contact:

Re: Dashticz - Module - Calendar

Postby EdKo66 » Thursday 18 May 2017 19:50

Code: Select all

calendars.private = { maxitems: 5, icalurl: 'https://calendar.google.com/calendar/ical/PRIVATE PART/basic.ics/' }
Running latest BETA on a NAS Synology 413j | Toon Thermostat | RFxcom | Dashticz V2 |

User avatar
mvveelen
Posts: 596
Joined: Friday 31 October 2014 11:22
Target OS: NAS (Synology & others)
Domoticz version: Beta
Location: Hoorn, The Netherlands
Contact:

Re: Dashticz - Module - Calendar

Postby mvveelen » Thursday 18 May 2017 21:13

Can you try it without the 'maxitems: 5,' ?

On my dashboard it doesn't matter what amount I use: it doesn't work.
Synology DS414 DSM6.1 + RFXCOM rfxtrx433E + Aeon Labs Z-Stick v2 + Xiaomi Gateway + Philips HUE Lights + Nefit Easy + Dashticz v2 + Domoticz latest Beta

User avatar
EdKo66
Posts: 577
Joined: Sunday 22 January 2017 22:46
Target OS: NAS (Synology & others)
Domoticz version: Beta
Location: Rhoon - Netherlands
Contact:

Re: Dashticz - Module - Calendar

Postby EdKo66 » Thursday 18 May 2017 22:15

Still give '400 - bad request' -error

Code: Select all

Request URL:https://cors-anywhere.herokuapp.com/http://ical-to-json.herokuapp.com/convert.json?url=https://calendar.google.com/calendar/ical/PRIVATE/basic.ics/
Request Method:GET
Status Code:400 Bad Request
Remote Address:54.225.216.119:443
Referrer Policy:no-referrer-when-downgrade
Response Headers
view source
Running latest BETA on a NAS Synology 413j | Toon Thermostat | RFxcom | Dashticz V2 |

User avatar
EdKo66
Posts: 577
Joined: Sunday 22 January 2017 22:46
Target OS: NAS (Synology & others)
Domoticz version: Beta
Location: Rhoon - Netherlands
Contact:

Re: Dashticz - Module - Calendar

Postby EdKo66 » Thursday 18 May 2017 22:18

I suspect it is the cors-anywhere part that is doing this. At least I didn't put it in.
Running latest BETA on a NAS Synology 413j | Toon Thermostat | RFxcom | Dashticz V2 |

Grove
Posts: 11
Joined: Wednesday 01 June 2016 20:20
Target OS: NAS (Synology & others)
Domoticz version:
Contact:

Re: Dashticz - Module - Calendar

Postby Grove » Friday 19 May 2017 10:55

Can you download the ICS file is you put the google link directly in a browsers address bar?


Return to “Dashticz”

Who is online

Users browsing this forum: No registered users and 1 guest