Dashticz - Module - Calendar

Dashticz, alternative dashboard based on HTML, CSS, jQuery

Moderators: leecollings, htilburgs, robgeerts

Lokonli
Posts: 2287
Joined: Monday 29 August 2016 22:40
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Dashticz - Module - Calendar

Post by Lokonli »

JaOfBa wrote: Saturday 17 August 2019 11:34 Goodday,

is there a way to get the text in the agenda aligned, so times aligned, agenda item aligned?

IMG_20190817_112812.jpg
Can you test latest beta?

Example:

Code: Select all

calendars.f1 = {
    maxitems: 6,
    url: 'https://www.f1calendar.com/#!/timezone/Europe-Amsterdam',
    icalurl: 'http://www.f1calendar.com/download/f1-calendar_p1_p2_p3_q_gp_alarm-20.ics',
    calFormat: 1
}
Also see:
https://dashticz.readthedocs.io/en/beta ... l#caltable
tarmacalastair
Posts: 95
Joined: Wednesday 30 October 2019 14:11
Target OS: Raspberry Pi / ODroid
Domoticz version: beta
Location: Great Britain
Contact:

Re: Dashticz - Module - Calendar

Post by tarmacalastair »

Hi,

On my Dashticz installation on a Pi, I have 2 Google calendars that I want to display. Once displays fine and the other just says "Loading..."

When I look in the debug screen in Firefox and Chrome it says "200" in green for the successful calendar and "500" in pink for the one that fails to load.

I have tried installing on another Pi with the same result. One is running 3.1.2 master and the other 3.1.2 beta. I am pretty sure that both calendars worked in earlier versions.

I used the instructions at https://dashticz.readthedocs.io/en/mast ... stall.html to install.

I've just tried adding the URL for a third Google calendar and that one displays fine as well so no idea why the one calendar is failing. I've even regenerated the secret ical address for my troublesome Google calendar but to no avail.

I attach a screenshot of the issue with all 3 calendars showing or attempting to display.

Any ideas please?

Thanks.
Oh, and thanks for the formatting alignment - looks much better now.
Attachments
Selection_260.jpg
Selection_260.jpg (134.62 KiB) Viewed 6825 times
Running Domoticz and Dashticz beta on Raspberry Pi OS 32 bit - has anyone had success with 64 bit?

Desktop access from Ubuntu Linux
Lokonli
Posts: 2287
Joined: Monday 29 August 2016 22:40
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Dashticz - Module - Calendar

Post by Lokonli »

tarmacalastair wrote: Wednesday 30 October 2019 15:53 Hi,

On my Dashticz installation on a Pi, I have 2 Google calendars that I want to display. Once displays fine and the other just says "Loading..."

When I look in the debug screen in Firefox and Chrome it says "200" in green for the successful calendar and "500" in pink for the one that fails to load.

I have tried installing on another Pi with the same result. One is running 3.1.2 master and the other 3.1.2 beta. I am pretty sure that both calendars worked in earlier versions.

I used the instructions at https://dashticz.readthedocs.io/en/mast ... stall.html to install.

I've just tried adding the URL for a third Google calendar and that one displays fine as well so no idea why the one calendar is failing. I've even regenerated the secret ical address for my troublesome Google calendar but to no avail.

I attach a screenshot of the issue with all 3 calendars showing or attempting to display.

Any ideas please?

Thanks.
Oh, and thanks for the formatting alignment - looks much better now.
I think an error is reported by the PHP calendar module. Can you check the PHP error log?
The location probably is /var/log/apache2/error.log, assuming you use Apache on a RPi.
tarmacalastair
Posts: 95
Joined: Wednesday 30 October 2019 14:11
Target OS: Raspberry Pi / ODroid
Domoticz version: beta
Location: Great Britain
Contact:

Re: Dashticz - Module - Calendar

Post by tarmacalastair »

Thanks for looking. Lots of these messages occurring but no other errors. Any help to you?

[Wed Oct 30 15:36:19.366424 2019] [:error] [pid 12541] [client 192.168.0.45:34136] PHP Fatal error: Maximum execution time of 30 seconds exceeded in /home/osmc/dashticz/vendor/dashticz/ical/helpers/SG_iCal_Freq.php on line 233, referer: http://192.168.0.107/dashticz/index.html
[Wed Oct 30 15:41:27.546391 2019] [:error] [pid 12695] [client 192.168.0.45:34270] PHP Fatal error: Maximum execution time of 30 seconds exceeded in /home/osmc/dashticz/vendor/dashticz/ical/helpers/SG_iCal_Freq.php on line 358, referer: http://192.168.0.107/dashticz/index.html
[Wed Oct 30 15:46:27.746396 2019] [:error] [pid 12007] [client 192.168.0.45:34358] PHP Fatal error: Maximum execution time of 30 seconds exceeded in /home/osmc/dashticz/vendor/dashticz/ical/helpers/SG_iCal_Freq.php on line 390, referer: http://192.168.0.107/dashticz/index.html
[Wed Oct 30 15:51:26.586419 2019] [:error] [pid 12541] [client 192.168.0.45:34462] PHP Fatal error: Maximum execution time of 30 seconds exceeded in /home/osmc/dashticz/vendor/dashticz/ical/helpers/SG_iCal_Freq.php on line 363, referer: http://192.168.0.107/dashticz/index.html
[Wed Oct 30 15:56:31.546395 2019] [:error] [pid 12693] [client 192.168.0.45:34590] PHP Fatal error: Maximum execution time of 30 seconds exceeded in /home/osmc/dashticz/vendor/dashticz/ical/helpers/SG_iCal_Freq.php on line 363, referer: http://192.168.0.107/dashticz/index.html
[Wed Oct 30 16:01:24.916391 2019] [:error] [pid 12541] [client 192.168.0.45:34700] PHP Fatal error: Maximum execution time of 30 seconds exceeded in /home/osmc/dashticz/vendor/dashticz/ical/helpers/SG_iCal_Freq.php on line 383, referer: http://192.168.0.107/dashticz/index.html
[Wed Oct 30 16:07:09.416418 2019] [:error] [pid 12374] [client 192.168.0.45:34794] PHP Fatal error: Maximum execution time of 30 seconds exceeded in /home/osmc/dashticz/vendor/dashticz/ical/helpers/SG_iCal_Freq.php on line 254, referer: http://192.168.0.107/dashticz/index.html
[Wed Oct 30 16:11:28.206400 2019] [:error] [pid 12693] [client 192.168.0.45:34890] PHP Fatal error: Maximum execution time of 30 seconds exceeded in /home/osmc/dashticz/vendor/dashticz/ical/helpers/SG_iCal_Freq.php on line 233, referer: http://192.168.0.107/dashticz/index.html
[Wed Oct 30 16:16:27.696438 2019] [:error] [pid 12695] [client 192.168.0.45:34956] PHP Fatal error: Maximum execution time of 30 seconds exceeded in /home/osmc/dashticz/vendor/dashticz/ical/helpers/SG_iCal_Freq.php on line 363, referer: http://192.168.0.107/dashticz/index.html
[Wed Oct 30 16:21:27.556399 2019] [:error] [pid 12541] [client 192.168.0.45:35016] PHP Fatal error: Maximum execution time of 30 seconds exceeded in /home/osmc/dashticz/vendor/dashticz/ical/helpers/SG_iCal_Freq.php on line 363, referer: http://192.168.0.107/dashticz/index.html
[Wed Oct 30 16:40:36.796413 2019] [:error] [pid 12541] [client 192.168.0.46:47956] PHP Fatal error: Maximum execution time of 30 seconds exceeded in /home/osmc/dashticz/vendor/dashticz/ical/helpers/SG_iCal_Freq.php on line 502, referer: http://192.168.0.107/dashticz/index.html
[Wed Oct 30 16:42:02.656459 2019] [:error] [pid 12695] [client 192.168.0.46:48388] PHP Fatal error: Maximum execution time of 30 seconds exceeded in /home/osmc/dashticz/vendor/dashticz/ical/index.php on line 41, referer: http://192.168.0.107/dashticz/index.html
[Wed Oct 30 16:42:32.546405 2019] [:error] [pid 13057] [client 192.168.0.45:35414] PHP Fatal error: Maximum execution time of 30 seconds exceeded in /home/osmc/dashticz/vendor/dashticz/ical/helpers/SG_iCal_Freq.php on line 256, referer: http://192.168.0.107/dashticz/index.html
(END)
Running Domoticz and Dashticz beta on Raspberry Pi OS 32 bit - has anyone had success with 64 bit?

Desktop access from Ubuntu Linux
Lokonli
Posts: 2287
Joined: Monday 29 August 2016 22:40
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Dashticz - Module - Calendar

Post by Lokonli »

tarmacalastair wrote: Wednesday 30 October 2019 18:12 Thanks for looking. Lots of these messages occurring but no other errors. Any help to you?

[Wed Oct 30 15:36:19.366424 2019] [:error] [pid 12541] [client 192.168.0.45:34136] PHP Fatal error: Maximum execution time of 30 seconds exceeded in /home/osmc/dashticz/vendor/dashticz/ical/helpers/SG_iCal_Freq.php on line 233, referer: http://192.168.0.107/dashticz/index.html
[Wed Oct 30 15:41:27.546391 2019] [:error] [pid 12695] [client 192.168.0.45:34270] PHP Fatal error: Maximum execution time of 30 seconds exceeded in /home/osmc/dashticz/vendor/dashticz/ical/helpers/SG_iCal_Freq.php on line 358, referer: http://192.168.0.107/dashticz/index.html
[Wed Oct 30 15:46:27.746396 2019] [:error] [pid 12007] [client 192.168.0.45:34358] PHP Fatal error: Maximum execution time of 30 seconds exceeded in /home/osmc/dashticz/vendor/dashticz/ical/helpers/SG_iCal_Freq.php on line 390, referer: http://192.168.0.107/dashticz/index.html
[Wed Oct 30 15:51:26.586419 2019] [:error] [pid 12541] [client 192.168.0.45:34462] PHP Fatal error: Maximum execution time of 30 seconds exceeded in /home/osmc/dashticz/vendor/dashticz/ical/helpers/SG_iCal_Freq.php on line 363, referer: http://192.168.0.107/dashticz/index.html
[Wed Oct 30 15:56:31.546395 2019] [:error] [pid 12693] [client 192.168.0.45:34590] PHP Fatal error: Maximum execution time of 30 seconds exceeded in /home/osmc/dashticz/vendor/dashticz/ical/helpers/SG_iCal_Freq.php on line 363, referer: http://192.168.0.107/dashticz/index.html
[Wed Oct 30 16:01:24.916391 2019] [:error] [pid 12541] [client 192.168.0.45:34700] PHP Fatal error: Maximum execution time of 30 seconds exceeded in /home/osmc/dashticz/vendor/dashticz/ical/helpers/SG_iCal_Freq.php on line 383, referer: http://192.168.0.107/dashticz/index.html
[Wed Oct 30 16:07:09.416418 2019] [:error] [pid 12374] [client 192.168.0.45:34794] PHP Fatal error: Maximum execution time of 30 seconds exceeded in /home/osmc/dashticz/vendor/dashticz/ical/helpers/SG_iCal_Freq.php on line 254, referer: http://192.168.0.107/dashticz/index.html
[Wed Oct 30 16:11:28.206400 2019] [:error] [pid 12693] [client 192.168.0.45:34890] PHP Fatal error: Maximum execution time of 30 seconds exceeded in /home/osmc/dashticz/vendor/dashticz/ical/helpers/SG_iCal_Freq.php on line 233, referer: http://192.168.0.107/dashticz/index.html
[Wed Oct 30 16:16:27.696438 2019] [:error] [pid 12695] [client 192.168.0.45:34956] PHP Fatal error: Maximum execution time of 30 seconds exceeded in /home/osmc/dashticz/vendor/dashticz/ical/helpers/SG_iCal_Freq.php on line 363, referer: http://192.168.0.107/dashticz/index.html
[Wed Oct 30 16:21:27.556399 2019] [:error] [pid 12541] [client 192.168.0.45:35016] PHP Fatal error: Maximum execution time of 30 seconds exceeded in /home/osmc/dashticz/vendor/dashticz/ical/helpers/SG_iCal_Freq.php on line 363, referer: http://192.168.0.107/dashticz/index.html
[Wed Oct 30 16:40:36.796413 2019] [:error] [pid 12541] [client 192.168.0.46:47956] PHP Fatal error: Maximum execution time of 30 seconds exceeded in /home/osmc/dashticz/vendor/dashticz/ical/helpers/SG_iCal_Freq.php on line 502, referer: http://192.168.0.107/dashticz/index.html
[Wed Oct 30 16:42:02.656459 2019] [:error] [pid 12695] [client 192.168.0.46:48388] PHP Fatal error: Maximum execution time of 30 seconds exceeded in /home/osmc/dashticz/vendor/dashticz/ical/index.php on line 41, referer: http://192.168.0.107/dashticz/index.html
[Wed Oct 30 16:42:32.546405 2019] [:error] [pid 13057] [client 192.168.0.45:35414] PHP Fatal error: Maximum execution time of 30 seconds exceeded in /home/osmc/dashticz/vendor/dashticz/ical/helpers/SG_iCal_Freq.php on line 256, referer: http://192.168.0.107/dashticz/index.html
(END)
It means the php script is running for more than 30 seconds, which is VERY long.

Do you have a lot of recurring appointments in this agenda?
tarmacalastair
Posts: 95
Joined: Wednesday 30 October 2019 14:11
Target OS: Raspberry Pi / ODroid
Domoticz version: beta
Location: Great Britain
Contact:

Re: Dashticz - Module - Calendar

Post by tarmacalastair »

I do have a fair number of recurring appointments, yes, but not all that many.

Not sure if this helps but I've issued a "wget" from the terminal for one of the calendars that loads in Dashticz and the calendar that fails.

Here are the results:

Calendar that loads in Dashticz:
osmc@osmc3a:~$ wget https://calendar.google.com/calendar/ic ... /basic.ics
--2019-10-31 09:57:04-- https://calendar.google.com/calendar/ic ... /basic.ics
Resolving calendar.google.com (calendar.google.com)... 216.58.198.174, 2a00:1450:4009:81b::200e
Connecting to calendar.google.com (calendar.google.com)|216.58.198.174|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [text/calendar]
Saving to: ‘basic.ics’

basic.ics [ <=> ] 23.77K --.-KB/s in 0.02s

2019-10-31 09:57:05 (1.20 MB/s) - ‘basic.ics’ saved [24341]

Calendar that fails in Dashticz:
osmc@osmc3a:~$ wget https://calendar.google.com/calendar/ic ... /basic.ics
--2019-10-31 10:02:52-- https://calendar.google.com/calendar/ic ... /basic.ics
Resolving calendar.google.com (calendar.google.com)... 216.58.204.46, 2a00:1450:4009:81b::200e
Connecting to calendar.google.com (calendar.google.com)|216.58.204.46|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [text/calendar]
Saving to: ‘basic.ics.1’

basic.ics.1 [ <=> ] 489.44K 1.67MB/s in 0.3s

2019-10-31 10:02:53 (1.67 MB/s) - ‘basic.ics.1’ saved [501183]

As you can see the failing calendar downloads fine in 0.3 seconds, compared to 0.2 seconds but it is 20 x the size.

Any other ideas?

Thanks.
Running Domoticz and Dashticz beta on Raspberry Pi OS 32 bit - has anyone had success with 64 bit?

Desktop access from Ubuntu Linux
tarmacalastair
Posts: 95
Joined: Wednesday 30 October 2019 14:11
Target OS: Raspberry Pi / ODroid
Domoticz version: beta
Location: Great Britain
Contact:

Re: Dashticz - Module - Calendar

Post by tarmacalastair »

Right, just done a further test....

I exported all the events from the problem calendar via the Google Calendar web page and imported it into one of my calendars that was nearly empty. Google Calendar import function reported "Imported 1104 out of 1104 events".

I then refreshed Dashticz and then had 2 calendars that showed "Loading...." and failed to load.

I have since removed all my events and added back some test events and once again the calendar started to load again.

Incidentally, I have also tried changing all my recurring events to non-recurring and all the events in the future disappear but when I download the file again using wget, it has only reduced in size by a tiny amount. I imagine that this is because all the events in the past are still in the calendar.

It would be great if we could find a solution to this but if not I might have to load my ics file in a text editor and manually remove the old stuff in order to reduce the file size.

Thanks again.
Running Domoticz and Dashticz beta on Raspberry Pi OS 32 bit - has anyone had success with 64 bit?

Desktop access from Ubuntu Linux
tarmacalastair
Posts: 95
Joined: Wednesday 30 October 2019 14:11
Target OS: Raspberry Pi / ODroid
Domoticz version: beta
Location: Great Britain
Contact:

Re: Dashticz - Module - Calendar

Post by tarmacalastair »

Further news to report:

On the assumption/guess that the calendar was too big to load in Dashticz, I loaded my ical file into Thunderbird (easier to scroll back than Google Calendar and easier to view than the raw text file). From here I saw that my calendar starts properly in May 2011 with regular recurring events from about July 2011.

So, on this basis, I scrolled back in Google Calendar to 2011 and started deleting events, especially recurring ones that are no longer valid. I've only got as far as September 2015 and looked back at my Dashticz screen and magically my calendar has reappeared!

I thought I'd have a look at the new file size so again I used wget from the terminal and now the new basic.ics file is 444kb. So, it's still pretty large, but at least now it is loading.

For now I will continue to see what I can remove to get the file smaller but this might be useful for other people seeing the same issue. Also, if it is possible to do anything in Dashticz to accommodate larger calendars then that would be great.

Cheers.
Running Domoticz and Dashticz beta on Raspberry Pi OS 32 bit - has anyone had success with 64 bit?

Desktop access from Ubuntu Linux
Lokonli
Posts: 2287
Joined: Monday 29 August 2016 22:40
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Dashticz - Module - Calendar

Post by Lokonli »

tarmacalastair wrote: Thursday 31 October 2019 13:43 Further news to report:

On the assumption/guess that the calendar was too big to load in Dashticz, I loaded my ical file into Thunderbird (easier to scroll back than Google Calendar and easier to view than the raw text file). From here I saw that my calendar starts properly in May 2011 with regular recurring events from about July 2011.

So, on this basis, I scrolled back in Google Calendar to 2011 and started deleting events, especially recurring ones that are no longer valid. I've only got as far as September 2015 and looked back at my Dashticz screen and magically my calendar has reappeared!

I thought I'd have a look at the new file size so again I used wget from the terminal and now the new basic.ics file is 444kb. So, it's still pretty large, but at least now it is loading.

For now I will continue to see what I can remove to get the file smaller but this might be useful for other people seeing the same issue. Also, if it is possible to do anything in Dashticz to accommodate larger calendars then that would be great.

Cheers.
Thanks for analyzing.
Probably the size itself is not such a big issue. I guess the handling of the recurring events goes wrong. It seems some recurring events will introduce an infinite loop.
Lokonli
Posts: 2287
Joined: Monday 29 August 2016 22:40
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Dashticz - Module - Calendar

Post by Lokonli »

tarmacalastair wrote: Thursday 31 October 2019 13:43 Further news to report:

On the assumption/guess that the calendar was too big to load in Dashticz, I loaded my ical file into Thunderbird (easier to scroll back than Google Calendar and easier to view than the raw text file). From here I saw that my calendar starts properly in May 2011 with regular recurring events from about July 2011.

So, on this basis, I scrolled back in Google Calendar to 2011 and started deleting events, especially recurring ones that are no longer valid. I've only got as far as September 2015 and looked back at my Dashticz screen and magically my calendar has reappeared!

I thought I'd have a look at the new file size so again I used wget from the terminal and now the new basic.ics file is 444kb. So, it's still pretty large, but at least now it is loading.

For now I will continue to see what I can remove to get the file smaller but this might be useful for other people seeing the same issue. Also, if it is possible to do anything in Dashticz to accommodate larger calendars then that would be great.

Cheers.
I can't reproduce the problem, so testing is a bit difficult.
I made some changes to one of the php files. Could you test it?
You can download the file from here:
https://github.com/lokonli/dashticz/blo ... /index.php

Save this file in the vendor/dashticz/ical folder.
tarmacalastair
Posts: 95
Joined: Wednesday 30 October 2019 14:11
Target OS: Raspberry Pi / ODroid
Domoticz version: beta
Location: Great Britain
Contact:

Re: Dashticz - Module - Calendar

Post by tarmacalastair »

Wow, that's fantastic, it works now, thank you!

I had already modified my real calendar by taking out lots of old recurring events so in order to test your change I restored the backup copy I had made to my test calendar. I have a test Dashticz page with 3 calendars now:
  • Calendar 1 - the one that used to fail with lots of old events removed
  • Calendar 2 - test calendar with restored backup of 1st calendar, including the deleted events
  • Calendar 3 - a smaller calendar that has always worked
Now, with the old index.php I see this for the 3 calendars:
  • Loading.... but then loads after about about 1-2 seconds
  • Loading.... nothing ever appears (500 error appears in debugger)
  • Calendar appears immediately
