Page 2 of 4

Re: Dashticz Calendar - Features, Fixes & Updates

Posted: Friday 17 April 2020 12:06
by geertvercamer
even the old version is not working anymore for me...
No none of my calendars is loading anymore.
Even with debug on in C:\xampp\htdocs\dashticz-beta\vendor\dashticz\ical\index.php

Re: Dashticz Calendar - Features, Fixes & Updates

Posted: Friday 17 April 2020 12:32
by Lokonli
geertvercamer wrote: Friday 17 April 2020 12:06 even the old version is not working anymore for me...
No none of my calendars is loading anymore.
Even with debug on in C:\xampp\htdocs\dashticz-beta\vendor\dashticz\ical\index.php
Maybe first update to latest beta.
Then check whether Dashticz recognizes your PHP version.
It's reported in Dashticz, via settings icon (upper right) on the info tab.

Then check that you are using the internal CORS proxy (remove CORS_URL setting from your CONFIG.js)

Re: Dashticz Calendar - Features, Fixes & Updates

Posted: Friday 17 April 2020 15:59
by geertvercamer
- updated to latest
- Dashticz info reads version 3.4.3 beta
- Dashticz info detects php 7.3.0
- CORS_URL is not in config.js

I'm focussing on the new block definition now, as it is much cleaner and more clear:

Code: Select all

blocks['myCalendar'] = {
	type: 'calendar',
	layout: 1,
	icalurl: 'https://calendar.google.com/calendar/ical/........../basic.ics',
	maxitems: 6,
	weeks: 5,
	lastweek: false,
	isoweek: true
}

columns[3]['blocks'] = ['myCalendar', 'garbage'];
nothing...


in the console no errors, this warning however:

DevTools failed to load SourceMap: Could not load content for https://my_local_domain_set_in_hosts_file:444/dashticz-beta/ical.min.js.map: HTTP error: status code 404, net::ERR_HTTP_RESPONSE_CODE_FAILURE

Re: Dashticz Calendar - Features, Fixes & Updates

Posted: Friday 17 April 2020 16:51
by Lokonli
geertvercamer wrote: Friday 17 April 2020 15:59 - updated to latest
- Dashticz info reads version 3.4.3 beta
- Dashticz info detects php 7.3.0
- CORS_URL is not in config.js

I'm focussing on the new block definition now, as it is much cleaner and more clear:

Code: Select all

blocks['myCalendar'] = {
	type: 'calendar',
	layout: 1,
	icalurl: 'https://calendar.google.com/calendar/ical/........../basic.ics',
	maxitems: 6,
	weeks: 5,
	lastweek: false,
	isoweek: true
}

columns[3]['blocks'] = ['myCalendar', 'garbage'];
nothing...


in the console no errors, this warning however:

DevTools failed to load SourceMap: Could not load content for https://my_local_domain_set_in_hosts_file:444/dashticz-beta/ical.min.js.map: HTTP error: status code 404, net::ERR_HTTP_RESPONSE_CODE_FAILURE
The part 'my_local_domain_set_in_hosts_file:444' looks a bit strange to me.
Do you see more load errors on the network tab of DevTools?

If you open the link of icalurl directly in a browser do you then receive an ics file?

Re: Dashticz Calendar - Features, Fixes & Updates

Posted: Friday 17 April 2020 17:00
by Jimster
Also try to delete your cookies and browser history. I had an issue that half of my blocks didn't appear on my tablet. Clearing them solved it.

Re: Dashticz Calendar - Features, Fixes & Updates

Posted: Friday 17 April 2020 20:00
by clinkadink
If you are getting a 404 in devtools, it means 'file/page not found'. As already mentioned, I would try pasting the icalurl into the browser directly. If your ics file downloads, then it rules that out.

Re: Dashticz Calendar - Features, Fixes & Updates

Posted: Saturday 18 April 2020 11:03
by geertvercamer
@jimster, did that. Several times even

@clinkadink, the ics files download ok. As they did on version 4.3.1, nothing has changed there

@lonkoli, I have 'depatine54.be 127.0.0.1' set in my hosts file
So I have the same error if I go to http://127.0.0.1/dashticz-beta/

DevTools failed to load SourceMap: Could not load content for http://127.0.0.1/dashticz-beta/ical.min.js.map: HTTP error: status code 404, net::ERR_HTTP_RESPONSE_CODE_FAILURE


I did see this error:
unknown string block {type: "myCalendar", c: 3, key: "myCalendar", $mountPoint: jQuery.fn.init(1), mountPoint: "#block_42", …}

Re: Dashticz Calendar - Features, Fixes & Updates

Posted: Saturday 18 April 2020 11:42
by Lokonli
geertvercamer wrote: Saturday 18 April 2020 11:03 @jimster, did that. Several times even

