Replies: 3 comments 4 replies
-
@tswistak will that be as up-to-date as Calendarific API? |
Beta Was this translation helpful? Give feedback.
3 replies
-
Any news on this? |
Beta Was this translation helpful? Give feedback.
1 reply
-
Welp, the autoclose feature doesn't work for discussions. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
In SMT, holiday calendars were crowdsourced by people, what I remember was leading to people complaining that there are no current holidays for their countries, and they had to regularly provide new ICS files. I even created 2 years ago a feature request to complete remove ICS files (SimpleMobileTools/Simple-Calendar#1533) and base on autogenerated holidays, but now I have a bit simpler idea for that, that may be sufficient.
I think, maybe it would be a good idea to generate these ICS files for all supported countries every year? As I found out, Thunderbird currently does something like this. They have a Python script using Calendarific API to do this. All their generated calendars are here: https://www.thunderbird.net/en-US/calendar/holidays/.
I was looking for some resources and found out free scripts that could generate holiday ICS for us, without using Calendarific (like Thunderbird):
We could generate every year new ICS files and add them with an update to APK files. Even if those ICS files would have some wrong dates (e.g. some new holidays are missing), it will be much better to have like one missing date than all dates. Also, if we had a script for this, we could even schedule it with GitHub Actions to run once a year.
If you'd like this approach, I can try to help with that. I could write a script to automatically populate ICS files in
src/main/assets
using date-holidays-ical. I also have some experience with GitHub Actions, so I could try to write a cron action which would run once a year (let's say 1st December) to create holidays for the next year and upload them to the repo.Alternatively, you could download the holidays from the Thunderbird site I've linked earlier. As I found correctly, they are on CC BY-SA 3.0 license, so there wouldn't be problems with that, we just need to attribute authors.
Beta Was this translation helpful? Give feedback.
All reactions