Dashticz - Module - Calendar

Dashticz, alternative dashboard based on HTML, CSS, jQuery

Moderators: leecollings, htilburgs, robgeerts

Post Reply
robgeerts
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

Post 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.
User avatar
EdwinK
Posts: 1820
Joined: Sunday 22 January 2017 21:46
Target OS: Raspberry Pi / ODroid
Domoticz version: BETA
Location: Rhoon
Contact:

Re: Dashticz - Module - Calendar

Post 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
Error messagee
Screen Shot 2017-05-16 at 20.58.23.png (32.56 KiB) Viewed 2722 times
Running latest BETA on a Pi-3 | Toon® Thermostat (rooted) | Hue | Tuya | IKEA tradfri | Dashticz V3 on Lenovo Huawei Tablet | Conbee
Trigun
Posts: 390
Joined: Wednesday 30 November 2016 11:58
Target OS: Raspberry Pi / ODroid
Domoticz version: 4.10717
Contact:

Re: Dashticz - Module - Calendar

Post 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!
User avatar
mvveelen
Posts: 697
Joined: Friday 31 October 2014 10:22
Target OS: NAS (Synology & others)
Domoticz version: Beta
Location: Hoorn, The Netherlands
Contact:

Re: Dashticz - Module - Calendar

Post 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".....
RPi3b+/RFXCOM rfxtrx433E/Shelly/Xiaomi Gateway/Philips HUE Lights/Atag Zone One/2 SunnyBoy inverters/AirconWithMe/P1 smartmeter/Domoticz latest Beta
User avatar
EdwinK
Posts: 1820
Joined: Sunday 22 January 2017 21:46
Target OS: Raspberry Pi / ODroid
Domoticz version: BETA
Location: Rhoon
Contact:

Re: Dashticz - Module - Calendar

Post 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?
Running latest BETA on a Pi-3 | Toon® Thermostat (rooted) | Hue | Tuya | IKEA tradfri | Dashticz V3 on Lenovo Huawei Tablet | Conbee
robgeerts
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

Post 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) ?
User avatar
EdwinK
Posts: 1820
Joined: Sunday 22 January 2017 21:46
Target OS: Raspberry Pi / ODroid
Domoticz version: BETA
Location: Rhoon
Contact:

Re: Dashticz - Module - Calendar

Post 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
Running latest BETA on a Pi-3 | Toon® Thermostat (rooted) | Hue | Tuya | IKEA tradfri | Dashticz V3 on Lenovo Huawei Tablet | Conbee
poudenes
Posts: 667
Joined: Wednesday 08 March 2017 9:42
Target OS: Linux
Domoticz version: 3.8993
Location: Amsterdam
Contact:

Re: Dashticz - Module - Calendar

Post by poudenes »

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?
RPi3 B+, Debain Stretch, Domoticz, Homebridge, Dashticz, RFLink, Milight, Z-Wave, Fibaro, Nanoleaf, Nest, Harmony Hub, Now try to understand pass2php
User avatar
EdwinK
Posts: 1820
Joined: Sunday 22 January 2017 21:46
Target OS: Raspberry Pi / ODroid
Domoticz version: BETA
Location: Rhoon
Contact:

Re: Dashticz - Module - Calendar

Post 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.
Last edited by EdwinK on Wednesday 17 May 2017 12:16, edited 1 time in total.
Running latest BETA on a Pi-3 | Toon® Thermostat (rooted) | Hue | Tuya | IKEA tradfri | Dashticz V3 on Lenovo Huawei Tablet | Conbee
User avatar
EdwinK
Posts: 1820
Joined: Sunday 22 January 2017 21:46
Target OS: Raspberry Pi / ODroid
Domoticz version: BETA
Location: Rhoon
Contact:

Re: Dashticz - Module - Calendar

Post by EdwinK »

Business is still working
Private keeps loading but doesn't seem to finish.
combined gives an error
Running latest BETA on a Pi-3 | Toon® Thermostat (rooted) | Hue | Tuya | IKEA tradfri | Dashticz V3 on Lenovo Huawei Tablet | Conbee
robgeerts
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

Post by robgeerts »

Maybe its because of the [[ in the url of the calendar... wich i have to escape..
User avatar
EdwinK
Posts: 1820
Joined: Sunday 22 January 2017 21:46
Target OS: Raspberry Pi / ODroid
Domoticz version: BETA
Location: Rhoon
Contact:

Re: Dashticz - Module - Calendar

Post by EdwinK »

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 Pi-3 | Toon® Thermostat (rooted) | Hue | Tuya | IKEA tradfri | Dashticz V3 on Lenovo Huawei Tablet | Conbee
User avatar
mvveelen
Posts: 697
Joined: Friday 31 October 2014 10:22
Target OS: NAS (Synology & others)
Domoticz version: Beta
Location: Hoorn, The Netherlands
Contact:

Re: Dashticz - Module - Calendar

Post by mvveelen »

Any progress EdKo66 ? Your private calendar IS shared, right?
RPi3b+/RFXCOM rfxtrx433E/Shelly/Xiaomi Gateway/Philips HUE Lights/Atag Zone One/2 SunnyBoy inverters/AirconWithMe/P1 smartmeter/Domoticz latest Beta
User avatar
EdwinK
Posts: 1820
Joined: Sunday 22 January 2017 21:46
Target OS: Raspberry Pi / ODroid
Domoticz version: BETA
Location: Rhoon
Contact:

Re: Dashticz - Module - Calendar

Post 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
Screen Shot 2017-05-18 at 19.15.08.png (29.42 KiB) Viewed 2530 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 2530 times
Running latest BETA on a Pi-3 | Toon® Thermostat (rooted) | Hue | Tuya | IKEA tradfri | Dashticz V3 on Lenovo Huawei Tablet | Conbee
User avatar
mvveelen
Posts: 697
Joined: Friday 31 October 2014 10:22
Target OS: NAS (Synology & others)
Domoticz version: Beta
Location: Hoorn, The Netherlands
Contact:

Re: Dashticz - Module - Calendar

Post by mvveelen »

What exact code do you use (without the private URL)?
RPi3b+/RFXCOM rfxtrx433E/Shelly/Xiaomi Gateway/Philips HUE Lights/Atag Zone One/2 SunnyBoy inverters/AirconWithMe/P1 smartmeter/Domoticz latest Beta
User avatar
EdwinK
Posts: 1820
Joined: Sunday 22 January 2017 21:46
Target OS: Raspberry Pi / ODroid
Domoticz version: BETA
Location: Rhoon
Contact:

Re: Dashticz - Module - Calendar

Post by EdwinK »

Code: Select all

calendars.private = { maxitems: 5, icalurl: 'https://calendar.google.com/calendar/ical/PRIVATE PART/basic.ics/' }
Running latest BETA on a Pi-3 | Toon® Thermostat (rooted) | Hue | Tuya | IKEA tradfri | Dashticz V3 on Lenovo Huawei Tablet | Conbee
User avatar
mvveelen
Posts: 697
Joined: Friday 31 October 2014 10:22
Target OS: NAS (Synology & others)
Domoticz version: Beta
Location: Hoorn, The Netherlands
Contact:

Re: Dashticz - Module - Calendar

Post 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.
RPi3b+/RFXCOM rfxtrx433E/Shelly/Xiaomi Gateway/Philips HUE Lights/Atag Zone One/2 SunnyBoy inverters/AirconWithMe/P1 smartmeter/Domoticz latest Beta
User avatar
EdwinK
Posts: 1820
Joined: Sunday 22 January 2017 21:46
Target OS: Raspberry Pi / ODroid
Domoticz version: BETA
Location: Rhoon
Contact:

Re: Dashticz - Module - Calendar

Post 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
Running latest BETA on a Pi-3 | Toon® Thermostat (rooted) | Hue | Tuya | IKEA tradfri | Dashticz V3 on Lenovo Huawei Tablet | Conbee
User avatar
EdwinK
Posts: 1820
Joined: Sunday 22 January 2017 21:46
Target OS: Raspberry Pi / ODroid
Domoticz version: BETA
Location: Rhoon
Contact:

Re: Dashticz - Module - Calendar

Post by EdwinK »

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 Pi-3 | Toon® Thermostat (rooted) | Hue | Tuya | IKEA tradfri | Dashticz V3 on Lenovo Huawei Tablet | Conbee
Grove
Posts: 13
Joined: Wednesday 01 June 2016 20:20
Target OS: NAS (Synology & others)
Domoticz version:
Contact:

Re: Dashticz - Module - Calendar

Post by Grove »

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

Who is online

Users browsing this forum: No registered users and 1 guest