Very clear and comprehensive answer. (and I'll not ask you how to create my proxy, ;-)) thanks a lot Regards Antonio
----- Mail original -----
De: "Ján Máté" jan.mate@inf-it.com À: davclients@inf-it.com Envoyé: Vendredi 11 Septembre 2015 14:47:25 Objet: Re: [Inf-IT DAVcl] [CadDavZap] globalSubscribedCalendars
Hi,
On 11 Sep 2015, at 14:15, a.pessoa@free.fr wrote:
Hi Jan, I try to add the public calendar in config.js with :
var globalSubscribedCalendars={hrefLabel: 'Subscribed', calendars: [{displayName: 'Calendrier Scolaire Zone C', href: ' http://cache.media.education.gouv.fr/ics/Calendrier_Scolaire_Zone_C.ics' , userAuth: {userName: '', userPassword: ''}, ignoreAlarm: true, color: '#FFA858', typeList: ['vevent','vtodo']}]};
Is it correct ? the calendar path is the same I use with thunderbird/lightning
as I mentioned before, it will work ONLY if the remote server returns proper CORS headers. And as you can see:
curl -X OPTIONS -I http://cache.media.education.gouv.fr/ics/Calendrier_Scolaire_Zone_C.ics
HTTP/1.1 200 OK
Server: nginx/1.2.3
Content-Type: text/calendar; charset=UTF-8
Last-Modified: Mon, 20 Jul 2015 13:53:02 GMT
Expires: Mon, 14 Sep 2015 12:37:17 GMT
Cache-Control: max-age=259200
Content-Length: 6070
Accept-Ranges: bytes
Date: Fri, 11 Sep 2015 12:38:07 GMT
X-Varnish: 688194474 688184007
Age: 50
Via: 1.1 varnish
Connection: keep-alive
there are no CORS headers returned from this server => the browser will REFUSE to download data (JavaScript limitation), so CalDavZAP cannot show them.
So you have 2 options: 1.) ask the server owner to add CORS headers 2.) create your own proxy, which will redirect your request to remote server and returns the data (and please do not ask how, it is really out of scope of CalDavZAP and/or this mailing list)
another question: is it possible to change the default color for the calendar in globalNetworkCheckSettings ?
default colors are generated automatically, you cannot change these. You can overwrite them in the interface (by clicking to the color box and changing the color), but it REQUIRES server support for storing custom DAV properties (without server support your changes will NOT be saved).
If it's with backgroundcalendars, I'm sorry I don't understand what it is.
no, background calendar is a calendar which changes the background color of the day in the calendar view (if there is at least one event in background calendar for the given day, that day's background color will be "light red")
One more question : some events I enter with caldavzap are missing in thunderbird/lighning, do you have a clue of the problem ? I don't think it's due to caldavzap because I can see all my events on my android calendar, but just in case. Else I'll see with baikal.
if you see them in other clients but not in lightning it looks really like lightning bug (we created our software because Lightning was buggy/slow/only webdav and not full CalDAV client).
Cheers,
JM
Thanks a lot for your help Antonio
----- Mail original -----
De: "a pessoa" < a.pessoa@free.fr > À: davclients@inf-it.com Envoyé: Mardi 8 Septembre 2015 16:34:01 Objet: Re: [Inf-IT DAVcl] [CadDavZap] Default settings for alarm
By the way, how can I add a public calendar like : http://cache.media.education.gouv.fr/ics/Calendrier_Scolaire_Zone_C.ics
see the globalSubscribedCalendars, but it will work ONLY if remote servers (where ics files are hosted) return proper CORS headers (see readme.txt), otherwise this functionality will not work (JavaScript limitation)!