Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Calendar Events implemented. #174

Open
wants to merge 6 commits into
base: release/v0.7.0
Choose a base branch
from

Conversation

develoopeer
Copy link

  • Ics files widely used format to represent calendar info parsed via https://github.com/arran4/golang-ical library. It is super lightweight and can parse ics files from different sources. Google calendar, Trello and local files were tested by me.

  • Events in calendar will be highlighted with color-primary color, and have hover text.

  • If you have more than 1 event at the same day for one day, only first one will be displayed.
    Complete version looks like this:
    Screencast 2024-07-28 23_39_46 (1)

  • Icsurl option added to yaml configuration

- type: calendar
  icsurl: https://testsite/validurl.ics

For example to grab url from google calendar you need to make your calendar public, click on calendar settings and get url from ics field. Instruction. Same goes for Trello

  • Events will be updated every hour, because of default Calendar Widget Initialize function declared with withCacheOnTheHour() function. This time can be increased or decreased, but i don`t think it is necessary.
  • I feel like icsurl option can be replaced with icsurls option, to allow you gather events from different sources. This behavior can be simply implemented, but i don`t know is it really useful. I need your opinion for that.

@develoopeer develoopeer marked this pull request as draft August 3, 2024 10:49
@develoopeer develoopeer marked this pull request as ready for review September 29, 2024 22:11
@develoopeer
Copy link
Author

Hello @svilenmarkov. Will this PR be merged in the near future?

@svilenmarkov
Copy link
Member

@develoopeer Hey, yeah sorry, calendar events were planned for v0.7.0 so I'll get it merged before that comes out, just wanted to make a couple of changes that I haven't had the chance to work on yet.

@develoopeer
Copy link
Author

Ooh i got it. I will resolve emerging conflicts in this PR in near future. Hope v0.7.0 will be coming out soon.

develoopeer and others added 2 commits November 13, 2024 22:19
- Bug with ics events, from another years fixed
@develoopeer develoopeer changed the base branch from main to release/v0.7.0 December 29, 2024 18:38
@Anachron
Copy link

Can we make displaying all events optional?

I dont know how useful it will be to show the first event, when I have a ton of events every day.

Also how trivial is adding caldav support? (As in I set up my login details and it pulls all events from a collection)

Thanks for the work so far! :)

@develoopeer
Copy link
Author

Hello @Anachron. Thanks for mentioning caldav support. I briefly tried to implement some caldav support, and was able to make it without any custom libraries. i will say that caldav integration will not be that hard. And about your questions:

  • Yes, events can be cut to show only last one or first one, i will add a specific option for that
  • I will try to add support to caldav soon. To integrate your custom caldav server to glance, you will need to provide login, password, calendar name. All that options will be available.

@Anachron
Copy link

That's a better answer than I expected. Thank you and take care! 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants