Page 1 of 1
Pb with ics calendar from owncloud
Posted: Monday 15 January 2024 10:43
by Martial
Hi,
I'm new with Dashticz and i need some help.
I have a calendar defined by:
Code: Select all
blocks['Mycalendar'] = {
type: 'calendar',
emptytext: 'Rien',
layout: 1,
dateFormat: 'D MMMM',
icalurl: 'https://user:[email protected]:5232/Martial/f2bb...de27/',
maxitems: 5
}
columns[1] = {
blocks : ['Mycalendar'],
width: 12
}
Give, as response, "Rien"
They are several appointements in my owncloud calendar and they are in the ics file obtained by the icalrul url.
what am I doing wrong?
Dz: 2024.1
Dashticz V3.11.1 beta
Re: Pb with ics calendar from owncloud
Posted: Saturday 20 January 2024 22:50
by Lokonli
Probably your browser is blocking the user:password part in the url. Can you use an url in which you add the username/password as query parameters?
(something like
http://192.168.1.23:5232/.../?username= ... d=password)
Re: Pb with ics calendar from owncloud
Posted: Sunday 21 January 2024 16:58
by Martial
Hi,
Thank you for your help,
The same url called from firefox give me a file (.ics) with all appointments.
I tried your suggestion, but same result.
Re: Pb with ics calendar from owncloud
Posted: Tuesday 23 January 2024 15:58
by Martial
Good morning,
For those who read me, if ever an idea comes to them:
If I debug under Firefox, I see a 500 error during the get which is done by dashticz:
http://192.168.1.22/dashticz/vendor/das ... ethod=1%22
Whereas if I do directly https://..../f2bba76f-06b5-6ad2-8471-f0526634de27/ I get an ics file with all my appointments
if I try the full url called by dashticz, I get:
Code: Select all
RuntimeException: Can't open file"https://.....f2bba76f-06b5-6ad2-8471-f0526634de27/ for reading in /home/pi/dashticz/vendor/dashticz/ical/vendor/om/icalparser/src/IcalParser.php:43 Stack trace: #0 /home/pi/dashticz/vendor/dashticz/ical/index.php(232): om\IcalParser->parseFile() #1 /home/pi/dashticz/vendor/dashticz/ical/index.php(145): ical7() #2 {main}
Icalurl "https://..../f2bba76f-06b5-6ad2-8471-f0526634de27/
Error
fopen("https://[email protected]:5232/Martial/f2bba76f-06b5-6ad2-8471-f0526634de27/): failed to open stream: No such file or directory
Errno
2
File /home/pi/dashticz/vendor/dashticz/ical/vendor/om/icalparser/src/IcalParser.php
Line 42
Trace
Array
(
[0] => Array
(
[file] => /home/pi/dashticz/vendor/dashticz/ical/index.php
[line] => 45
[function] => format_error
[args] => Array
(
[0] => 2
[1] => fopen("https://...f2bba76f-06b5-6ad2-8471-f0526634de27/): failed to open stream: No such file or directory
[2] => /home/pi/dashticz/vendor/dashticz/ical/vendor/om/icalparser/src/IcalParser.php
[3] => 42
)
)
[1] => Array
(
[function] => fatal_handler
[args] => Array
(
)
)
)
Re: Pb with ics calendar from owncloud
Posted: Monday 29 January 2024 17:04
by Martial
Nobody with the start of the beginning of an idea?