When I replace with your new index,php, the results are:
  • Loading.... then loads after 1-2 seconds
  • Loading.... then appears just a tiny bit slower than calendar 1
  • Calendar appears immediately
Very grateful to you for your help, many thanks.
Running Domoticz and Dashticz beta on Raspberry Pi OS 32 bit - has anyone had success with 64 bit?

Desktop access from Ubuntu Linux
Lokonli
Posts: 2287
Joined: Monday 29 August 2016 22:40
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Dashticz - Module - Calendar

Post by Lokonli »

tarmacalastair wrote: Sunday 03 November 2019 11:59 Wow, that's fantastic, it works now, thank you!

I had already modified my real calendar by taking out lots of old recurring events so in order to test your change I restored the backup copy I had made to my test calendar. I have a test Dashticz page with 3 calendars now:
  • Calendar 1 - the one that used to fail with lots of old events removed
  • Calendar 2 - test calendar with restored backup of 1st calendar, including the deleted events
  • Calendar 3 - a smaller calendar that has always worked
Now, with the old index.php I see this for the 3 calendars:
  • Loading.... but then loads after about about 1-2 seconds
  • Loading.... nothing ever appears (500 error appears in debugger)
  • Calendar appears immediately
When I replace with your new index,php, the results are:
  • Loading.... then loads after 1-2 seconds
  • Loading.... then appears just a tiny bit slower than calendar 1
  • Calendar appears immediately
Very grateful to you for your help, many thanks.
Thanks!

I will merge the change into beta.
User avatar
HansieNL
Posts: 964
Joined: Monday 28 September 2015 15:13
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Dashticz - Module - Calendar

Post by HansieNL »

If a calendar is empty only the icon is shown in the calendar block. Is it possible to auto hide that calendar completely until there are new appointments in the calendar?
Blah blah blah
tarmacalastair
Posts: 95
Joined: Wednesday 30 October 2019 14:11
Target OS: Raspberry Pi / ODroid
Domoticz version: beta
Location: Great Britain
Contact:

Re: Dashticz - Module - Calendar

Post by tarmacalastair »

Calendar all working nicely for me now thanks to your fix in the latest beta.

However....I have only just noticed today that not all the times are in the correct order. For tomorrow (29/11), my 3 appointments are listed incorrectly - see screenshot.
Dashticz-calendar-times.png
Dashticz-calendar-times.png (42.85 KiB) Viewed 6712 times
The event in the middle is a recurring weekly event, while the other two are not. Or is it perhaps ordered by the finishing times rather than the start times?

Also, less importantly I notice that the weekdays and the times line up nicely but the dates do not. See especially the first two dates in the screenshot. Just a thought for another time!

Thanks.
Running Domoticz and Dashticz beta on Raspberry Pi OS 32 bit - has anyone had success with 64 bit?

Desktop access from Ubuntu Linux
Lokonli
Posts: 2287
Joined: Monday 29 August 2016 22:40
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Dashticz - Module - Calendar

Post by Lokonli »

tarmacalastair wrote: Thursday 28 November 2019 19:34 Calendar all working nicely for me now thanks to your fix in the latest beta.

However....I have only just noticed today that not all the times are in the correct order. For tomorrow (29/11), my 3 appointments are listed incorrectly - see screenshot.
Dashticz-calendar-times.png
The event in the middle is a recurring weekly event, while the other two are not. Or is it perhaps ordered by the finishing times rather than the start times?

Also, less importantly I notice that the weekdays and the times line up nicely but the dates do not. See especially the first two dates in the screenshot. Just a thought for another time!

Thanks.
Yes, they are sorted by the finishing time. There was a reason for that, but I forgot ...
I'll check whether the dates can be sorted on the start time.

For the alignment: You mean 29/11 is a bit left compared to 28/11?

The date string consists of 'Thu 28/11'. It's one column. Fri is a bit shorter than Thu: that explains the shift. Not so easy to change, because it depends on the date format string. I'll have a look at it as well.
tarmacalastair
Posts: 95
Joined: Wednesday 30 October 2019 14:11
Target OS: Raspberry Pi / ODroid
Domoticz version: beta
Location: Great Britain
Contact:

Re: Dashticz - Module - Calendar

Post by tarmacalastair »

Thanks for looking at this. Yes the alignment I was querying is as you say and it's not all that important but nice to have, if it's easy to fix.

I'm not sure if this has been reported before but I've just noticed that one of my appointment times is showing in Dashticz an hour earlier than in Google Calendar and on my Android phone.
calendar-2019-12-02 Dashticz.png
calendar-2019-12-02 Dashticz.png (99.05 KiB) Viewed 6682 times
Google Calendar  Schedule .png
Google Calendar Schedule .png (72.9 KiB) Viewed 6682 times
This is a recurring event that was set up before the clocks changed at the end of October so could that be the reason. Earlier in this thread (https://www.domoticz.com/forum/viewtopi ... ng#p227426) I removed nearly all of my recurring appointments just after the clocks changed so I can't check other recurring appointments for the same problem.

I think I can probably work around this problem by deleting the recurring event and setting it up again but I thought this should be logged in case it affects lots of people.
Running Domoticz and Dashticz beta on Raspberry Pi OS 32 bit - has anyone had success with 64 bit?

Desktop access from Ubuntu Linux
mvdheide01
Posts: 19
Joined: Monday 12 November 2018 19:05
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: Belgium
Contact:

Re: Dashticz - Module - Calendar

Post by mvdheide01 »

Actually you can, but you need to use a fixed width font.
Screenshot 2019-12-02_18-59-50-964.png
Screenshot 2019-12-02_18-59-50-964.png (41.3 KiB) Viewed 6679 times
Spoiler: show
custom.css

/*calendar*/

.items div {
font-family: Courier New,Courier,Lucida Sans Typewriter,Lucida Typewriter,monospace;
font-weight: medium;
font-style: normal;
font-size: 14pt;
letter-spacing: 0.5pt;
margin: 0px;
margin-left: 12px;
padding-top:0px;
height: auto !important; /* default height=75px */
}

.block_clock h1, .block_clock h4 {
margin-left: 0px !important;
}
h1 {
font-size: 100px;
}
JaOfBa wrote: Saturday 17 August 2019 11:34 Goodday,

is there a way to get the text in the agenda aligned, so times aligned, agenda item aligned?

IMG_20190817_112812.jpg
Raspberry Pi, RFXCOM - RFXtrx433 USB 433.92MHz Transceiver, OpenZWave USB
tarmacalastair
Posts: 95
Joined: Wednesday 30 October 2019 14:11
Target OS: Raspberry Pi / ODroid
Domoticz version: beta
Location: Great Britain
Contact:

Re: Dashticz - Module - Calendar

Post by tarmacalastair »

Hmm, thanks but I've just tried that and it made no difference - the font does not change in any way at all. I've created a custom.css with nothing else in it just in case something else was interfering but still no change to the font in the calendar.
Running Domoticz and Dashticz beta on Raspberry Pi OS 32 bit - has anyone had success with 64 bit?

Desktop access from Ubuntu Linux
mvdheide01
Posts: 19
Joined: Monday 12 November 2018 19:05
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: Belgium
Contact:

Re: Dashticz - Module - Calendar

Post by mvdheide01 »

Strange.
I am not shure if it is needed but i have changed the right on the file so at least that will not be the issue. Maybe that helps?
You can try in a webbrowser to use the developer tools to inspect element and see if you can find your custom.css so you can see if it is used.
There you can also try some changes (wil only last in your browser)
Screenshot 2019-12-03_16-33-29-763.png
Screenshot 2019-12-03_16-33-29-763.png (178.92 KiB) Viewed 6669 times
tarmacalastair wrote: Tuesday 03 December 2019 13:42 Hmm, thanks but I've just tried that and it made no difference - the font does not change in any way at all. I've created a custom.css with nothing else in it just in case something else was interfering but still no change to the font in the calendar.
Raspberry Pi, RFXCOM - RFXtrx433 USB 433.92MHz Transceiver, OpenZWave USB
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 »

mvdheide01 wrote: Monday 02 December 2019 19:05 Actually you can, but you need to use a fixed width font.

Screenshot 2019-12-02_18-59-50-964.png


Thanks. Works like a charm. :)
Running latest BETA on a Pi-3 | Toon® Thermostat (rooted) | Hue | Tuya | IKEA tradfri | Dashticz V3 on Lenovo Huawei Tablet | Conbee
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest