Dashticz - Module - Calendar
Moderators: leecollings, htilburgs, robgeerts
-
- Posts: 54
- Joined: Wednesday 17 August 2016 9:32
- Target OS: Raspberry Pi / ODroid
- Domoticz version: Latest
- Location: Purmerend, Netherlands
- Contact:
Re: Dashticz - Module - Calendar
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?
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?
This is our world now... the world of the electron and the switch, the beauty of the baud.
- DewGew
- Posts: 579
- Joined: Thursday 21 April 2016 12:01
- Target OS: Raspberry Pi / ODroid
- Domoticz version: V4.10618
- Location: Sweden
- Contact:
Re: Dashticz - Module - Calendar
I started an issue on github. @robgeerts have to take a look at this. But he seems busy nowdays ..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?
Raspberry Pi 3 | domoticz | Aeon Labs Z-Stick GEN5 | RFlink gateway
NanoPi NEO-air | REGO6XX interface | Machinon theme | Homebridge | Domoticz Google Assistant | ideAlarm
NanoPi NEO-air | REGO6XX interface | Machinon theme | Homebridge | Domoticz Google Assistant | ideAlarm
-
- Posts: 84
- Joined: Friday 12 May 2017 20:03
- Target OS: -
- Domoticz version:
- Contact:
Re: Dashticz - Module - Calendar
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...???
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...???
-
- Posts: 5
- Joined: Tuesday 13 February 2018 7:45
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: Dashticz - Module - Calendar
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?
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?
-
- Posts: 84
- Joined: Friday 12 May 2017 20:03
- Target OS: -
- Domoticz version:
- Contact:
Re: Dashticz - Module - Calendar
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'];
- htilburgs
- Posts: 464
- Joined: Tuesday 03 November 2015 11:01
- Target OS: Raspberry Pi / ODroid
- Domoticz version: Beta
- Location: Netherlands
- Contact:
Re: Dashticz - Module - Calendar
I was wondering what these options do?calendars.private = {key:'private', width:12, maxitems: 5, icalurl: _CROSS_ORIGINE_URL + .... };
Code: Select all
key:'private'
width: 12
The same for _CROSS_ORIGINE_URL, have you modified the code yourself somewhere?
Hardware:
RPi3 - Aeon Labs Z-Stick GEN5 - Fibaro Dimmer 2 - Fibaro Roller Shutter 2 - Fibaro Smoke Sensor - Yeelight RGBW Led bulb - Yeelight Smart LED Light Strip - Neo Coolcam PIR Motion Sensor - Neo Coolcam PowerPlug - Nest Thermostat v3
RPi3 - Aeon Labs Z-Stick GEN5 - Fibaro Dimmer 2 - Fibaro Roller Shutter 2 - Fibaro Smoke Sensor - Yeelight RGBW Led bulb - Yeelight Smart LED Light Strip - Neo Coolcam PIR Motion Sensor - Neo Coolcam PowerPlug - Nest Thermostat v3
-
- Posts: 84
- Joined: Friday 12 May 2017 20:03
- Target OS: -
- Domoticz version:
- Contact:
Re: Dashticz - Module - Calendar
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:
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;
- htilburgs
- Posts: 464
- Joined: Tuesday 03 November 2015 11:01
- Target OS: Raspberry Pi / ODroid
- Domoticz version: Beta
- Location: Netherlands
- Contact:
Re: Dashticz - Module - Calendar
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'}
Hardware:
RPi3 - Aeon Labs Z-Stick GEN5 - Fibaro Dimmer 2 - Fibaro Roller Shutter 2 - Fibaro Smoke Sensor - Yeelight RGBW Led bulb - Yeelight Smart LED Light Strip - Neo Coolcam PIR Motion Sensor - Neo Coolcam PowerPlug - Nest Thermostat v3
RPi3 - Aeon Labs Z-Stick GEN5 - Fibaro Dimmer 2 - Fibaro Roller Shutter 2 - Fibaro Smoke Sensor - Yeelight RGBW Led bulb - Yeelight Smart LED Light Strip - Neo Coolcam PIR Motion Sensor - Neo Coolcam PowerPlug - Nest Thermostat v3
-
- Posts: 54
- Joined: Wednesday 17 August 2016 9:32
- Target OS: Raspberry Pi / ODroid
- Domoticz version: Latest
- Location: Purmerend, Netherlands
- Contact:
Re: Dashticz - Module - Calendar
I think important here is do you use HTTP or HTTPS ?
This is our world now... the world of the electron and the switch, the beauty of the baud.
-
- Posts: 19
- Joined: Wednesday 21 February 2018 20:38
- Target OS: Raspberry Pi / ODroid
- Domoticz version: V3.8926
- Location: Brussels
- Contact:
Re: Dashticz - Module - Calendar
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
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
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'};
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
- Attachments
-
- stable.PNG (68.46 KiB) Viewed 3038 times
RPi3 - RfxComm - Milight - OWL160
- htilburgs
- Posts: 464
- Joined: Tuesday 03 November 2015 11:01
- Target OS: Raspberry Pi / ODroid
- Domoticz version: Beta
- Location: Netherlands
- Contact:
Re: Dashticz - Module - Calendar
Http. I don’t have any ports open to the outerworld, except for VPN.
Hardware:
RPi3 - Aeon Labs Z-Stick GEN5 - Fibaro Dimmer 2 - Fibaro Roller Shutter 2 - Fibaro Smoke Sensor - Yeelight RGBW Led bulb - Yeelight Smart LED Light Strip - Neo Coolcam PIR Motion Sensor - Neo Coolcam PowerPlug - Nest Thermostat v3
RPi3 - Aeon Labs Z-Stick GEN5 - Fibaro Dimmer 2 - Fibaro Roller Shutter 2 - Fibaro Smoke Sensor - Yeelight RGBW Led bulb - Yeelight Smart LED Light Strip - Neo Coolcam PIR Motion Sensor - Neo Coolcam PowerPlug - Nest Thermostat v3
-
- Posts: 5
- Joined: Tuesday 13 February 2018 7:45
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: Dashticz - Module - Calendar
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
stable.PNGCode: 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'};
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
-
- Posts: 40
- Joined: Thursday 18 January 2018 20:57
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: Dashticz - Module - Calendar
hi.
i also got a problem. The calender just keep loading.
this i my code
i also got a problem. The calender just keep loading.
this i my code
- Spoiler: show
-
- Posts: 84
- Joined: Friday 12 May 2017 20:03
- Target OS: -
- Domoticz version:
- Contact:
Re: Dashticz - Module - Calendar
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.
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.
- htilburgs
- Posts: 464
- Joined: Tuesday 03 November 2015 11:01
- Target OS: Raspberry Pi / ODroid
- Domoticz version: Beta
- Location: Netherlands
- Contact:
Re: Dashticz - Module - Calendar
Try to remove the https://cors-anywhere.herokuapp.com/ part in the url.
Hardware:
RPi3 - Aeon Labs Z-Stick GEN5 - Fibaro Dimmer 2 - Fibaro Roller Shutter 2 - Fibaro Smoke Sensor - Yeelight RGBW Led bulb - Yeelight Smart LED Light Strip - Neo Coolcam PIR Motion Sensor - Neo Coolcam PowerPlug - Nest Thermostat v3
RPi3 - Aeon Labs Z-Stick GEN5 - Fibaro Dimmer 2 - Fibaro Roller Shutter 2 - Fibaro Smoke Sensor - Yeelight RGBW Led bulb - Yeelight Smart LED Light Strip - Neo Coolcam PIR Motion Sensor - Neo Coolcam PowerPlug - Nest Thermostat v3
-
- Posts: 19
- Joined: Wednesday 21 February 2018 20:38
- Target OS: Raspberry Pi / ODroid
- Domoticz version: V3.8926
- Location: Brussels
- Contact:
Re: Dashticz - Module - Calendar
i've found a workaround
I changed the calendar.js file to this :
before :
i add this before dashticz.nl :
after :
and now it's work as expected
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){
Code: Select all
'https://cors-anywhere.herokuapp.com/
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){
RPi3 - RfxComm - Milight - OWL160
-
- Posts: 5
- Joined: Tuesday 13 February 2018 7:45
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: Dashticz - Module - Calendar
You're my hero.axel2906 wrote: ↑Sunday 25 February 2018 12:48 i've found a workaround
I changed the calendar.js file to this :
before :i add this before dashticz.nl :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){
after :Code: Select all
'https://cors-anywhere.herokuapp.com/
and now it's work as expectedCode: 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){
Thank you, everything works great now.
-
- Posts: 40
- Joined: Thursday 18 January 2018 20:57
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: Dashticz - Module - Calendar
Didnt help me. The loading text just disapered now :/
-
- Posts: 19
- Joined: Wednesday 21 February 2018 20:38
- Target OS: Raspberry Pi / ODroid
- Domoticz version: V3.8926
- Location: Brussels
- Contact:
Re: Dashticz - Module - Calendar
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'};
RPi3 - RfxComm - Milight - OWL160
-
- Posts: 13
- Joined: Monday 11 December 2017 20:10
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: Dashticz - Module - Calendar
Thanks Axel2906 you're code fixed it.
Who is online
Users browsing this forum: No registered users and 0 guests