Dashticz - Module - Calendar

Dashticz, alternative dashboard based on HTML, CSS, jQuery

Moderators: leecollings, htilburgs, robgeerts

Cletus
Posts: 54
Joined: Wednesday 17 August 2016 9:32
Target OS: Raspberry Pi / ODroid
Domoticz version: Latest
Location: Purmerend, Netherlands
Contact:

Re: Dashticz - Module - Calendar

Post by Cletus »

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 1:36
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Dashticz - Module - Calendar

Post by emoncuit »

Hello Axel2906,

I confirm your code has fixed the "loading" issue.
Thanks a lot!
RiHa
Posts: 2
Joined: Sunday 11 March 2018 20:13
Target OS: Windows
Domoticz version:
Contact:

Re: Dashticz - Module - Calendar

Post by RiHa »

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: 19
Joined: Wednesday 21 February 2018 20:38
Target OS: Raspberry Pi / ODroid
Domoticz version: V3.8926
Location: Brussels
Contact:

Re: Dashticz - Module - Calendar

Post by axel2906 »

RiHa wrote: Sunday 11 March 2018 20: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 20:13
Target OS: Windows
Domoticz version:
Contact:

Re: Dashticz - Module - Calendar

Post by RiHa »

axel2906 wrote:
RiHa wrote: Sunday 11 March 2018 20: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: 55
Joined: Saturday 05 March 2016 21:42
Target OS: Raspberry Pi / ODroid
Domoticz version: 3.5629
Contact:

Re: Dashticz - Module - Calendar

Post by Amsterdam020 »

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: 581
Joined: Thursday 21 April 2016 12:01
Target OS: Raspberry Pi / ODroid
Domoticz version: V4.10618
Location: Sweden
Contact:

Re: Dashticz - Module - Calendar

Post by DewGew »

Amsterdam020 wrote: Monday 12 March 2018 22: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 3 | domoticz | Aeon Labs Z-Stick GEN5 | RFlink gateway
NanoPi NEO-air | REGO6XX interface | Machinon theme | Homebridge | Domoticz Google Assistant | ideAlarm
Derik
Posts: 1602
Joined: Friday 18 October 2013 23:33
Target OS: Raspberry Pi / ODroid
Domoticz version: BETA
Location: Arnhem/Nijmegen Nederland
Contact:

Re: Dashticz - Module - Calendar

Post by Derik »

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 / ODroid
Domoticz version: 3.8153
Location: Almere
Contact:

Re: Dashticz - Module - Calendar

Post by EdwinH »

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: 687
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 »

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]
RPi3b+/RFXCOM rfxtrx433E/Shelly/Xiaomi Gateway/Philips HUE Lights/Atag Zone One/2 SunnyBoy inverters/AirconWithMe/P1 smartmeter/Domoticz latest Beta
User avatar
mvveelen
Posts: 687
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 »

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.
RPi3b+/RFXCOM rfxtrx433E/Shelly/Xiaomi Gateway/Philips HUE Lights/Atag Zone One/2 SunnyBoy inverters/AirconWithMe/P1 smartmeter/Domoticz latest Beta
Dlanor
Posts: 67
Joined: Sunday 22 March 2015 16:18
Target OS: NAS (Synology & others)
Domoticz version:
Contact:

Re: Dashticz - Module - Calendar

Post by Dlanor »

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 2418 times
Knipsel2.PNG
Knipsel2.PNG (3.57 KiB) Viewed 2418 times
Domoticz| Zigbee | SONOFF
Derik
Posts: 1602
Joined: Friday 18 October 2013 23:33
Target OS: Raspberry Pi / ODroid
Domoticz version: BETA
Location: Arnhem/Nijmegen Nederland
Contact:

Re: Dashticz - Module - Calendar

Post by Derik »

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
Derik
Posts: 1602
Joined: Friday 18 October 2013 23:33
Target OS: Raspberry Pi / ODroid
Domoticz version: BETA
Location: Arnhem/Nijmegen Nederland
Contact:

Re: Dashticz - Module - Calendar

Post by Derik »

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: 687
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 »

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 ?
RPi3b+/RFXCOM rfxtrx433E/Shelly/Xiaomi Gateway/Philips HUE Lights/Atag Zone One/2 SunnyBoy inverters/AirconWithMe/P1 smartmeter/Domoticz latest Beta
Derik
Posts: 1602
Joined: Friday 18 October 2013 23:33
Target OS: Raspberry Pi / ODroid
Domoticz version: BETA
Location: Arnhem/Nijmegen Nederland
Contact:

Re: Dashticz - Module - Calendar

Post by Derik »

Derik wrote: 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..
Kick no one have this problem??
Please
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
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 problems here with repeating events.
Running latest BETA on a Pi-3 | Toon® Thermostat (rooted) | Hue | Tuya | IKEA tradfri | Dashticz V3 on Lenovo Huawei Tablet | Conbee
Derik
Posts: 1602
Joined: Friday 18 October 2013 23:33
Target OS: Raspberry Pi / ODroid
Domoticz version: BETA
Location: Arnhem/Nijmegen Nederland
Contact:

Re: Dashticz - Module - Calendar

Post by Derik »

dear...
Now i see no thing @ all in the calendar.. from my Gmail..
Only changed my pass in the gmail acocunt..
Cannot see anything, ical doesnot change..
Reboot my system
So is there perhaps something else wrong

Did upload the past beta...
Make no differnets..
Last edited by Derik on Friday 19 October 2018 11:33, edited 1 time in total.
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
gielie
Posts: 290
Joined: Tuesday 12 January 2016 11:40
Target OS: Raspberry Pi / ODroid
Domoticz version: latest β
Location: The Netherlands (Alkmaar)
Contact:

Re: Dashticz - Module - Calendar

Post by gielie »

Derik wrote: Friday 19 October 2018 11:23 dear...
Now i see no thing @ all in the calendar.. from my Gmail..
Only changed my pass in the gmail acocunt..
Cannot see anything, ical doesnot change..
Reboot my system
So is there perhaps something else wrong
http://domoticz.com/forum/viewtopic.php ... 20#p194635
This is the reason
- Aeon Labs USB Stick met Z-wave plus
- Aeotec MultiSensor 6
- FIBARO FGS223
- FIBARO FGWPE Wall Plug
- Neo CoolCam Power plug
- Popp Smoke Detector
- Toon
- Kodi Media Server
jake
Posts: 742
Joined: Saturday 30 May 2015 22:40
Target OS: Raspberry Pi / ODroid
Domoticz version: beta
Contact:

Re: Dashticz - Module - Calendar

Post by jake »

I'm running the latest beta and did add the extra line to config.js (config['calendar_parse_localy']=true;) However, Dashticz doesn't show the calendar.
In the root of /var/www/html I have the file phpinfo.php. When I run that file from the browser, it returns me the information abot php. Therefore I assume PHP is running properly
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest