Page 6 of 23
Re: Dashticz - Module - Calendar
Posted: Tuesday 16 May 2017 20:29
by robgeerts
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.
Re: Dashticz - Module - Calendar
Posted: Tuesday 16 May 2017 20:51
by EdwinK
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;

- Error messagee
- Screen Shot 2017-05-16 at 20.58.23.png (32.56 KiB) Viewed 2731 times
Re: Dashticz - Module - Calendar
Posted: Tuesday 16 May 2017 21:14
by Trigun
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_V ... 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!
Re: Dashticz - Module - Calendar
Posted: Tuesday 16 May 2017 21:20
by mvveelen
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".....
Re: Dashticz - Module - Calendar
Posted: Tuesday 16 May 2017 21:41
by EdwinK
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?
Re: Dashticz - Module - Calendar
Posted: Tuesday 16 May 2017 22:37
by robgeerts
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) ?
Re: Dashticz - Module - Calendar
Posted: Tuesday 16 May 2017 22:39
by EdwinK
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
Re: Dashticz - Module - Calendar
Posted: Tuesday 16 May 2017 23:08
by poudenes
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?
Re: Dashticz - Module - Calendar
Posted: Tuesday 16 May 2017 23:13
by EdwinK
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.
Re: Dashticz - Module - Calendar
Posted: Wednesday 17 May 2017 9:25
by EdwinK
Business is still working
Private keeps loading but doesn't seem to finish.
combined gives an error
Re: Dashticz - Module - Calendar
Posted: Wednesday 17 May 2017 9:54
by robgeerts
Maybe its because of the [[ in the url of the calendar... wich i have to escape..
Re: Dashticz - Module - Calendar
Posted: Wednesday 17 May 2017 12:13
by EdwinK
No, that was a copy/paste error for the posting here. Forgot to adjust it. Changed it in my previous post.
Re: Dashticz - Module - Calendar
Posted: Thursday 18 May 2017 16:42
by mvveelen
Any progress EdKo66 ? Your private calendar IS shared, right?
Re: Dashticz - Module - Calendar
Posted: Thursday 18 May 2017 19:13
by EdwinK
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 (29.42 KiB) Viewed 2539 times
Calendar is :
Re: Dashticz - Module - Calendar
Posted: Thursday 18 May 2017 19:26
by mvveelen
What exact code do you use (without the private URL)?
Re: Dashticz - Module - Calendar
Posted: Thursday 18 May 2017 19:50
by EdwinK
Code: Select all
calendars.private = { maxitems: 5, icalurl: 'https://calendar.google.com/calendar/ical/PRIVATE PART/basic.ics/' }
Re: Dashticz - Module - Calendar
Posted: Thursday 18 May 2017 21:13
by mvveelen
Can you try it without the 'maxitems: 5,' ?
On my dashboard it doesn't matter what amount I use: it doesn't work.
Re: Dashticz - Module - Calendar
Posted: Thursday 18 May 2017 22:15
by EdwinK
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
Re: Dashticz - Module - Calendar
Posted: Thursday 18 May 2017 22:18
by EdwinK
I suspect it is the cors-anywhere part that is doing this. At least I didn't put it in.
Re: Dashticz - Module - Calendar
Posted: Friday 19 May 2017 10:55
by Grove
Can you download the ICS file is you put the google link directly in a browsers address bar?