Gladys 4 - Service CalDAV

Hello @bertrandda,

Magnificent, that’s a good wake-up call at 5:00 am :wink:

It works perfectly, I even recover the week numbers again :blush:


A big thank you to you for the work accomplished!! (We absolutely need to set up a coffee offering system for the devs ^^ I think about it for many developments or dev evolutions, but there is no simple way… @pierre-gilles ^^)

As a result, I validate the test part on my side, no more errors. I have just set up scenes on events from different calendars, I will let you know if something goes wrong.

Edit:

I confirm that all scenes also work perfectly

Great :slight_smile:

Perfect!

Individually, I think the best thing is to organize among yourselves :wink: Set up a Lydia / Revolut for him if you want to buy him a coffee!

Yes, that’s certain, but on my side, the requests are likely to multiply ^^ It’s been a while since I wanted to do it for others like VonOx, AlexTrovato, and others (I won’t name them in @, the goal not being to advertise - everyone is truly and deeply free to make such approaches). And even for you. The goal is to support the different devs who can sometimes greatly impact us! The goal is not at all to buy specific devs but really to reward the work accomplished. For my part, I wish to remain anonymous when making a « donation ». And you will recognize that a person’s Lydia account has no anonymity ^^
Wouldn’t it be possible to have a kind of common Patreon for devs? Something either integrating a common pot redistributed monthly or otherwise according to proportion or nomination in the donation’s comments, or something where you can give to a specific dev.
In itself, I don’t exactly know what exists, but I think I’m not the only one to have this in mind, I think the point had already been addressed in another topic!!^^

What about crypto donations?

As I mentioned in the other topic, however, I cannot centralize this process. From the moment it’s a process that doesn’t go through me, it’s no longer legally considered a donation. I would have to collect taxes (VAT, social charges, income tax), and then I cannot transfer money to individuals.

Whereas you just want to make a donation from one individual to another :slight_smile:

I think it’s simpler if you just organize directly with the contributors you want to « tip ».

PS: We’re getting a bit off topic from the Caldav service though :stuck_out_tongue:

I understand!!

I will create a specific topic in the Uncategorized section to discuss. The best way would be for each dev to have a tipee ^^

Good evening,

I started using Gladys and I’m trying to do my first integration of a CalDav calendar hosted by infomaniak :slight_smile:

I have 2 calendars that are found but in the calendar view I don’t see any appointments appearing :frowning:

The command docker logs gladys does not give me any error :frowning:

Do you have any idea where the problem might come from?

Thank you

Good evening @prohand,

An error of this kind was fixed with this PR, but it has not yet been deployed in production. If it still doesn’t work once updated, shall we try to look into it? Does that work for you?

No problem :slight_smile:
When is the production deployment scheduled for?

Thanks

I think there have been some deployment issues recently

But @pierre-gilles will surely be able to tell you more about the dates of the next releases

Thanks for the information :wink:

Hello,

Has the deployment issue been fixed?
Has the production release taken place? :slight_smile:

Thanks :wink:

Hello @prohand, there has been no production release.

I was off last week, and for now, we are stuck due to an issue with Zigbee2mqtt as pointed out by @bertrandda.

You can follow along yourself on GitHub if you want to stay informed, you follow this page:

You can even follow the project on GitHub to receive notifications :slight_smile:

Thanks for the info :wink:

@prohand It’s deployed :slight_smile:

Hello everyone,
as mentioned during the last call I recently worked on syncing Webcal calendars.

For those who don’t know, these are external calendars to your CalDAV account that you can subscribe to in order to display their associated events in your calendar.
Some examples of subscription sources: Calendrier des jours fériés — Thunderbird https://www.data.gouv.fr/fr/datasets/?format=ics
it can be the list of public holidays of your country, school calendar dates, the schedule of your favorite team’s matches… it opens up quite a few possibilities with scenes
Subscription URLs point to .ics files containing events; these files are fully managed by third-party organizations. Until now, to get them into Gladys you had to download the file, import it into a calendar on your CalDAV service (Apple, Nextcloud…) and sync. The problem is that if an event was modified/added you had to re-download that file to update the data. With this development, you will be able to subscribe to the third-party organization’s calendar (by using the URL that points to the file to subscribe instead of downloading it) on your CalDAV account and the subscription will be reflected in Gladys.

Because the process is heavier than a classic CalDAV calendar synchronization (no incremental sync), syncing these calendars is disabled by default (can be enabled from the Synchronization menu of the CalDAV integration) and performed every 12 hours (in terms of display this should not affect you much because generally these calendars do not change often since they are public calendars e.g.: public holidays are known in advance and don’t change, competition match schedules are not updated often… and you can always manually force Synchronization with the Synchronize button in the integration, particularly useful the first time)

For those who want to test, a dev image is available on docker bertrandda/gladys:caldav

In this update I also added synchronization of event descriptions and their use in scenes.

In a future version I’d like to allow users to subscribe to Webcal calendars directly in Gladys. That way those who don’t yet have a CalDAV calendar account or don’t need one will still be able to add public calendars to their Gladys calendar and have data to use.

Feel free to share any feedback.

Hi @bertrandda! I saw your PR, great job :slight_smile:

I’m sending a follow-up to ask if anyone has tested this PR, available on the Docker image:

bertrandda/gladys:caldav

Since this is a PR that doesn’t touch any hardware, you can absolutely test it on your computer (Windows/Mac), or on an online Linux server — it will work just the same.

Avec la reprise du Top 14 ce weekend, j’ai pensé au dev fait il y a quelques temps pour gérer les abonnements webcal dans l’intégration CalDAV. Donc petit rappel de rentrée aux testeurs intéressés par la fonctionnalité.

To give you some ideas of the new possibilities, here are some additional examples of webcal calendars:

It will also allow you to work around the fact that you can only connect to a single CalDAV account in Gladys. You can subscribe to your work/school calendar (if your company allows it) on your personal account and thus import work events into Gladys.

Quite a few possibilities overall, and I’m sure you’ll find other webcal feeds that will be useful to you.

If you want to test, the Docker image is available bertrandda/gladys:caldav

Hi @bertrandda ! I just tested your PR by trying to add a webcal calendar to my Google Calendar, but it doesn’t seem to work, I might be doing something wrong..

I added in the settings of my Google calendar the webcal « Agenda du libre »:

I’m syncing on the Gladys side, but it doesn’t add anything to Gladys

Do you know if it works with Google’s CalDAV implementation?

I think that by default Google does not enable webcal synchronization (they do the same for shared calendars). Can you go to this link, see if you can enable syncing of your webcals and restart the sync on the Gladys side?

Indeed, that was it!

But I’m not sure this actually tests the feature — I think Google includes these events in the regular « CalDAV »:

(CalDAVHandler.syncUserCalendars) CalDAV : Found 12 calendars.
(Promise.map.concurrency) CalDAV : 4 events updated for calendar Agenda du libre.
(CalDAVHandler.syncUserWebcals) Webcal : Found 0 calendars.