@clinkadink, the ics files download ok. As they did on version 4.3.1, nothing has changed there

@lonkoli, I have 'depatine54.be 127.0.0.1' set in my hosts file
So I have the same error if I go to http://127.0.0.1/dashticz-beta/

DevTools failed to load SourceMap: Could not load content for http://127.0.0.1/dashticz-beta/ical.min.js.map: HTTP error: status code 404, net::ERR_HTTP_RESPONSE_CODE_FAILURE


I did see this error:
unknown string block {type: "myCalendar", c: 3, key: "myCalendar", $mountPoint: jQuery.fn.init(1), mountPoint: "#block_42", …}
ok, that last error gives an indication.

In your CONFIG.js you should have something like:

Code: Select all

blocks['myCalendar'] = {
   type: 'calendar',
   icalurl: '....'
}

columns[3] = {
   blocks: [ 'myCalendar', ...]
}
So the type in the block definition must be 'calendar'.
The names in columns.blocks and blocks must match.

Re: Dashticz Calendar - Features, Fixes & Updates

Posted: Saturday 18 April 2020 11:51
by geertvercamer
Thanks, but I thought I had that covered:

Code: Select all

blocks['myCalendar'] = {
	type: 'calendar',
	layout: 1,
	icalurl: 'https://calendar.google.com/calendar/ical/***/basic.ics',
	maxitems: 6,
	weeks: 5,
	lastweek: false,
	isoweek: true
}

columns[3]['blocks'] = ['myCalendar', 'garbage', 289];

Re: Dashticz Calendar - Features, Fixes & Updates

Posted: Saturday 18 April 2020 13:23
by Lokonli
Can you double check that you are running the latest beta? Update with:

Code: Select all

git checkout beta
git pull
No errors should be reported.

(I still have to create the 3.4.4 release.)

Re: Dashticz Calendar - Features, Fixes & Updates

Posted: Saturday 18 April 2020 18:27
by geertvercamer
@Lokonli, I always download the zip and unpack it. Done that (twice)

Re: Dashticz Calendar - Features, Fixes & Updates

Posted: Saturday 18 April 2020 18:39
by clinkadink
geertvercamer wrote: Saturday 18 April 2020 11:03 unknown string block {type: "myCalendar", c: 3, key: "myCalendar", $mountPoint: jQuery.fn.init(1), mountPoint: "#block_42", …}
This is a strange one. As it appears from the error above that your calendar block has an incorrect type set. Please can you double check, so we can rule this out?

Incorrect:

Code: Select all

type: 'myCalendar',
Correct:

Code: Select all

type: 'calendar',
Thanks ;)

Re: Dashticz Calendar - Features, Fixes & Updates

Posted: Saturday 18 April 2020 20:05
by Lokonli
geertvercamer wrote:@Lokonli, I always download the zip and unpack it. Done that (twice)
In this case downloading the zip will be insufficient because then you won't get the latest changes.
I'll try to create the new release tonight.


Sent from my SM-A320FL using Tapatalk


Re: Dashticz Calendar - Features, Fixes & Updates

Posted: Sunday 19 April 2020 0:30
by geertvercamer
blocks.js

line 55: handleStringBlock(cols['blocks'], myblockselector, c);

in my config cols['blocks'] = ['xxx', 'garbage', 289];
I thought one should provide the name or the index.
Apparently, this is not always the case, it is a fixed type apparently. Isn't this a problem. Suppose I want my calendar to the left and my girlfriend's to the right. If the name can't be set, this is impossible, I think.
Correct me if I'm wrong.

Modified config to cols['blocks'] = ['calendar', 'garbage', 289];
In that case, I get a block on the screen with the calendar icon, no data

Modified config to cols['blocks'] = [i'calendar', 'garbage', 289];
In that case, I get a block on the screen with a different calendar icon, no data, but the text 'loading'

Re: Dashticz Calendar - Features, Fixes & Updates

Posted: Sunday 19 April 2020 8:28
by Lokonli
geertvercamer wrote: Sunday 19 April 2020 0:30 blocks.js

Code: Select all

line 55: handleStringBlock(cols['blocks'][b], myblockselector, c);
in my config cols['blocks'] = ['xxx', 'garbage', 289];
I thought one should provide the name or the index.
Apparently, this is not always the case, it is a fixed type apparently. Isn't this a problem. Suppose I want my calendar to the left and my girlfriend's to the right. If the name can't be set, this is impossible, I think.
Correct me if I'm wrong.

Modified config to cols['blocks'] = ['calendar', 'garbage', 289];
In that case, I get a block on the screen with the calendar icon, no data

Modified config to cols['blocks'] = [i'calendar', 'garbage', 289];
In that case, I get a block on the screen with a different calendar icon, no data, but the text 'loading'
You can show two different calendars in two different block, or combine multiple calendars into one block, or display one calendar multiple times with different settings.

I think your CONFIG.js is not completely correct. Probably you should not use 'cols'. Try with something as follows:

Code: Select all

blocks['calendar1'] = {
    type:'calendar',
    icalurl: 'https://calendar.google.com/calendar/ical/.../basic.ics',
    layout: 1,
    title: 'First',
    width:6
}

blocks['calendar2'] = {
    type:'calendar',
    icalurl: 'https://calendar.google.com/calendar/ical/.../1352b72845/basic.ics',
    layout: 1,
    title: 'Second',
    width:6
}



columns[10] = {
    blocks: [
        'calendar1', 'calendar2'
    ],
    width: 12
}

or post your CONFIG.js and we'll have a look.

Re: Dashticz Calendar - Features, Fixes & Updates

Posted: Sunday 19 April 2020 14:46
by clinkadink
calFormat is for the old calendar.
layout is for the new calendar block.

Re: Dashticz Calendar - Features, Fixes & Updates

Posted: Sunday 19 April 2020 16:19
by clinkadink
geertvercamer wrote: Saturday 18 April 2020 11:03 unknown string block {type: "myCalendar", c: 3, key: "myCalendar", $mountPoint: jQuery.fn.init(1), mountPoint: "#block_42", …}
This also happens when you place a block above this line in CONFIG.js.

Code: Select all

blocks = {}

Re: Dashticz Calendar - Features, Fixes & Updates

Posted: Monday 20 April 2020 22:45
by geertvercamer
I am not using cols, it's in the Javascript.
The function takes the name and assumes it's a type...


my config:

Code: Select all

var config = {}
config['domoticz_ip'] = 'https://depatine54.domoticz.com'; //'http://192.168.1.11:8090';
config['user_name'] = '';
config['pass_word'] = '';
config['app_title'] = 'Dashticz';
config['room_plan'] = '0';
config['domoticz_refresh'] = '5';
config['dashticz_refresh'] = '60';
config['default_news_url'] = 'http://deredactie.be/cm/vrtnieuws';
config['news_scroll_after'] = '20';
config['theme'] = 'default';
config['background_image'] = 'img/bg2.jpg';
config['standby_after'] = '0';
config['auto_swipe_back_to'] = '1';
config['auto_swipe_back_after'] = '20';
config['auto_slide_pages'] = '0';
config['slide_effect'] = 'coverflow';
config['standard_graph'] = 'month';
config['language'] = 'nl_NL';
config['timeformat'] = 'DD/MM/YY HH:mm';
config['calendarformat'] = 'dd DD/MM HH:mm';
config['calendarlanguage'] = 'Nl-Be';
config['boss_stationclock'] = 'RedBoss';
config['edit_mode'] = 0;
config['idx_moonpicture'] = '0';
config['longfonds_zipcode'] = '';
config['longfonds_housenumber'] = '';
config['switch_horizon'] = '0';
config['sonarr_url'] = '';
config['sonarr_apikey'] = '';
config['sonarr_maxitems'] = '';
config['loginEnabled'] = 0;
config['disable_update_check'] = 0;
config['no_rgb'] = 0;
config['auto_positioning'] = 0;
config['use_favorites'] = 0;
config['disable_googleanalytics'] = 1;
config['last_update'] = 0;
config['hide_topbar'] = 0;
config['security_button_icons'] = 0;
config['edit_mode'] = 0;
config['hide_seconds'] = 0;
config['hide_seconds_stationclock'] = 0;
config['use_fahrenheit'] = 0;
config['use_beaufort'] = 0;
config['translate_windspeed'] = 1;
config['static_weathericons'] = 1;
config['hide_mediaplayer'] = 0;
config['standby_call_url'] = '';
config['standby_call_url_on_end'] = '';
config['blink_color'] = '255, 255, 255, 1';


var blocks = {};
blocks['cal'] = {
type: 'calendar',
layout: 1,
icalurl: 'https://calendar.google.com/calendar/ical/ge77/basic.ics',
maxitems: 6,
weeks: 5,
lastweek: false,
isoweek: true
}
var columns = {};
columns[1] = {width: 12};
columns[1]['blocks'] = ['cal'];

var screens = {};
screens['default'] = {};
screens['default']['maxwidth'] = 1920;
screens['default']['maxheight'] = 1080;

screens['default'][1] = {};
screens['default'][1]['background'] = 'brushedAlluminium.jpg';
screens['default'][1]['columns'] = [1];

Re: Dashticz Calendar - Features, Fixes & Updates

Posted: Monday 20 April 2020 22:56
by Jimster
What if you remove weeks: 5, ? That is only for layout 2.

Re: Dashticz Calendar - Features, Fixes & Updates

Posted: Monday 20 April 2020 23:34
by clinkadink
Correct.