Page 14 of 23
Re: Dashticz - Module - Calendar
Posted: Tuesday 20 February 2018 13:13
by Cletus
Indeed! I tried the following:
Internal IP from Internal PC on port 8080 (http) works
FQDN from Internal PC on port 8080 (http) works
FQDN from Internal PC on port 443 (https) does not work
Probably because dashticz.nl is http? I am using domoticz with https and official certificate as i prefer https over http without any safety warnings
is there a way to get this working or does this require @robgeerts to change the dashticz.nl url to https?
Re: Dashticz - Module - Calendar
Posted: Tuesday 20 February 2018 13:29
by DewGew
Cletus wrote: ↑Tuesday 20 February 2018 13:13
Indeed! I tried the following:
Internal IP from Internal PC on port 8080 (http) works
FQDN from Internal PC on port 8080 (http) works
FQDN from Internal PC on port 443 (https) does not work
Probably because dashticz.nl is http? I am using domoticz with https and official certificate as i prefer https over http without any safety warnings
is there a way to get this working or does this require @robgeerts to change the dashticz.nl url to https?
I started an issue on github. @robgeerts have to take a look at this. But he seems busy nowdays ..
Re: Dashticz - Module - Calendar
Posted: Tuesday 20 February 2018 16:15
by geertvercamer
weird.
My dashticz is working fine after modifying the calendar.js to use the dashticz.nl version.
However, when I launch curl
http://dashticz.nl/.... on a raspberry pi, there's a 404 error. When launching in Chrome on W10, I get the data...???
Re: Dashticz - Module - Calendar
Posted: Wednesday 21 February 2018 8:09
by Timmi1993
Hi,
I edited the code again. It still doesn't work. No matter if internal or external, no matter if formula or something else, only loading.....
Do you use calendars. combined?
Re: Dashticz - Module - Calendar
Posted: Wednesday 21 February 2018 10:13
by geertvercamer
No, I want 3 separate blocks.
Code: Select all
var calendars = {};
calendars.private = {key:'private', width:12, maxitems: 5, icalurl: _CROSS_ORIGINE_URL + 'https://calendar.google.com/calendar/ical/xxx%40gmail.com/private-xxx/basic.ics' };
calendars.wasteFromGarden = {key:'wasteFromGarden', width:12, maxitems: 1, icalurl: _CROSS_ORIGINE_URL + 'https://calendar.google.com/calendar/ical/yyy%40group.calendar.google.com/public/basic.ics' };
calendars.justForMe = {key:'justForMe', width:3, maxitems: 153, icalurl: _CROSS_ORIGINE_URL + 'https://calendar.google.com/calendar/ical/zzz0%40group.calendar.google.com/private-zzz/basic.ics' };
...
columns[3]['blocks'] = [calendars.private, calendars.justForMeColoured, calendars.wasteFromGardenColoured, 'garbage', 'streamplayer', 28, 'chromecast']; //, 45, 'spotify'];
Re: Dashticz - Module - Calendar
Posted: Wednesday 21 February 2018 14:15
by htilburgs
calendars.private = {key:'private', width:12, maxitems: 5, icalurl: _CROSS_ORIGINE_URL + .... };
I was wondering what these options do?
I can't seem to find them in the code and no text about it on the wiki.
The same for _CROSS_ORIGINE_URL, have you modified the code yourself somewhere?
Re: Dashticz - Module - Calendar
Posted: Wednesday 21 February 2018 16:21
by geertvercamer
only barely.
If I remember correctly, in the past some settings used crossorigin.me, other cors-anywhere.herokuapp.com, maybe one in the master, another in the beta.
it's just a constant I use wherever this technique is necessary:
var _CROSS_ORIGINE_URL = '
https://cors-anywhere.herokuapp.com/'; //
https://crossorigin.me/
the key and width options are probably remnants of previous versions, I don't see anything in the wiki neither.
I found some other settings not exactly up to date. Thanks for pointing this out!
And I must correct my previous remark about the combined.
As a matter of fact I am using it as I want each caledar block to have a different colour. I don't know how to handle this otherwise.
So I have:
Code: Select all
var calendars = {};
calendars.private = {maxitems: 5, icalurl: _CROSS_ORIGINE_URL + 'https://calendar.googl.../basic.ics' };
calendars.wasteFromGarden = {maxitems: 1, icalurl: _CROSS_ORIGINE_URL + 'https://calendar.google.c.../basic.ics' };
calendars.justForMe = {maxitems: 3, icalurl: _CROSS_ORIGINE_URL + 'https://calendar.google.c.../basic.ics' };
calendars.justForMeColoured = {};
calendars.justForMeColoured.calendars = [ { color: '#cefad9', calendar:calendars.justForMe } ];
calendars.justForMeColoured.maxitems = 3;
calendars.wasteFromGardenColoured = {};
calendars.wasteFromGardenColoured.calendars = [ { color: '#00aa00', calendar:calendars.wasteFromGarden } ];
calendars.wasteFromGardenColoured.maxitems = 1;
...
columns[3] = {};
columns[3]['blocks'] = [calendars.private, calendars.justForMeColoured, calendars.wasteFromGardenColoured, 'garbage', 'streamplayer', 28, 'chromecast']; //, 45, 'spotify'];
columns[3]['width'] = 3;
Re: Dashticz - Module - Calendar
Posted: Wednesday 21 February 2018 18:27
by htilburgs
Strange. I'm using the latest beta and for me everything is working.
Code: Select all
var calendars = {}
calendars.f1 = {maxitems: 5, title:'', image:'', icalurl:'webcal://p28-calendars.icloud.com/published/2/xxxxxxxx'}
calendars.prive = {maxitems: 5, title: '', image: '', icalurl:'webcal://p04-calendarws.icloud.com/ca/subscribe/1/xxxxxxx'}
- Schermafbeelding 2018-02-21 om 18.27.00.png (222.21 KiB) Viewed 3069 times
Re: Dashticz - Module - Calendar
Posted: Wednesday 21 February 2018 19:21
by Cletus
I think important here is do you use HTTP or HTTPS ?
Re: Dashticz - Module - Calendar
Posted: Wednesday 21 February 2018 20:57
by axel2906
it doesn't work with chrome firefox edge or Internet Explorer on my Win 10 computer. I try beta or stable version but nothing for the calendar
Code: Select all
calendars.F1 = { maxitems: 5, image: 'calendar.png', url: 'webcal://xxxx2018-formula-1-calendar/calendar.ics', icalurl: 'webcal://xxxx2018-formula-1-calendar/calendar.ics'};
The attachment stable.PNG is no longer available
but if i try it on my smartphone with the browser "Samsung internet", chrome on external lan (4G), it works.
to resume no calendar in internal network but well in external network (i use a no-ip adress for the external)
no https
Re: Dashticz - Module - Calendar
Posted: Wednesday 21 February 2018 21:46
by htilburgs
Cletus wrote: ↑Wednesday 21 February 2018 19:21
I think important here is do you use HTTP or HTTPS ?
Http. I don’t have any ports open to the outerworld, except for VPN.
Re: Dashticz - Module - Calendar
Posted: Wednesday 21 February 2018 22:12
by Timmi1993
axel2906 wrote: ↑Wednesday 21 February 2018 20:57
it doesn't work with chrome firefox edge or Internet Explorer on my Win 10 computer. I try beta or stable version but nothing for the calendar
Code: Select all
calendars.F1 = { maxitems: 5, image: 'calendar.png', url: 'webcal://xxxx2018-formula-1-calendar/calendar.ics', icalurl: 'webcal://xxxx2018-formula-1-calendar/calendar.ics'};
stable.PNG
but if i try it on my smartphone with the browser "Samsung internet", chrome on external lan (4G), it works.
to resume no calendar in internal network but well in external network (i use a no-ip adress for the external)
no https
Yes, thats true.
I have an Fire HD 10 with Silk-Browser and it works.
Chrome, firefox, ... = Loading
Edit: I have installed the silk browser on my other tablet and it doesn't work
Re: Dashticz - Module - Calendar
Posted: Thursday 22 February 2018 19:10
by Mads
hi.
i also got a problem. The calender just keep loading.
this i my code
- Spoiler: show
- var calendars = {}
calendars.private = { maxitems: 5, icalurl: 'https://cors-anywhere.herokuapp.com/web ... MCzfvbZ44/' }
The calender has worked, but now i wont :/
Re: Dashticz - Module - Calendar
Posted: Friday 23 February 2018 14:59
by geertvercamer
Hi all,
I've just noticed another problem. I have my calendars showing up all right. I have a 'common' calendar and a 'private' one (tasks/appointments just for me) and I show them in their own block. Both are wrapped in a calendars.x.calendars 'object' to set their own colour.
There is a problem with the items shown in the 'private' calendar.
next Tuesday I have 2 appointmnts
- an appointment A repeating every first Tuesday of the month at 17:45
- an appointment B repeating every first Tuesday of 2 months at 18:15.
The agenda block is setup to show 3 items.
I see 3 items of appointment B...
when I combine them into one calendar all items appear correctly.
Re: Dashticz - Module - Calendar
Posted: Friday 23 February 2018 19:57
by htilburgs
Re: Dashticz - Module - Calendar
Posted: Sunday 25 February 2018 12:48
by axel2906
i've found a workaround
I changed the calendar.js file to this :
before :
Code: Select all
var cache = new Date().getTime();
curUrl = http://dashticz.nl/ical/?time=' + cache + '&url=' + curUrl;
moment.locale(settings['calendarlanguage']);
$.getJSON(curUrl,function(data,textstatus,jqXHR){
i add this before dashticz.nl :
Code: Select all
'https://cors-anywhere.herokuapp.com/
after :
Code: Select all
var cache = new Date().getTime();
curUrl = 'https://cors-anywhere.herokuapp.com/http://dashticz.nl/ical/?time=' + cache + '&url=' + curUrl;
moment.locale(settings['calendarlanguage']);
$.getJSON(curUrl,function(data,textstatus,jqXHR){
and now it's work as expected
Re: Dashticz - Module - Calendar
Posted: Monday 26 February 2018 8:06
by Timmi1993
axel2906 wrote: ↑Sunday 25 February 2018 12:48
i've found a workaround
I changed the calendar.js file to this :
before :
Code: Select all
var cache = new Date().getTime();
curUrl = http://dashticz.nl/ical/?time=' + cache + '&url=' + curUrl;
moment.locale(settings['calendarlanguage']);
$.getJSON(curUrl,function(data,textstatus,jqXHR){
i add this before dashticz.nl :
Code: Select all
'https://cors-anywhere.herokuapp.com/
after :
Code: Select all
var cache = new Date().getTime();
curUrl = 'https://cors-anywhere.herokuapp.com/http://dashticz.nl/ical/?time=' + cache + '&url=' + curUrl;
moment.locale(settings['calendarlanguage']);
$.getJSON(curUrl,function(data,textstatus,jqXHR){
and now it's work as expected
You're my hero.
Thank you, everything works great now.
Re: Dashticz - Module - Calendar
Posted: Monday 26 February 2018 14:47
by Mads
Didnt help me. The loading text just disapered now :/
Re: Dashticz - Module - Calendar
Posted: Monday 26 February 2018 17:50
by axel2906
Mads wrote: ↑Monday 26 February 2018 14:47
Didnt help me. The loading text just disapered now :/
try with the ical for F1 (it's a public ical so everybody can use this) can you can get it from here
https://www.gpupdate.net/en/calendar/27 ... -calendar/
Code: Select all
calendars.F1 = { maxitems: 5, image: 'calendar.png', icalurl: 'webcal://www.gpupdate.net/en/calendar/273/2018-formula-1-calendar/calendar.ics'};
if it doesn"t work check the error from google (F12)
Re: Dashticz - Module - Calendar
Posted: Tuesday 27 February 2018 0:59
by GuidoP18
Thanks Axel2906 you're code fixed it.