Dashticz Calendar - Features, Fixes & Updates

Dashticz, alternative dashboard based on HTML, CSS, jQuery

Moderators: leecollings, htilburgs, robgeerts

User avatar
clinkadink
Posts: 417
Joined: Tuesday 31 December 2019 1:15
Target OS: Linux
Domoticz version: 2020.2
Location: Swindon, UK
Contact:

Dashticz Calendar - Features, Fixes & Updates

Post by clinkadink »

There is a new calendar block in the latest beta, updated today, 3.4.3.

This has not replaced the existing one for the time being. But it is available if you want to try the new features.

Image

The new calendar block follows the same look and feel as most other blocks. It uses "type" to tell Dashticz that its a calendar block. The new calendar block can be configured as follows:

Code: Select all

blocks['my_calendar'] = {
	type: 'calendar',
	maxitems: 5, 
	layout: 0,
	url: 'https://calendar.google.com/calendar/embed?src=_REDACTED_&ctz=Europe%2FLondon',
	icalurl: 'https://calendar.google.com/calendar/ical/_REDACTED_/private-123456789/basic.ics',
	holidayurl: 'https://www.calendarlabs.com/ical-calendar/ics/75/UK_Holidays.ics',	
	weeks: 5,
	lastweek: false,	
	isoweek: false,
	width: 12
} 
The "calFormat" parameter is now called "layout", it has 3 options:
  • layout: 0 - lists an agenda of events in text format
  • layout: 1 - lists an agenda of events in table format
  • layout: 2 - displays a traditional calendar in table format
Other parameters include the following:
  • url - this can be set on the block or in settings['calendarurl']. Whenever you click the calendar block whilst setting layout 0 or 1, an embedded gmail calendar will display in a popup dialog (modal). Alternatively, when layout 2 is set, when clicking on any event, it will display a popup with the event details and provide a link to the calendar (e.g. gmail).
  • icalurl - this can accept either a single url (string) or one or more calendar objects (example below).

Code: Select all

blocks['gmail_calendars'] = {
	type: 'calendar',
	layout: 2,
	icalurl: { 
	   Personal: {
	      ics: 'https://calendar.google.com/calendar/ical/_REDACTED_/private-123456789/basic.ics',
	      color: 'blue'
	   },
	   Business: { 
	      ics: 'https://calendar.google.com/calendar/ical/_REDACTED_/private-123456789/basic.ics',
	      color: 'purple'
	   }
	},
	holidayurl: 'https://www.calendarlabs.com/ical-calendar/ics/75/UK_Holidays.ics',	
	maxitems: 100, 
	weeks: 5,
	lastweek: true,	
	isoweek: false,
	width: 12
} 
  • holidayurl - this allows users to add public holidays (or other public events) to their calendar.
  • maxitems - this limits the number of events that you want to display. When setting layout 2, I set it to 100 to allow for 35 days. Adjust to your own preference.
  • weeks - this is how many weeks, or rows of 7 days, you wish to display when layout 2 is selected.
  • lastweek - if set to true, this will show the previous week and any events from that week. It accepts true or false. Default is false.
  • isoweek - if set to true, the week will start on a Monday. If false, it will start on a Sunday. Accepts true or false. Default is false.
One or more calendar blocks can be added, both old and new format.

The layout set to 0 will display this:
Image

The layout set to 1 will display this:
Image

The layout set to 2 will display this:
Image

When the user clicks on any events, it opens details about that event. If the event details is already HTML, it will render the HTML event body, including font, tags, anchors/links, etc. The contents of the popup is scrollable. Also included in the popup is a link to source calendar (bottom left), if one has been set in config.js. On the bottom right of the popup, the event location is displayed (if this exists). When clicked, it will take the user to the location on Google maps.

Image

As always, its a beta, any feedback is appreciated ;)
"UI is the saddle, the stirrups, & the reins. UX is the feeling you get being able to ride the horse."
jake
Posts: 742
Joined: Saturday 30 May 2015 22:40
Target OS: Raspberry Pi / ODroid
Domoticz version: beta
Contact:

Re: Dashticz Calendar - Features, Fixes & Updates

Post by jake »

Cool. I have the original calendar on my homescreen, layout type 0 in your new approach.

The configuration of your new setup is more logical and I now use layout type 1. Looks nicer.

One point of improvement for me: the text in the original calendar was increased in font size in custom.css with:

Code: Select all

/* Calendar font modifications with icon active */
.col-xs-10.items { 	font-size: 13px; 
} 

/* Calendar font modifications with NO icon active */ 
.col-xs-12.items { 	font-size: 13px; 
}
For me it is always magic how this works and therefore I can't think of a way how to increase font size on the new calendar. Please help
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 Calendar - Features, Fixes & Updates

Post by EdwinK »

Cool.

I can get it working for a single calendar, but not for multiple one's. I think I've got the wrong url's for those. So going to spend Easter to fix it (I hope)
Running latest BETA on a Pi-3 | Toon® Thermostat (rooted) | Hue | Tuya | IKEA tradfri | Dashticz V3 on Lenovo Huawei Tablet | Conbee
Lokonli
Posts: 2260
Joined: Monday 29 August 2016 22:40
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Dashticz Calendar - Features, Fixes & Updates

Post by Lokonli »

jake wrote: Friday 10 April 2020 22:21 Cool. I have the original calendar on my homescreen, layout type 0 in your new approach.

The configuration of your new setup is more logical and I now use layout type 1. Looks nicer.

One point of improvement for me: the text in the original calendar was increased in font size in custom.css with:

Code: Select all

/* Calendar font modifications with icon active */
.col-xs-10.items { 	font-size: 13px; 
} 

/* Calendar font modifications with NO icon active */ 
.col-xs-12.items { 	font-size: 13px; 
}
For me it is always magic how this works and therefore I can't think of a way how to increase font size on the new calendar. Please help
I think the most easy solution is to add the following to custom.css:

Code: Select all

.calendar {
     font-size: 150%
 }
 
jake
Posts: 742
Joined: Saturday 30 May 2015 22:40
Target OS: Raspberry Pi / ODroid
Domoticz version: beta
Contact:

Re: Dashticz Calendar - Features, Fixes & Updates

Post by jake »

Lokonli wrote:
jake wrote: Friday 10 April 2020 22:21 Cool. I have the original calendar on my homescreen, layout type 0 in your new approach.

The configuration of your new setup is more logical and I now use layout type 1. Looks nicer.

One point of improvement for me: the text in the original calendar was increased in font size in custom.css with:

Code: Select all

/* Calendar font modifications with icon active */
.col-xs-10.items { 	font-size: 13px; 
} 

/* Calendar font modifications with NO icon active */ 
.col-xs-12.items { 	font-size: 13px; 
}
For me it is always magic how this works and therefore I can't think of a way how to increase font size on the new calendar. Please help
I think the most easy solution is to add the following to custom.css:

Code: Select all

.calendar {
     font-size: 150%
 }
 
That got me going. Seeing the example, I gave it my own twist, meeting the same layout as previously, except that there the dates were not in bold font, only the calendar text was.

Code: Select all

.calendar {
font-size: 13px;/*150%*/
font-weight: bold;
}
This is very much acceptable and also layout=1 looks much more structured than the old calendar. Thanks for that! (I'm using 2 calendars, the same as in previous calendar)
Jimster
Posts: 82
Joined: Tuesday 04 February 2020 11:42
Target OS: Raspberry Pi / ODroid
Domoticz version: 2020.2
Location: The Netherlands
Contact:

Re: Dashticz Calendar - Features, Fixes & Updates

Post by Jimster »

Is it possible to disable the popup? I didn't set the url parameter, like in your 2nd example, but there's still a popup when I click the block.
Can I set an icon? I tried icon: 'fas fa-calendar', but this doesn't work.
User avatar
clinkadink
Posts: 417
Joined: Tuesday 31 December 2019 1:15
Target OS: Linux
Domoticz version: 2020.2
Location: Swindon, UK
Contact:

Re: Dashticz Calendar - Features, Fixes & Updates

Post by clinkadink »

Jimster wrote: Saturday 11 April 2020 13:18 Is it possible to disable the popup? I didn't set the url parameter, like in your 2nd example, but there's still a popup when I click the block.
Can I set an icon? I tried icon: 'fas fa-calendar', but this doesn't work.
I am updating the new calendar block presently. I will do my best to include this ;)
"UI is the saddle, the stirrups, & the reins. UX is the feeling you get being able to ride the horse."
TankySpanky
Posts: 43
Joined: Wednesday 06 February 2019 18:54
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Location: Belgium
Contact:

Re: Dashticz Calendar - Features, Fixes & Updates

Post by TankySpanky »

Hello,

I have the calendar as a layout 2 and that works, but does not looks like the "example" page you show.
I have the calendar from my wife and me combined and that works also good.
But no headers above it only the dates ?

Just a small part of the screen :)
dashticz calendar 12-04-2020.png
dashticz calendar 12-04-2020.png (124.69 KiB) Viewed 2858 times
ty in advance
Raspberry Pi 3 B+ & Domoticz Beta & Dashticz Beta = Headache :)
But it keeps you van the straat
User avatar
clinkadink
Posts: 417
Joined: Tuesday 31 December 2019 1:15
Target OS: Linux
Domoticz version: 2020.2
Location: Swindon, UK
Contact:

Re: Dashticz Calendar - Features, Fixes & Updates

Post by clinkadink »

TankySpanky wrote: Sunday 12 April 2020 8:59 Hello,

I have the calendar as a layout 2 and that works, but does not looks like the "example" page you show.
I have the calendar from my wife and me combined and that works also good.
But no headers above it only the dates ?

Just a small part of the screen :)

dashticz calendar 12-04-2020.png

ty in advance
Please could you show your calendar block config?
Also, are you using any other calendar blocks, if so, are they old or new calendar blocks?
What calendar ics are your adding to the icalurl? E.g. Gmail?
What happens when you try to access the icalurl directly in a browser, does it down the ics file?
"UI is the saddle, the stirrups, & the reins. UX is the feeling you get being able to ride the horse."
TankySpanky
Posts: 43
Joined: Wednesday 06 February 2019 18:54
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Location: Belgium
Contact:

Re: Dashticz Calendar - Features, Fixes & Updates

Post by TankySpanky »

Hello,
I have the "old" block on the front page
And made a 3rth page for the "new block"
---------------------------------------------------
var blocks = {}

blocks['gmail_calendars'] = {
type: 'calendar',
layout: 2,
icalurl: {
Personal: {
ics: 'https://calendar.google.com/calendar/ic ... /basic.ics',
color: 'yellow'
},
Business: {
ics: 'https://calendar.google.com/calendar/ic ... /basic.ics',
color: 'pink'
}
},
holidayurl: 'https://www.calendarlabs.com/ical-calen ... lidays.ics',
maxitems: 100,
weeks: 5,
lastweek: true,
isoweek: false,
width: 12
}

And yes both gmail ICS files will be downloaded when i paste the urls in a browser window
Raspberry Pi 3 B+ & Domoticz Beta & Dashticz Beta = Headache :)
But it keeps you van the straat
User avatar
clinkadink
Posts: 417
Joined: Tuesday 31 December 2019 1:15
Target OS: Linux
Domoticz version: 2020.2
Location: Swindon, UK
Contact:

Re: Dashticz Calendar - Features, Fixes & Updates

Post by clinkadink »

TankySpanky wrote: Sunday 12 April 2020 9:40 Hello,
I have the "old" block on the front page
And made a 3rth page for the "new block"
Spoiler: show

Code: Select all

var blocks = {}

blocks['gmail_calendars'] = {
	type: 'calendar',
	layout: 2,
	icalurl: { 
	   Personal: {
	      ics: 'https://calendar.google.com/calendar/ical/[email protected]/private-XXXXXXXXXXXXXX8ae9015e0e14/basic.ics',
	      color: 'yellow'
	   },
	   Business: { 
	      ics: 'https://calendar.google.com/calendar/ical/[email protected]/private-XXXXXXXXXXXXXXX503831f725/basic.ics',
	      color: 'pink'
	   }
	},
	holidayurl: 'https://www.calendarlabs.com/ical-calendar/ics/75/BE_Holidays.ics',	
	maxitems: 100, 
	weeks: 5,
	lastweek: true,	
	isoweek: false,
	width: 12
}
And yes both gmail ICS files will be downloaded when i paste the urls in a browser window
I have just tried your block (above) with my calendar urls, and it works and displays correctly. I also have the old calendar block loaded fine next to it, so there are no issues with using both old and new. I suggest checking the following:
- See if there are any errors in DevTools (press F12 in Chrome and click on the console tab, any errors will be reported there).
- Check your Config.js file for any syntax issues. You can post a redacted version here if you want me to check it.
"UI is the saddle, the stirrups, & the reins. UX is the feeling you get being able to ride the horse."
TankySpanky
Posts: 43
Joined: Wednesday 06 February 2019 18:54
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Location: Belgium
Contact:

Re: Dashticz Calendar - Features, Fixes & Updates

Post by TankySpanky »

Oke thanx,

I will check it and if i cant find anything i hope you can : )

Aad
Raspberry Pi 3 B+ & Domoticz Beta & Dashticz Beta = Headache :)
But it keeps you van the straat
User avatar
clinkadink
Posts: 417
Joined: Tuesday 31 December 2019 1:15
Target OS: Linux
Domoticz version: 2020.2
Location: Swindon, UK
Contact:

Re: Dashticz Calendar - Features, Fixes & Updates

Post by clinkadink »

Jimster wrote: Saturday 11 April 2020 13:18 Is it possible to disable the popup? I didn't set the url parameter, like in your 2nd example, but there's still a popup when I click the block.
Can I set an icon? I tried icon: 'fas fa-calendar', but this doesn't work.
The calendar has now been updated in the latest beta:

- If the url or config["calendarurl"] is not set, then no popup will show.
- Icons can now be shown using the "icon" parameter for layouts 0 and 1
- Ttitle can now be shown using the "title" parameter for layouts 0 and 1
"UI is the saddle, the stirrups, & the reins. UX is the feeling you get being able to ride the horse."
Jimster
Posts: 82
Joined: Tuesday 04 February 2020 11:42
Target OS: Raspberry Pi / ODroid
Domoticz version: 2020.2
Location: The Netherlands
Contact:

Re: Dashticz Calendar - Features, Fixes & Updates

Post by Jimster »

Great!
jake
Posts: 742
Joined: Saturday 30 May 2015 22:40
Target OS: Raspberry Pi / ODroid
Domoticz version: beta
Contact:

Re: Dashticz Calendar - Features, Fixes & Updates

Post by jake »

I have a block title above my calendar and therefore don't need a single calendar icon taking so much 'real estate' on the the dashboard. How can I turn this icon off in the table version? I can't find documentation yet on the 'read the docs'. Is that correct?

My wife pointed me out that, although the calendar is correct, it still shows items from the past, in my case starting from 7-4-20. The old calendar, with the same icals doesn't do that.

EDIT: the post below this one has the code for the calendar in it. After reading the last configuration part, my brain clicked:

last week: true -> false fixed the calendar items from 7-4 and showed 13-4 as the first one

adding another line in the config below/above " lastweek: false, " with the text: " icon: false, " fixed my icon question.
Last edited by jake on Sunday 12 April 2020 20:45, edited 1 time in total.
Derik
Posts: 1601
Joined: Friday 18 October 2013 23:33
Target OS: Raspberry Pi / ODroid
Domoticz version: BETA
Location: Arnhem/Nijmegen Nederland
Contact:

Re: Dashticz Calendar - Features, Fixes & Updates

Post by Derik »

Nice... Something new....

Only not showing up?
I install php only i cannot see the calendars...

Code: Select all

blocks['gmail_calendars'] = {
	type: 'calendar',
	layout: 1,
	icalurl: { 
	   Personal: {
	      ics: 'https://calendar.google.com/my setup /private-5d5xxxxxxx239/basic.ics',
	      color: 'blue'
	   },
	   Business: { 
	      ics: 'https://calendar.google.com/calendar/ical/_REDACTED_/private-123456789/basic.ics',
	      color: 'purple'
	   }
	},
	holidayurl: 'https://www.calendarlabs.com/ical-calendar/ics/75/UK_Holidays.ics',	
	maxitems: 100, 
	weeks: 5,
	lastweek: true,	
	isoweek: false,
	width: 12
} 
In the columns:

Code: Select all

'gmail_calendars',
Do i need to install mpore packages?
User avatar
clinkadink
Posts: 417
Joined: Tuesday 31 December 2019 1:15
Target OS: Linux
Domoticz version: 2020.2
Location: Swindon, UK
Contact:

Re: Dashticz Calendar - Features, Fixes & Updates

Post by clinkadink »

I take it you have the latest beta installed?
"UI is the saddle, the stirrups, & the reins. UX is the feeling you get being able to ride the horse."
yvonnehx1
Posts: 5
Joined: Monday 13 April 2020 0:34
Target OS: Raspberry Pi / ODroid
Domoticz version: 2020.2
Contact:

Re: Dashticz Calendar - Features, Fixes & Updates

Post by yvonnehx1 »

I've implemented the new Calendar block definition and this is working great (thanks for all the hard work by the way). The only thing is that when I use layout 1 the holidays don't show up. They do show up when using layout 2. Is this per design?
User avatar
HansieNL
Posts: 957
Joined: Monday 28 September 2015 15:13
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Dashticz Calendar - Features, Fixes & Updates

Post by HansieNL »

yvonnehx1 wrote: Monday 13 April 2020 0:39 I've implemented the new Calendar block definition and this is working great (thanks for all the hard work by the way). The only thing is that when I use layout 1 the holidays don't show up. They do show up when using layout 2. Is this per design?
Yes. If you wanna have your holidays in other calendar than layout 2 you can do that by adding it as a normal calendar.
Blah blah blah
yvonnehx1
Posts: 5
Joined: Monday 13 April 2020 0:34
Target OS: Raspberry Pi / ODroid
Domoticz version: 2020.2
Contact:

Re: Dashticz Calendar - Features, Fixes & Updates

Post by yvonnehx1 »

Thanks HansieNL, I'll do that.
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest