Crates.io | sorry-im-off-today |
lib.rs | sorry-im-off-today |
version | 1.0.3 |
source | src |
created_at | 2019-01-17 14:28:53.782762 |
updated_at | 2022-06-08 09:04:13.946242 |
description | Automatically update your Slack status if your Google Calendar says that you are off today |
homepage | |
repository | https://gitlab.com/dsferruzza/sorry-im-off-today |
max_upload_size | |
id | 109151 |
size | 48,652 |
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 ⚠️
sorry-im-off-today
executableYour 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 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 . |
Configure a Cron or a Systemd timer to run it every day (early in the morning) !
MIT License Copyright (c) 2019 David Sferruzza