Pb with ics calendar from owncloud

Dashticz, alternative dashboard based on HTML, CSS, jQuery

Moderators: leecollings, htilburgs, robgeerts

Post Reply
Martial
Posts: 31
Joined: Saturday 11 March 2017 18:44
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Pb with ics calendar from owncloud

Post 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
Lokonli
Posts: 2271
Joined: Monday 29 August 2016 22:40
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Pb with ics calendar from owncloud

Post 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)
Martial
Posts: 31
Joined: Saturday 11 March 2017 18:44
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Pb with ics calendar from owncloud

Post 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.
Martial
Posts: 31
Joined: Saturday 11 March 2017 18:44
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Pb with ics calendar from owncloud

Post 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
                (
                )

        )

)
Martial
Posts: 31
Joined: Saturday 11 March 2017 18:44
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Pb with ics calendar from owncloud

Post by Martial »

Nobody with the start of the beginning of an idea?
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests