Sends daily and weekly events summaries to Mattermost
- This script runs every morning, fetches an ICS calendar from a URL, and sends a webhook notification to Mattermost
- On monday mornings, it generates a notification with all the upcoming week events
- On other weekday mornings, the summary contains only the day events
- Create an app and deploy this repository to it
- Set these environment variables:
CALENDAR_ICS_URL="https://blah.com/cal.ics"
CALENDAR_WEB_URL="https://blah.com/cal.html"
MATTERMOST_HOOK_URL="https://mattermost.website/hooks/xxxxx"
MATTERMOST_CHANNEL="some-channel"
- scale down the web process, only one-off CRON processes will run
make install
cp .env.sample .env
- update env variables in .env
make run