Page 22 of 23
Re: Dashticz - Module - Calendar
Posted: Wednesday 04 December 2019 11:28
by tarmacalastair
Still no luck using
.items div { as you've been using in your
custom.css . I used the Web Developer Tools which confirmed that my
custom.css is being read properly because changes to font sizes, etc for other blocks worked fine when changed in the browser.
However, your tip on using the Developer Tools was really useful as I was able to scroll through the other source files. Inside the
creative.css file I found a couple of references to the calendar. When I changed the value under
table.calendar for
border-spacing I then found that my calendar in the web page would change.
So, now, based on your suggestions, I have this in my
custom.css:
Code: Select all
table.calendar {
font-family: Courier New,Courier,Lucida Sans Typewriter,Lucida Typewriter,monospace !important;
}
I tried all the other settings that you use but for me I think this is really the only line that I need.
Thanks for pointing me in the right direction!
Re: Dashticz - Module - Calendar
Posted: Wednesday 04 December 2019 11:32
by mvdheide01
Good to hear
Yes, probably your set up is different than mine.
There are more ways to Rome as we Dutchies say (Yes I am a real Dutchy in Belgium)
tarmacalastair wrote: ↑Wednesday 04 December 2019 11:28
Still no luck using
.items div { as you've been using in your
custom.css . I used the Web Developer Tools which confirmed that my
custom.css is being read properly because changes to font sizes, etc for other blocks worked fine when changed in the browser.
However, your tip on using the Developer Tools was really useful as I was able to scroll through the other source files. Inside the
creative.css file I found a couple of references to the calendar. When I changed the value under
table.calendar for
border-spacing I then found that my calendar in the web page would change.
So, now, based on your suggestions, I have this in my
custom.css:
Code: Select all
table.calendar {
font-family: Courier New,Courier,Lucida Sans Typewriter,Lucida Typewriter,monospace !important;
}
I tried all the other settings that you use but for me I think this is really the only line that I need.
Thanks for pointing me in the right direction!
Re: Dashticz - Module - Calendar
Posted: Friday 20 December 2019 21:56
by Eddiever
For those of you who want the F1 calendar 2020 perhaps you can use this code:
(it is in Dutch but that works fine for me)
Code: Select all
calendars.formule1 = { maxitems: 15, icalurl: 'https://calendar.google.com/calendar/ical/ekqk1nbdusr1baon1ic42oeeik%40group.calendar.google.com/public/basic.ics' }
Re: Dashticz - Module - Calendar
Posted: Friday 17 January 2020 16:46
by Rob67ert
Is there a way to only show the start time of a calendar event?
Re: Dashticz - Module - Calendar
Posted: Sunday 19 January 2020 10:38
by lzwfkv
I have an issue with recurring calendar events, whereby the calendar only shows the first occurrence of the recurrences, but after that all the following occurrences are skipped. I have noted it in all the latest 3 or 4 Dashticz beta releases (don't know if it was the case for previous ones as well), now i am on beta v. 3.3.2.
Is this something known, anyone else with this issue or is it just my own misbehaviour of the calendar module?
I have a business calendar based on outlook/office365 with several daily, bi-daily and weekly recurring events as well as a private google calendar with some monthly or yearly recurring events (mostly birthdays and the likes) but both behave the same way: only first occurrence is shown in the calendar module, from the second one onwards they are skipped.
Hope someone can give useful suggestion or confirm it is a bug.
Thanks.
Re: Dashticz - Module - Calendar
Posted: Sunday 19 January 2020 11:27
by Lokonli
lzwfkv wrote: ↑Sunday 19 January 2020 10:38
I have an issue with recurring calendar events, whereby the calendar only shows the first occurrence of the recurrences, but after that all the following occurrences are skipped. I have noted it in all the latest 3 or 4 Dashticz beta releases (don't know if it was the case for previous ones as well), now i am on beta v. 3.3.2.
Is this something known, anyone else with this issue or is it just my own misbehaviour of the calendar module?
I have a business calendar based on outlook/office365 with several daily, bi-daily and weekly recurring events as well as a private google calendar with some monthly or yearly recurring events (mostly birthdays and the likes) but both behave the same way: only first occurrence is shown in the calendar module, from the second one onwards they are skipped.
Hope someone can give useful suggestion or confirm it is a bug.
Thanks.
I have the same problem. It's not caused by a recent Dashticz update, because Dashticz 3.0.0 also doesn't show the recurring events anymore. I'll look into this.
Re: Dashticz - Module - Calendar
Posted: Sunday 19 January 2020 16:57
by Lokonli
The ical calendar module that we are using suffers from a year 2020 problem: No recurring events after 1-1-2020
This is solvable. However, the yearly recurring events still seem to be incorrect. I'll try to solve this as well, before I publish a new release.
Re: Dashticz - Module - Calendar
Posted: Sunday 19 January 2020 17:10
by lzwfkv
Lokonli wrote:The ical calendar module that we are using suffers from a year 2020 problem: No recurring events after 1-1-2020
This is solvable. However, the yearly recurring events still seem to be incorrect. I'll try to solve this as well, before I publish a new release.
Thank you for your efforts. It's appreciated. Dashticz is getting better and better with your great work.
Re: Dashticz - Module - Calendar
Posted: Sunday 19 January 2020 17:25
by tarmacalastair
Indeed, I'd like to add my thanks too.
I've only just noticed that all my recurring events have suddenly stopped working too and I'm using a Google calendar.
Re: Dashticz - Module - Calendar
Posted: Monday 20 January 2020 20:32
by Lokonli
The calendar data, in ical format, is parsed with a PHP ical library. The library that we used for this was pretty old (2010...). At that time 2020 seemed to be far away. Appararently all recurring events were stopped after 1-1-2020.
I decided to make a switch to a new PHP ical library.
This library however requires PHP version 7 (or higher). I think most people actually are using at least PHP 7. If not, let me know.
The new library has just been pushed to the beta branch. It might have some unexpected side effects. If you see issues let me know.
Re: Dashticz - Module - Calendar
Posted: Tuesday 21 January 2020 7:42
by lzwfkv
Hi Lokoni, great work with the new library.
I updated to the latest beta and now i can see all the instances of recurring events. I didn't have to change anything in the definition files or URLs and the fix was working out of the box (almost).
I just faced an issue with Timezones and Outlook/Exchange calendar due to non fully standard TZ names used by Microsoft. The new ical library seems to be sensitive to the event's TZ attribute and, since there was an extra TZ defined in some of my Outlook calendar's events ("W. Europe Standard Time 1"), the php ical parsers raised a blocking exception ("Exception: DateTimeZone::__construct(): Unknown or bad timezone (W. Europe Standard Time 1) in /home/android/dashticz_v3/vendor/dashticz/ical/vendor/om/icalparser/src/IcalParser.php:181") with the result that the Outlook calendar was not loaded.
Lukily, there is a TZ mapping file in the new library source under "<dashticz path>/vendor/dashticz/ical/vendor/om/icalparser/src", file named "WindowsTimezones.php", where i simply added my own unexpected TZ and mapped it to the correct standard TZ name "'W. Europe Standard Time 1' => 'Europe/Berlin'," ; now also my Outlook calendar is loaded and showing recurring events correctly.
Hopefully this info can help anyone else who could have similar issues with strange TZ defined in non-Google calendars' events.
Thank you again for the quick fix.
Re: Dashticz - Module - Calendar
Posted: Tuesday 21 January 2020 8:25
by Lokonli
lzwfkv wrote: ↑Tuesday 21 January 2020 7:42
Hi Lokoni, great work with the new library.
I updated to the latest beta and now i can see all the instances of recurring events. I didn't have to change anything in the definition files or URLs and the fix was working out of the box (almost).
I just faced an issue with Timezones and Outlook/Exchange calendar due to non fully standard TZ names used by Microsoft. The new ical library seems to be sensitive to the event's TZ attribute and, since there was an extra TZ defined in some of my Outlook calendar's events ("W. Europe Standard Time 1"), the php ical parsers raised a blocking exception ("Exception: DateTimeZone::__construct(): Unknown or bad timezone (W. Europe Standard Time 1) in /home/android/dashticz_v3/vendor/dashticz/ical/vendor/om/icalparser/src/IcalParser.php:181") with the result that the Outlook calendar was not loaded.
Lukily, there is a TZ mapping file in the new library source under "<dashticz path>/vendor/dashticz/ical/vendor/om/icalparser/src", file named "WindowsTimezones.php", where i simply added my own unexpected TZ and mapped it to the correct standard TZ name "'W. Europe Standard Time 1' => 'Europe/Berlin'," ; now also my Outlook calendar is loaded and showing recurring events correctly.
Hopefully this info can help anyone else who could have similar issues with strange TZ defined in non-Google calendars' events.
Thank you again for the quick fix.
Thanks for the feedback. I'll dig into this to check whether a more structural solution is possible.
Re: Dashticz - Module - Calendar
Posted: Tuesday 21 January 2020 12:18
by Lokonli
@lzwfkv:
Your change proposal has already been merged into the official icalparser library
.
See:
https://github.com/OzzyCzech/icalparser/pull/44
I'll update Dashticz to this new library version.
Re: Dashticz - Module - Calendar
Posted: Tuesday 21 January 2020 15:10
by lzwfkv
Thank you for that, by far beyyer to include it in the original library itself.
Re: Dashticz - Module - Calendar
Posted: Sunday 26 January 2020 15:57
by Scotty
I'm having an issue with the calendar module.
I am running apache with PHP on my RasPi with two installations of Dashticz
192.168.0.22/dashticz and 192.168.0.22/dashticz-beta
The calendar module works flawlessly on the master release however just shows 'loading...' on the beta release. The config.js is exactly the same for both installations.
The console shows:
and
Error in response from calendar with icalurl ./vendor/dashticz/ical/?time=1580049903977&maxitems=5&url=*HiddenURL*
Any suggestions? I've tried searching but most threads just say about installing PHP which is already done and working.
Re: Dashticz - Module - Calendar
Posted: Sunday 26 January 2020 16:26
by HansieNL
Did you update lately the beta version? The PHP ical library is raplaced and needs PHP 7.1. If running Raspbian Stretch PHP is 7.0.
Re: Dashticz - Module - Calendar
Posted: Sunday 26 January 2020 16:38
by Scotty
Cool, I missed that so I will update my PHP and see what happens!
Thank you
Re: Dashticz - Module - Calendar
Posted: Tuesday 28 January 2020 15:22
by gielie
My calendar is not working anymore. What i see that i need php7.1 for the latest beta. Is it known that for Raspbian stretch there is no php7.1, php7.0 is the latest. Does this mean im forced to upgrade to Buster? Does Buster already work flawlessly with Domoticz and Dashticz? What i understood it is not. And why upgrade to PHP7.1 an not PHP7.4 (latest). Is there a workaround to get the calendar working on Raspbian stretch again?
Re: Dashticz - Module - Calendar
Posted: Tuesday 28 January 2020 15:43
by Lokonli
gielie wrote: ↑Tuesday 28 January 2020 15:22
My calendar is not working anymore. What i see that i need php7.1 for the latest beta. Is it known that for Raspbian stretch there is no php7.1, php7.0 is the latest. Does this mean im forced to upgrade to Buster? Does Buster already work flawlessly with Domoticz and Dashticz? What i understood it is not. And why upgrade to PHP7.1 an not PHP7.4 (latest). Is there a workaround to get the calendar working on Raspbian stretch again?
I've already a new version working that is compatible with php5.
If you are adventurous you can test the websocket branch, but maybe it's better to wait for the new beta.
And yes, PHP7.1 is the minimum version: PHP7.4 is fine as well.
If you use the automatic install, then it will work as well.
Re: Dashticz - Module - Calendar
Posted: Tuesday 04 February 2020 20:46
by TapNL
I am trying to combine three calendars. Don't seem to get this work.
Is this supported, or is the calendars.combined topped at two?