sorry-im-off-today

Crates.iosorry-im-off-today
lib.rssorry-im-off-today
version1.0.3
sourcesrc
created_at2019-01-17 14:28:53.782762
updated_at2022-06-08 09:04:13.946242
descriptionAutomatically update your Slack status if your Google Calendar says that you are off today
homepage
repositoryhttps://gitlab.com/dsferruzza/sorry-im-off-today
max_upload_size
id109151
size48,652
David Sferruzza (dsferruzza)

documentation

README

Sorry I'm Off Today

LICENSE pipeline status Crates.io Version Get help on Codementor

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

Commit count: 23

cargo fmt