Dashticz - Module - Calendar

Dashticz, alternative dashboard based on HTML, CSS, jQuery

Moderators: leecollings, htilburgs, robgeerts

sammyke007
Posts: 204
Joined: Monday 08 May 2017 20:48
Target OS: Raspberry Pi / ODroid
Domoticz version: 2022.1
Location: Belgium
Contact:

Re: Dashticz - Module - Calendar

Post by sammyke007 »

TapNL wrote: Tuesday 04 February 2020 20:46 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?
You can combine more than 2 calendars without a problem! You probably missed a "," or so at the end...
Here's my example:

Code: Select all

calendars.sammy = { maxitems: 5, icalurl: 'https://calendar.google.com/calendar/ical/PRIVE1/basic.ics' }
calendars.vero = { maxitems: 5, icalurl: 'https://calendar.google.com/calendar/ical/PRIVE2/basic.ics' }
calendars.dr = { maxitems: 5, icalurl: 'https://calendar.google.com/calendar/ical/PRIVE3/basic.ics' }
calendars.fran = { calFormat: 1, maxitems: 2, icalurl: 'https://vblcal.wisseq.eu/vblcalsync/calsync.aspx?guid=BVBL1197G10002' }
calendars.vic = { calFormat: 1, maxitems: 2, icalurl: 'http://www.foot24.be/nl/ical/kvk-svelta-melsele/2g9r-60.ics' }

calendars.combined = {}
calendars.combined.maxitems = 5;
calendars.combined.calFormat = 1;
calendars.combined.calendars = [
   { color:'white',calendar:calendars.sammy },
   { color:'#ccc',calendar:calendars.vero },
   { color:'#00f',calendar:calendars.dr }
]
calendars.combined.url = 'https://calendar.google.com/calendar';
I combined the first 3 calendars in 1 block. The last two calendars are shown apart.
Maybe share yours and I'll try to help you out!
TapNL
Posts: 30
Joined: Monday 24 April 2017 21:52
Target OS: -
Domoticz version:
Contact:

Re: Dashticz - Module - Calendar

Post by TapNL »

Okay, not sure what I did wrong, yesterday. I spend some time on it, it must have been a "," or something.
Got it working, now. Thanks for looking into it and for your support!
toro
Posts: 47
Joined: Wednesday 09 August 2017 23:05
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Dashticz - Module - Calendar

Post by toro »

Rob67ert wrote: Friday 17 January 2020 16:46 Is there a way to only show the start time of a calendar event?
I don't think it is an option right now.
But I also would like that, especially for the F1 calendar.
I worked around it by changing the calender.js file (I have only 1 calendar)
F1_calendar.png
F1_calendar.png (15.78 KiB) Viewed 2085 times


Change the line almost at the bottom of calendar.js:

Code: Select all

Change: 
	var widget = '<div style="color:' + item1['color'] + '">' + item1['startdate'] + "" + item1['enddate'] + ' - <b>' + item1['title'] + '</b></div>';
to:
	var widget = '<div style="color:' + item1['color'] + '">' + item1['startdate'] + "" + ' : <b>' + item1['title'] + '</b></div>';
Of course, you need to do this again after every update.
Maybe it is possible to do a feature request for this.
Lokonli
Posts: 2262
Joined: Monday 29 August 2016 22:40
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Dashticz - Module - Calendar

Post by Lokonli »

I'll add it to the feature request list.

It would be great if some people would like to contribute to Dashticz as well. In case you have some programming skills, please contact me, and I'll show you how to contribute to the Dashticz community.
Lokonli
Posts: 2262
Joined: Monday 29 August 2016 22:40
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Dashticz - Module - Calendar

Post by Lokonli »

toro wrote: Thursday 06 February 2020 0:38
Rob67ert wrote: Friday 17 January 2020 16:46 Is there a way to only show the start time of a calendar event?
I don't think it is an option right now.
But I also would like that, especially for the F1 calendar.
I worked around it by changing the calender.js file (I have only 1 calendar)

F1_calendar.png


Change the line almost at the bottom of calendar.js:

Code: Select all

Change: 
	var widget = '<div style="color:' + item1['color'] + '">' + item1['startdate'] + "" + item1['enddate'] + ' - <b>' + item1['title'] + '</b></div>';
to:
	var widget = '<div style="color:' + item1['color'] + '">' + item1['startdate'] + "" + ' : <b>' + item1['title'] + '</b></div>';
Of course, you need to do this again after every update.
Maybe it is possible to do a feature request for this.
Merged into beta.
set the 'startonly' block parameter to display the start time only.
toro
Posts: 47
Joined: Wednesday 09 August 2017 23:05
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Dashticz - Module - Calendar

Post by toro »

Lokonli, this is great!
I did update the beta and added startonly:1 to the calendar line in config.js.
It works like a charm. There is now way I could fix this myself, so thank you very much.
A very usefull addition to the calendar
GilbertvH
Posts: 18
Joined: Tuesday 23 June 2020 11:01
Target OS: NAS (Synology & others)
Domoticz version:
Contact:

Re: Dashticz - Module - Calendar

Post by GilbertvH »

Even though I tried all kind of solutions I still can't seem to get my Google calendar in my dashboard. It just says "Laden..." (Loading... for non-Dutch people). Here is my config.js script. Maybe not the most decent one but it works (except for the calendar):

Code: Select all

var config = {}
config['language'] = 'nl_NL';
config['domoticz_ip'] = 'http://192.168.178.24:8085';
config['app_title'] = 'xxx';
config['domoticz_refresh'] = '5';
config['dashticz_refresh'] = '60';
config['default_news_url'] = 'https://cors-anywhere.herokuapp.com/http://www.nu.nl/rss';
config['news_scroll_after'] = '4';
config['timeformat'] = 'DD-MM-YY HH:mm';
config['calendarformat'] = 'dd DD.MM HH:mm';
config['calendarlanguage'] = 'nl_NL';
config['calendarurl'] = 'https://calendar.google.com/calendar/ical/xxx.calendar.google.com/public/basic.ics';
config['last_update'] = 0;
config['hide_topbar'] = 1;

//OWM parameters
config['owm_api'] = 'xxx';
config['owm_city'] = 'xxx';
config['owm_name'] = 'xxx';
config['owm_country'] = 'nl';
config['owm_lang'] = 'nl';
config['owm_cnt'] = '4';
config['owm_min'] = true;
config['owm_days'] = true;


//Vuilnis Module
	config['garbage_company'] = 'deafvalapp';
	config['garbage_icalurl'] = 0;
	config['garbage_zipcode'] = xxxx;
	config['garbage_street'] = 'xxx';
	config['garbage_housenumber'] = 'xx';
	config['garbage_maxitems'] = '3';
	config['garbage_width'] = '12';
	config['garbage_hideicon'] = 0;
	config['garbage_use_names'] = true;
	config['garbage_use_colors'] = true;
	config['garbage_icon_use_colors'] = true;
	config['garbage_use_cors_prefix'] = false;
	config['garbage'] = {
		gft: {kliko: 'green', 		code: '#375b23', name: 'GFT', icon: 'img/garbage/kliko_green.png'},
		pmd: {kliko: 'orange', 		code: '#db5518', name: 'PLASTIC', icon: 'img/garbage/kliko_orange.png'},
		rest: {kliko: 'grey', 		code: '#7CFC00', name: 'Restafval', icon: 'img/garbage/kliko_green.png'},
		papier: {kliko: 'blue', 	code: '#153477', name: 'Papier', icon: 'img/garbage/kliko_blue.png'},
		kca: {kliko: 'red', 		code: '#b21807', name: 'Chemisch afval', icon: 'img/garbage/kliko_red.png'},
		brown: {kliko: 'brown', 	code: '#7c3607', name: 'Bruin', icon: 'img/garbage/kliko_brown.png'},
		black: {kliko: 'black', 	code: '#000000', name: 'Zwart', icon: 'img/garbage/kliko_black.png'},
		milieu: {kliko: 'yellow', 	code: '#f9e231', name: 'Geel', icon: 'img/garbage/kliko_yellow.png'},
		kerstboom: {kliko: 'green', code: '#375b23', name: 'Kerstboom', icon: 'img/garbage/tree.png'},}

var _STREAMPLAYER_TRACKS = [
{"track":1,"name":"Q-music","file":"http://icecast-qmusic.cdp.triple-it.nl/Qmusic_nl_live_96.mp3"},
{"track":2,"name":"Slam! NonStop","file":"http://stream.radiocorp.nl/web10_mp3"},
];

var calendars = {}
	calendars.private = { maxitems: 10, icalurl: 'https://calendar.google.com/calendar/ical/xxx.calendar.google.com/public/basic.ics' }
	calendars.formule1 = { maxitems: 15, icalurl: 'https://calendar.google.com/calendar/ical/ekqk1nbdusr1baon1ic42oeeik%40group.calendar.google.com/public/basic.ics' }
	
// --------------------------------------------------------------------------------------------
// Frames
// --------------------------------------------------------------------------------------------

var frames = {}
frames.weather = {
  frameurl:"//forecast.io/embed/#lat=xxx&lon=xxx&name=xxx&color=#00aaff&font=Helvetica&fontColor=#ffffff&units=si&text-color=#fff&",
  height: 250     //height of the block in pixels
}

frames.buienradar = {
  frameurl:"https://api.buienradar.nl/image/1.0/RadarMapNL?w=256&h=256",
    height: 256     //height of the block in pixels
	}

// --------------------------------------------------------------------------------------------
// Blocks
// --------------------------------------------------------------------------------------------

var blocks = {}
blocks['blocktitle_1'] = {}
blocks['blocktitle_1']['type'] = 'blocktitle';
blocks['blocktitle_1']['title'] = 'Temperatuur';

blocks['blocktitle_2'] = {}
blocks['blocktitle_2']['type'] = 'blocktitle';
blocks['blocktitle_2']['title'] = 'Stroomverbruik';

blocks['blocktitle_3'] = {}
blocks['blocktitle_3']['type'] = 'blocktitle';
blocks['blocktitle_3']['title'] = 'Netto Stroom / Zonnepanelen';

blocks['blocktitle_4'] = {}
blocks['blocktitle_4']['type'] = 'blocktitle';
blocks['blocktitle_4']['title'] = 'Gasverbruik';

blocks['blocktitle_5'] = {}
blocks['blocktitle_5']['type'] = 'blocktitle';
blocks['blocktitle_5']['title'] = 'Zonnepanelen';

blocks['blocktitle_6'] = {}
blocks['blocktitle_6']['type'] = 'blocktitle';
blocks['blocktitle_6']['title'] = 'Afval';

blocks['blocktitle_7'] = {}
blocks['blocktitle_7']['type'] = 'blocktitle';
blocks['blocktitle_7']['title'] = 'Waterlekkage sensor';

blocks['blocktitle_8'] = {}
blocks['blocktitle_8']['type'] = 'blocktitle';
blocks['blocktitle_8']['title'] = 'Sonos';

blocks['blocktitle_9'] = {}
blocks['blocktitle_9']['type'] = 'blocktitle';
blocks['blocktitle_9']['title'] = 'Verlichting';

blocks['blocktitle_10'] = {}
blocks['blocktitle_10']['type'] = 'blocktitle';
blocks['blocktitle_10']['title'] = 'Smart Plugs';

blocks['blocktitle_11'] = {}
blocks['blocktitle_11']['type'] = 'blocktitle';
blocks['blocktitle_11']['title'] = 'Gezinsagenda';


// --------------------------------------------------------------------------------------------
// Status devices
// --------------------------------------------------------------------------------------------

//Zwembadpomp
blocks[60] = {}; 
blocks[60]['title'] = 'Zwembadpomp';
blocks[60]['show_lastupdate'] = false;
blocks[60]['width'] = 5
blocks[60]['hide_data'] = true
blocks[60]['icon'] = 'fas fa-water'

//TV Lamp
blocks[68] = {}; 
blocks[68]['title'] = 'Lamp TV';
blocks[68]['show_lastupdate'] = false;
blocks[68]['width'] = 5
blocks[68]['hide_data'] = true
blocks[68]['icon'] = 'far fa-lightbulb'

//Lamp dressoir
blocks[65] = {}; 
blocks[65]['title'] = 'Lamp dressoir';
blocks[65]['show_lastupdate'] = false;
blocks[65]['width'] = 5
blocks[65]['hide_data'] = true
blocks[65]['icon'] = 'far fa-lightbulb'

//Alle lampen uit
blocks['s1'] = {}; 
blocks['s1']['title'] = 'Alle lampen aan / uit';
blocks['s1']['show_lastupdate'] = false;
blocks['s1']['width'] = 5
blocks['s1']['hide_data'] = true
blocks['s1']['icon'] = 'fas fa-power-off'

//Waterlekkage sensor
blocks[35] = {}; 
blocks[35]['title'] = 'Water Leak Detector';
blocks[35]['show_lastupdate'] = false;
blocks[35]['width'] = 5
blocks[35]['hide_data'] = true
blocks[35]['icon'] = 'fas fa-faucet'

var columns = {}
columns[1] = {}
columns[1]['blocks'] = ['blocktitle_1',29,31,2,'blocktitle_2',44,45,'blocktitle_4',40,'blocktitle_5',42,43,'blocktitle_3',15_1, 'graph_36']
columns[1]['width'] = 4;

columns[2] = {}
columns[2]['blocks'] = ['blocktitle_11',calendars.formule1,calendars.private,frames.weather,'blocktitle_7',35,'blocktitle_9',65,68,'s1','blocktitle_10',60] 
columns[2]['width'] = 5;

columns[3] = {}
columns[3]['blocks'] = [frames.buienradar,'streamplayer','blocktitle_6','garbage','blocktitle_8',50,51,52]
columns[3]['width'] = 3;

var columns_standby = {}
columns_standby[1] = {}
columns_standby[1]['blocks'] = ['clock','currentweather_big_owm']
columns_standby[1]['width'] = 12;

var screens = {}
screens[1] = {}
screens[1]['background'] = 'bg10.jpg';
screens[1]['columns'] = [1,2,3]

blocks['calendars.private'] = {
   type: 'calendar',
   layout: 1,
   icalurl: 'https://calendar.google.com/calendar/ical/xxxx.calendar.google.com/public/basic.ics'
   
}


blocks['graph_36'] = {
    title: 'Totaaloverzicht',
    devices: [36],
    graph: ['line','bar','bar'],
    custom : {
         "last 2 weeks": {
            range: 'month',
            filter: '14 days',
            data: {
                Netto: 'd.v_36+d.v2_36-d.r1_36-d.r2_36',
                Verbruik: 'd.v_36+d.v2_36',
                Opgewekt: '-d.r1_36-d.r2_36'
            }
        },
       "last day": {
            range: 'day',
            filter: '24 hours',
            data: {
                Netto: 'd.v_36+d.v2_36-d.r1_36-d.r2_36',
                Verbruik: 'd.v_36+d.v2_36',
                Opgewekt: '-d.r1_36-d.r2_36'
            }
        },
    },
    legend: true,
    datasetColors:['blue','red','yellow']
}

Image

EDIT: Fixed! I found: Open ./vendor/dashticz/ical/index.php. Change the debug variable from 0 to 1 on line 42
Attachments
Dashticz.JPG
Dashticz.JPG (169.37 KiB) Viewed 1875 times
Lokonli
Posts: 2262
Joined: Monday 29 August 2016 22:40
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Dashticz - Module - Calendar

Post by Lokonli »

With debug=1 the 'old' ical module is used, which probably gives some issues on recurring events. But if it's working for you that's fine of course!

Still, I would like to know why the new ical module is not working. Could you do a small test?
Set debug back to 0. Open DevTools (F12). Refresh Dashticz. Filter in DevTools network tab on 'ical' and post the result of the network request here. That will help me in the debugging.
GilbertvH
Posts: 18
Joined: Tuesday 23 June 2020 11:01
Target OS: NAS (Synology & others)
Domoticz version:
Contact:

Re: Dashticz - Module - Calendar

Post by GilbertvH »

Lokonli wrote: Wednesday 01 July 2020 17:39 With debug=1 the 'old' ical module is used, which probably gives some issues on recurring events. But if it's working for you that's fine of course!

Still, I would like to know why the new ical module is not working. Could you do a small test?
Set debug back to 0. Open DevTools (F12). Refresh Dashticz. Filter in DevTools network tab on 'ical' and post the result of the network request here. That will help me in the debugging.
I'm not sure if I post the right values but here we go... Filter on ical on Network tab gives me 3 results:

Code: Select all

RuntimeException: Can't open filehttps://calendar.google.com/calendar/ical/*knip*.calendar.google.com/public/basic.ics for reading in /volume1/web/dashticz/vendor/dashticz/ical/vendor/om/icalparser/src/IcalParser.php:54
Stack trace:
#0 /volume1/web/dashticz/vendor/dashticz/ical/index.php(65): om\IcalParser->parseFile('https://calenda...')
#1 {main}

Code: Select all

RuntimeException: Can't open filehttps://calendar.google.com/calendar/ical/[email protected]/public/basic.ics for reading in /volume1/web/dashticz/vendor/dashticz/ical/vendor/om/icalparser/src/IcalParser.php:54
Stack trace:
#0 /volume1/web/dashticz/vendor/dashticz/ical/index.php(65): om\IcalParser->parseFile('https://calenda...')
#1 {main}
Third code is too big for forum so I put it in a file.
debug.txt
(78.78 KiB) Downloaded 89 times
Lokonli
Posts: 2262
Joined: Monday 29 August 2016 22:40
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Dashticz - Module - Calendar

Post by Lokonli »

GilbertvH wrote: Monday 06 July 2020 11:06
Lokonli wrote: Wednesday 01 July 2020 17:39 With debug=1 the 'old' ical module is used, which probably gives some issues on recurring events. But if it's working for you that's fine of course!

Still, I would like to know why the new ical module is not working. Could you do a small test?
Set debug back to 0. Open DevTools (F12). Refresh Dashticz. Filter in DevTools network tab on 'ical' and post the result of the network request here. That will help me in the debugging.
I'm not sure if I post the right values but here we go... Filter on ical on Network tab gives me 3 results:

Code: Select all

RuntimeException: Can't open filehttps://calendar.google.com/calendar/ical/*knip*.calendar.google.com/public/basic.ics for reading in /volume1/web/dashticz/vendor/dashticz/ical/vendor/om/icalparser/src/IcalParser.php:54
Stack trace:
#0 /volume1/web/dashticz/vendor/dashticz/ical/index.php(65): om\IcalParser->parseFile('https://calenda...')
#1 {main}

Code: Select all

RuntimeException: Can't open filehttps://calendar.google.com/calendar/ical/[email protected]/public/basic.ics for reading in /volume1/web/dashticz/vendor/dashticz/ical/vendor/om/icalparser/src/IcalParser.php:54
Stack trace:
#0 /volume1/web/dashticz/vendor/dashticz/ical/index.php(65): om\IcalParser->parseFile('https://calenda...')
#1 {main}
Third code is too big for forum so I put it in a file.debug.txt
The third code is not relevant.

The first two indicate a reading error. I've tried the F1 calendar on my system, and it's working.

You are running the latest Dashticz master (or beta)?

You've installed Dashticz on a Synology NAS? Did you enable 'curl' and 'openssl' PHP extensions in the Synology PHP configuration page?
GilbertvH
Posts: 18
Joined: Tuesday 23 June 2020 11:01
Target OS: NAS (Synology & others)
Domoticz version:
Contact:

Re: Dashticz - Module - Calendar

Post by GilbertvH »

Lokonli wrote: Monday 06 July 2020 21:18
GilbertvH wrote: Monday 06 July 2020 11:06
Lokonli wrote: Wednesday 01 July 2020 17:39 With debug=1 the 'old' ical module is used, which probably gives some issues on recurring events. But if it's working for you that's fine of course!

Still, I would like to know why the new ical module is not working. Could you do a small test?
Set debug back to 0. Open DevTools (F12). Refresh Dashticz. Filter in DevTools network tab on 'ical' and post the result of the network request here. That will help me in the debugging.
I'm not sure if I post the right values but here we go... Filter on ical on Network tab gives me 3 results:

Code: Select all

RuntimeException: Can't open filehttps://calendar.google.com/calendar/ical/*knip*.calendar.google.com/public/basic.ics for reading in /volume1/web/dashticz/vendor/dashticz/ical/vendor/om/icalparser/src/IcalParser.php:54
Stack trace:
#0 /volume1/web/dashticz/vendor/dashticz/ical/index.php(65): om\IcalParser->parseFile('https://calenda...')
#1 {main}

Code: Select all

RuntimeException: Can't open filehttps://calendar.google.com/calendar/ical/[email protected]/public/basic.ics for reading in /volume1/web/dashticz/vendor/dashticz/ical/vendor/om/icalparser/src/IcalParser.php:54
Stack trace:
#0 /volume1/web/dashticz/vendor/dashticz/ical/index.php(65): om\IcalParser->parseFile('https://calenda...')
#1 {main}
Third code is too big for forum so I put it in a file.debug.txt
The third code is not relevant.

The first two indicate a reading error. I've tried the F1 calendar on my system, and it's working.

You are running the latest Dashticz master (or beta)?

You've installed Dashticz on a Synology NAS? Did you enable 'curl' and 'openssl' PHP extensions in the Synology PHP configuration page?
You rock! I already enabled 'curl' but not 'openssl'. That was the solution! Thanks!
Lokonli
Posts: 2262
Joined: Monday 29 August 2016 22:40
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Dashticz - Module - Calendar

Post by Lokonli »

Glad to know it works. Openssl is required for the https connections.

Sent from my SM-A320FL using Tapatalk

FreakNL
Posts: 5
Joined: Friday 14 August 2020 14:37
Target OS: Windows
Domoticz version:
Contact:

Re: Dashticz - Module - Calendar

Post by FreakNL »

For me, the calendar just keeps loading....

My Apache error log states:

[Fri Aug 14 14:25:16.220630 2020] [php7:notice] [pid 1532:tid 2064] [client 192.168.0.108:59352] PHP Notice: Undefined index: DESCRIPTION in D:\\websites\blabla\\dashticz-master-1eopzet\\vendor\\dashticz\\ical\\index.php on line 81, referer: http://www.xxxxxxx.nl/dashticz-master-1eopzet/
[Fri Aug 14 14:26:26.108974 2020] [php7:notice] [pid 1532:tid 2072] [client 192.168.0.108:59423] PHP Notice: Undefined index: history in D:\\websites\blabla\\Dashticz-Beta\\vendor\\dashticz\\ical\\index.php on line 37, referer: http://www.xxxxxxx.nl/dashticz-beta/
[Fri Aug 14 14:26:26.171458 2020] [php7:notice] [pid 1532:tid 2028] [client 192.168.0.108:59417] PHP Notice: Undefined index: history in D:\\websites\blabla\\Dashticz-Beta\\vendor\\dashticz\\ical\\index.php on line 37, referer: http://www.xxxxxxx.nl/dashticz-beta/
[Fri Aug 14 14:27:02.365002 2020] [php7:notice] [pid 1532:tid 2028] [client 127.0.0.1:55755] PHP Notice: Undefined index: history in D:\\websites\blabla\\dashticz-master-1eopzet\\vendor\\dashticz\\ical\\index.php on line 37, referer: http://www.xxxxxxx.nl/dashticz-master-1eopzet/
[Fri Aug 14 14:31:26.111392 2020] [php7:notice] [pid 1532:tid 2072] [client 192.168.0.108:59675] PHP Notice: Undefined index: history in D:\\websites\blabla\\Dashticz-Beta\\vendor\\dashticz\\ical\\index.php on line 37, referer: http://www.xxxxxxx.nl/dashticz-beta/
[Fri Aug 14 14:31:26.236409 2020] [php7:notice] [pid 1532:tid 2028] [client 192.168.0.108:59676] PHP Notice: Undefined index: history in D:\\websites\blabla\\Dashticz-Beta\\vendor\\dashticz\\ical\\index.php on line 37, referer: http://www.xxxxxxx.nl/dashticz-beta/
[Fri Aug 14 14:32:02.372755 2020] [php7:notice] [pid 1532:tid 2072] [client 127.0.0.1:55873] PHP Notice: Undefined index: history in D:\\websites\blabla\\dashticz-master-1eopzet\\vendor\\dashticz\\ical\\index.php on line 37, referer: http://www.xxxxxxx.nl/dashticz-master-1eopzet/
[Fri Aug 14 14:36:26.639462 2020] [php7:notice] [pid 1532:tid 2064] [client 192.168.0.108:59944] PHP Notice: Undefined index: history in D:\\websites\blabla\\Dashticz-Beta\\vendor\\dashticz\\ical\\index.php on line 37, referer: http://www.xxxxxxx.nl/dashticz-beta/
[Fri Aug 14 14:36:26.701981 2020] [php7:notice] [pid 1532:tid 2072] [client 192.168.0.108:59943] PHP Notice: Undefined index: history in D:\\websites\blabla\\Dashticz-Beta\\vendor\\dashticz\\ical\\index.php on line 37, referer: http://www.xxxxxxx.nl/dashticz-beta/
[Fri Aug 14 14:37:02.374358 2020] [php7:notice] [pid 1532:tid 2064] [client 127.0.0.1:55995] PHP Notice: Undefined index: history in D:\\websites\blabla\\dashticz-master-1eopzet\\vendor\\dashticz\\ical\\index.php on line 37, referer: http://www.xxxxxxx.nl/dashticz-master-1eopzet/

I don't know how to proceed...

XML and Curl is loaded in PHP....

I'm on Windows btw...

Running both beta and master....




my (test) config:

var calendars = {}
calendars.me = { maxitems: 10,
icon:'far fa-lightbulb',
icalurl: 'http://www.foot24.be/nl/ical/kvk-svelta ... g9r-60.ics'
}


calendars.f1 = {
maxitems: 6,
url: 'https://www.f1calendar.com/#!/timezone/Europe-Amsterdam',
icalurl: 'http://www.f1calendar.com/download/f1-c ... arm-20.ics',
calFormat: 1
}


..

columns[2] = {};
columns[2]['blocks'] = ['bt_1',17,269,18,19,271,342,564,570,521,255,'bt_4',262,282,calendars.me,calendars.f1];
columns[2]['width'] = 5;



/edit:"
Just installed apache in ubuntu

sudo apt-get update
sudo apt-get install apache2 php php-xml php-curl libapache2-mod-php
sudo systemctl restart apache2

Now I have the F1 calender working! Will continue to work on this then.
riko
Posts: 90
Joined: Saturday 22 August 2020 13:36
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Dashticz - Module - Calendar

Post by riko »

htilburgs wrote: Sunday 21 May 2017 10:44 I've made a combined calendar, Icon doesn't work, but the css for larger font does, it is:

Code: Select all

.col-xs-12.items {
   font-size: 15px;
}
I am trying to adjust the font size of my calendar with a combined agenda (two google calendar agendas and a holidays calendar) by using the above line in my css. But this is not working. Any ideas solutions?

This is the code for the calendar:

Code: Select all

blocks['my_calendar'] = {
        type: 'calendar',
        maxitems: 5,
        layout: 1,
        url: 'https://calendar.google.com/calendar/u/0/r',
        icalurl: {
                        Gezamenlijk: {
                                ics: 'https://calendar.google.com/calendar/ical/xx%40gmail.com/private-xx/basic.ics',
                                color: 'white'
                        },
                        School: {
                                ics: 'https://calendar.google.com/calendar/ical/xx.google.com/private-xx/basic.ics',
                                color: '#e6e6d1'
                        }
                }, 
        holidayurl: 'https://www.calendarlabs.com/ical-calendar/ics/75/NL_Holidays.ics',
        startonly: true,
        weeks: 5,
        lastweek: false,
        isoweek: false,
        width: 12,
        fixAllDay: true,
        //title: 'Agenda',
};
User avatar
HansieNL
Posts: 957
Joined: Monday 28 September 2015 15:13
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Dashticz - Module - Calendar

Post by HansieNL »

Can you try if the following code works for you:

Code: Select all

[data-id='my_calendar'] .dt_content {
   font-size: 15px;
}
Blah blah blah
riko
Posts: 90
Joined: Saturday 22 August 2020 13:36
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Dashticz - Module - Calendar

Post by riko »

HansieNL wrote: Thursday 10 November 2022 16:46 Can you try if the following code works for you:

Code: Select all

[data-id='my_calendar'] .dt_content {
   font-size: 15px;
}
Yes, this one works! Thanks
Krenstik
Posts: 45
Joined: Saturday 13 June 2020 12:51
Target OS: NAS (Synology & others)
Domoticz version:
Contact:

Re: Dashticz - Module - Calendar

Post by Krenstik »

last couple days I miss google cal.

All calendars show without appointments. Default: 'Geen afspraken'

Any other with same issue?
Lokonli
Posts: 2262
Joined: Monday 29 August 2016 22:40
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Dashticz - Module - Calendar

Post by Lokonli »

Krenstik wrote: Sunday 15 January 2023 18:04 last couple days I miss google cal.

All calendars show without appointments. Default: 'Geen afspraken'

Any other with same issue?
Mine is working.

Can you open DevTools by pressing F12. Refresh Dashticz.
In the DevTools Network tab filter on 'index.php'
You should see the google network request.

Click on the network request, tab 'Preview'
Any information there? Can you post it here?
Krenstik
Posts: 45
Joined: Saturday 13 June 2020 12:51
Target OS: NAS (Synology & others)
Domoticz version:
Contact:

Re: Dashticz - Module - Calendar

Post by Krenstik »

Two calendars, and I do not understand why:

infoMessage('Calendar not found', calendar.ics);
}
console.error('Error in response from calendar with icalurl ' + url);

I regenerate link for my one but same result.....
Last edited by Krenstik on Monday 16 January 2023 0:10, edited 1 time in total.
Krenstik
Posts: 45
Joined: Saturday 13 June 2020 12:51
Target OS: NAS (Synology & others)
Domoticz version:
Contact:

Re: Dashticz - Module - Calendar

Post by Krenstik »

my fault, missing php and apache....
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests