https://github.com/dsferruzza/sorry-im-off-today
Automatically update your Slack status if your Google Calendar says that you are off today.
https://github.com/dsferruzza/sorry-im-off-today
cli google-calendar slack
Last synced: about 1 month ago
JSON representation
Automatically update your Slack status if your Google Calendar says that you are off today.
- Host: GitHub
- URL: https://github.com/dsferruzza/sorry-im-off-today
- Owner: dsferruzza
- License: mit
- Created: 2019-01-17T14:31:27.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2022-06-08T09:05:55.000Z (about 4 years ago)
- Last Synced: 2025-02-24T08:26:24.948Z (over 1 year ago)
- Topics: cli, google-calendar, slack
- Language: Rust
- Size: 70.3 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# Sorry I'm Off Today
[](LICENSE)
[](https://gitlab.com/dsferruzza/sorry-im-off-today/commits/master)
[](https://crates.io/crates/sorry-im-off-today)
[](https://www.codementor.io/dsferruzza?utm_source=github&utm_medium=button&utm_term=dsferruzza&utm_campaign=github)
Automatically update your Slack status if your Google Calendar says that you are off today.
⚠️ _Main repository is here: https://gitlab.com/dsferruzza/sorry-im-off-today_ ⚠️
## How to use
- compile or install the project
- just run the `sorry-im-off-today` executable
Your Google calendar will be fetched, parsed and searched for events beginning by `Absent` or `Congés`.
If such an event exists today, your Slack status will be updated.
### Configuration
Configuration is done using environment variables:
| Name | Default Value | Description |
|---|---|---|
| `CALENDAR_URL` | | The private URL of a Google calendar. For example: `https://calendar.google.com/calendar/ical/xxxxx%40gmail.com/private-xxxxx/basic.ics`. |
| `SLACK_API_TOKEN` | | A Slack access token. You need to create an app with the `users.profile:read` and `users.profile:write` scopes and add it to your Slack workspace. The OAuth token required here starts with `xoxp`. |
### Run automatically
Configure a Cron or a Systemd timer to run it every day (early in the morning) !
## License
MIT License Copyright (c) 2019 David Sferruzza