Run Node.js code to hit the Google Calendar API, listing meetings in the next N hours and notifying me on multiple channels (email, Slack, and you can add Discord, SMS, etc.) so I make sure I make it to work for them!
Click on the Workflow tab on the left, or on any of the steps, to see the code for this workflow.
list_events_in_next_n_hours
step to connect your Google Calendar account.check_last_notification_time
step, we check to see if we've already sent a notification today (you should only get one blast of messages per day). This timezone logic is tied to UTC, so you may need to use the utcToZonedTime
method of the date-fns
library to apply a timezone to the ISO timestamp from the last notification time. This ensures you'll only send a message per day in your timezone.