Dashticz - Module - Calendar

Dashticz, alternative dashboard based on HTML, CSS, jQuery

Moderators: robgeerts, htilburgs

User avatar
Cletus
Posts: 80
Joined: Wednesday 17 August 2016 9:32
Target OS: Raspberry Pi
Domoticz version: Latest
Location: Purmerend, Netherlands
Contact:

Re: Dashticz - Module - Calendar

Post by Cletus » Thursday 01 March 2018 16:06

Excelent, that change fixed it for me! Thanks!
This is our world now... the world of the electron and the switch, the beauty of the baud.

emoncuit
Posts: 2
Joined: Thursday 08 March 2018 2:36
Target OS: Raspberry Pi
Domoticz version:
Contact:

Re: Dashticz - Module - Calendar

Post by emoncuit » Thursday 08 March 2018 9:54

Hello Axel2906,

I confirm your code has fixed the "loading" issue.
Thanks a lot!

RiHa
Posts: 2
Joined: Sunday 11 March 2018 21:13
Target OS: Windows
Domoticz version:
Contact:

Re: Dashticz - Module - Calendar

Post by RiHa » Sunday 11 March 2018 21:20

Hey guys,
I still have the problem that the calendar block in dashticz keeps saying 'loading' and doesn't give my calendar appointments. But when I paste the private Ical url in my browser, the browser starts downloading the Ical information. Can anyone explain how I can add axel2906's workaround to the CONFIG.js?

axel2906
Posts: 5
Joined: Wednesday 21 February 2018 21:38
Target OS: Raspberry Pi
Domoticz version: V3.8926
Location: Brussels
Contact:

Re: Dashticz - Module - Calendar

Post by axel2906 » Monday 12 March 2018 10:47

RiHa wrote:
Sunday 11 March 2018 21:20
Hey guys,
I still have the problem that the calendar block in dashticz keeps saying 'loading' and doesn't give my calendar appointments. But when I paste the private Ical url in my browser, the browser starts downloading the Ical information. Can anyone explain how I can add axel2906's workaround to the CONFIG.js?
Hey,

the changes must be made in CALENDAR.js not in config.js. Find this line in calendar.js (dashticz_v2/js folder) line 56

Code: Select all

var cache = new Date().getTime();
		curUrl = http://dashticz.nl/ical/?time=' + cache + '&url=' + curUrl;
		moment.locale(settings['calendarlanguage']);
		$.getJSON(curUrl,function(data,textstatus,jqXHR){
and add

Code: Select all

'https://cors-anywhere.herokuapp.com/
before http://dashticz.nl
RPi3 - RfxComm - Milight - OWL160

RiHa
Posts: 2
Joined: Sunday 11 March 2018 21:13
Target OS: Windows
Domoticz version:
Contact:

Re: Dashticz - Module - Calendar

Post by RiHa » Monday 12 March 2018 13:59

axel2906 wrote:
RiHa wrote:
Sunday 11 March 2018 21:20
Hey guys,
I still have the problem that the calendar block in dashticz keeps saying 'loading' and doesn't give my calendar appointments. But when I paste the private Ical url in my browser, the browser starts downloading the Ical information. Can anyone explain how I can add axel2906's workaround to the CONFIG.js?
Hey,

the changes must be made in CALENDAR.js not in config.js. Find this line in calendar.js (dashticz_v2/js folder) line 56

Code: Select all

var cache = new Date().getTime();
		curUrl = http://dashticz.nl/ical/?time=' + cache + '&url=' + curUrl;
		moment.locale(settings['calendarlanguage']);
		$.getJSON(curUrl,function(data,textstatus,jqXHR){
and add

Code: Select all

'https://cors-anywhere.herokuapp.com/
before http://dashticz.nl
Oh thanks for the quick response.

My calendar.js file looked a bit different, especially the URL I had to change. But by pasting your URL in my calendar.js I got it working again.

Thank!

Sent from my Pixel XL using Tapatalk


Amsterdam020
Posts: 61
Joined: Saturday 05 March 2016 22:42
Target OS: Raspberry Pi
Domoticz version: 3.5629
Contact:

Re: Dashticz - Module - Calendar

Post by Amsterdam020 » Monday 12 March 2018 23:54

If you use the code then herokuapp.com gets your full agenda. For private agendas i would be very reluctant to use this solution. Dont you value your privacy?

Is there a solution that does not require a third party?
Rp3, youlesss, rfxcom, philips hue, dsb1820

User avatar
DewGew
Posts: 256
Joined: Thursday 21 April 2016 12:01
Target OS: Raspberry Pi
Domoticz version: V4.9741
Location: Sweden
Contact:

Re: Dashticz - Module - Calendar

Post by DewGew » Tuesday 13 March 2018 9:52

Amsterdam020 wrote:
Monday 12 March 2018 23:54
If you use the code then herokuapp.com gets your full agenda. For private agendas i would be very reluctant to use this solution. Dont you value your privacy?

Is there a solution that does not require a third party?
One solution is to run your own crossorgin server. see wiki https://www.domoticz.com/wiki/Dashticz_ ... sers.21.29
Raspberry Pi 2B - domoticz - Aeon Labs Z-Stick GEN5 - RFlink gateway
NanoPi NEO-air - domoticz - REGO6XX interface
Dashticz V2 - Homebridge

User avatar
Derik
Posts: 2151
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 » Friday 25 May 2018 17:21

mm does anyone have a working ical for the F1..
I do have :

Code: Select all

calendars.F1			= {maxitems: 1, icalurl: 'https://calendar.google.com/calendar/ical/8apmubhi25j8vfcqqbfralm54oj8ddb1%40import.calendar.google.com/public/basic.ics' }



Only this is not working any more i see:-(
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

EdwinH
Posts: 6
Joined: Tuesday 29 August 2017 17:37
Target OS: Raspberry Pi
Domoticz version: 3.8153
Location: Almere
Contact:

Re: Dashticz - Module - Calendar

Post by EdwinH » Thursday 21 June 2018 9:57

Derik wrote:
Friday 25 May 2018 17:21
mm does anyone have a working ical for the F1..
I do have :

Code: Select all

calendars.F1			= {maxitems: 1, icalurl: 'https://calendar.google.com/calendar/ical/8apmubhi25j8vfcqqbfralm54oj8ddb1%40import.calendar.google.com/public/basic.ics' }



Only this is not working any more i see:-(
Zoiets ? :

Code: Select all

calendars.formule1 = { maxitems: 15, icalurl: 'https://www.formula1.com/sp/static/f1/2018/calendar/ical.ics' }
Werkt als een tierelier

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

Re: Dashticz - Module - Calendar

Post by mvveelen » Sunday 22 July 2018 16:02

I can't seem to find a solution for this: I have 2 combined calendars. For both, I set an icon, but I don't get to see any icon when using the combined calendar. The code I use:

Code: Select all

var _ICALENDAR_DATEFORMAT     = 'dddd DD MMMM YYYY HH:mm';
var _ICALENDAR_LOCALE		= 'nl'; //en,hu, etc. 
var calendars = {}
calendars.een = { maxitems: 3, title:'Agenda een', icon:'fa-calendar', icalurl: 'https://p49-calendars.icloud.com/published/2/vjbladiebladieI' }
calendars.twee = { maxitems: 3, title:'Agenda twee', icon:'fa-calendar', icalurl: 'https://p49-calendars.icloud.com/published/2/hkmjadajada' }

calendars.combined = {}
calendars.combined.maxitems = 5;
calendars.combined.calendars = [
   { color:'white',calendar:calendars.een }, 
   { color:'pink',calendar:calendars.twee }
]
calendars.combined.url = 'https://calendar.google.com/calendar';
and:

Code: Select all

columns[2] = {}
columns[2]['width'] = 5;
columns[2]['blocks'] = ['garbage',calendars.combined,tvguide.dutch]
RPi3 + RFXCOM rfxtrx433E + Xiaomi Gateway + Philips HUE Lights + Nefit Easy + Dashticz v2 + Domoticz latest Beta

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

Re: Dashticz - Module - Calendar

Post by mvveelen » Friday 27 July 2018 16:54

Nobody?

at least I assume that it would be possible to get the calendar-icon when you're using the combined calendars, right?

Getting both calendars separate will take too much space and I want the dates to be displayed in a chronological order.

I hope someone can get the the solution for this.
RPi3 + RFXCOM rfxtrx433E + Xiaomi Gateway + Philips HUE Lights + Nefit Easy + Dashticz v2 + Domoticz latest Beta

Dlanor
Posts: 103
Joined: Sunday 22 March 2015 17:18
Target OS: Raspberry Pi
Domoticz version:
Contact:

Re: Dashticz - Module - Calendar

Post by Dlanor » Monday 30 July 2018 16:29

first of all nice work!

I am trying to add the trash calendar. There are two but only one is shown. Any idea? :roll:

Code: Select all

var calendars = {}
calendars.trash = { maxitems: 5, icalurl: 'https://calendar.google.com/calendar/ical/8r0tm9d1kkm34bfdemq1dg53h53h1tco%40import.calendar.google.com/public/basic.ics'}
Knipsel.PNG
Knipsel.PNG (11.87 KiB) Viewed 554 times
Knipsel2.PNG
Knipsel2.PNG (3.57 KiB) Viewed 554 times
Domoticz | Dashticz V2 | Raspberry Pi | RFXCOM RFXtrx433E USB | RFlink 433Mhz | SONOFF

User avatar
Derik
Posts: 2151
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 13 August 2018 13:08

EdwinH wrote:
Thursday 21 June 2018 9:57
Derik wrote:
Friday 25 May 2018 17:21
mm does anyone have a working ical for the F1..
I do have :

Code: Select all

calendars.F1			= {maxitems: 1, icalurl: 'https://calendar.google.com/calendar/ical/8apmubhi25j8vfcqqbfralm54oj8ddb1%40import.calendar.google.com/public/basic.ics' }



Only this is not working any more i see:-(
Zoiets ? :

Code: Select all

calendars.formule1 = { maxitems: 15, icalurl: 'https://www.formula1.com/sp/static/f1/2018/calendar/ical.ics' }
Werkt als een tierelier

Thanks!!!
See now your message...[ en heb nu ff tijd om aan te passen..]
Do you have more dutch working calenders? [ holidays of christmas and other importend days? ]


And do you have in the normal google calendars multiple events working??
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: 2151
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 » Saturday 25 August 2018 20:35

Dear all

Please does everyone have the multiple events visible in daschticz?
All the repeating items are not showing up?
I try different calendars and all the same problem.
No event that have more then 1 day
En event repeating for every Monday or something are not showing up..
In the earlier editions was there no problem with it..

Hope there is a solution..
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
mvveelen
Posts: 674
Joined: Friday 31 October 2014 11:22
Target OS: NAS (Synology & others)
Domoticz version: Beta
Location: Hoorn, The Netherlands
Contact:

Re: Dashticz - Module - Calendar

Post by mvveelen » Sunday 16 September 2018 13:39

mvveelen wrote:
Sunday 22 July 2018 16:02
I can't seem to find a solution for this: I have 2 combined calendars. For both, I set an icon, but I don't get to see any icon when using the combined calendar. The code I use:

Code: Select all

var _ICALENDAR_DATEFORMAT     = 'dddd DD MMMM YYYY HH:mm';
var _ICALENDAR_LOCALE		= 'nl'; //en,hu, etc. 
var calendars = {}
calendars.een = { maxitems: 3, title:'Agenda een', icon:'fa-calendar', icalurl: 'https://p49-calendars.icloud.com/published/2/vjbladiebladieI' }
calendars.twee = { maxitems: 3, title:'Agenda twee', icon:'fa-calendar', icalurl: 'https://p49-calendars.icloud.com/published/2/hkmjadajada' }

calendars.combined = {}
calendars.combined.maxitems = 5;
calendars.combined.calendars = [
   { color:'white',calendar:calendars.een }, 
   { color:'pink',calendar:calendars.twee }
]
calendars.combined.url = 'https://calendar.google.com/calendar';
and:

Code: Select all

columns[2] = {}
columns[2]['width'] = 5;
columns[2]['blocks'] = ['garbage',calendars.combined,tvguide.dutch]
Nobody knows a solution for this ?
RPi3 + RFXCOM rfxtrx433E + Xiaomi Gateway + Philips HUE Lights + Nefit Easy + Dashticz v2 + Domoticz latest Beta

Post Reply

Who is online

Users browsing this forum: No registered users and 3 guests