WIP - Migrate to TOML, and allow multiple calendars#116
Open
mendhak wants to merge 40 commits into
Open
Conversation
…2. Need to find another solution later
…individual for calendars
mendhak
commented
May 3, 2026
mendhak
commented
May 3, 2026
Owner
Author
There was a problem hiding this comment.
Moving from the very lengthy and complicated env.sh to config.toml. It doesn't take the length away, just organizes it a bit better. There are now sections for display, calendar, weather, alerts.
mendhak
commented
May 3, 2026
| # Get your Calendar ID from Google Calendar Settings > Share this calendar | ||
| # Format: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx@group.calendar.google.com | ||
|
|
||
| [[calendar.providers.google]] |
Owner
Author
There was a problem hiding this comment.
Importantly the [[ double ]] notation allows for multiple instances of the same thing (an array). This is how we can do multiple calendars.
mendhak
commented
May 3, 2026
Owner
Author
There was a problem hiding this comment.
- TODO: Not sure about this. Might go back to fixed versions, except for urllib which needs a minimum version.
mendhak
commented
May 3, 2026
| events_result = service.events().list( | ||
| calendarId=self.google_calendar_id, | ||
| timeMin=self.from_date.isoformat() + 'Z', | ||
| timeZone=google_calendar_timezone, |
Owner
Author
There was a problem hiding this comment.
I think this shouldn't be needed any more, because in the calling script we convert it to timezone naive datetimes when merging and sorting. I did a bit of testing and it seemed OK but... y'know... timezones...
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.