This integration uses Rocket.Chat incoming webhook. With this integration, you get your event notifications right into Rocket.Chat.
A Google Cloud Platform project with the Google Calendar API enabled. To create a project and enable an API, refer to .
Prepare authorization credentials for a desktop application. To learn how to create credentials for a desktop application, refer to (make sure you download the JSON file).
Have a for the event messages to be posted.
Go to Administration > Workspace > Integration.
Click +New > Incoming.
Turn on Enabled.
Enter a name for the integration.
Enter the channel name where the integration messages are to be posted in the Post to Channel field.
Enter an existing username the integration uses to post as that user in the Post as field.
Optionally enter an alias that appears before the username in the Alias field.
Enter an image URL to use as the avatar for this integration in the Avatar URL field if you have one.
Optionally enter an emoji to use as the avatar instead in the Emoji field.
Turn on Script Enabled.
Copy and paste the contents of in the Script field.
Scroll to the bottom of the screen and click Save.
The webhook URL is generated upon saving successfully saving the integration in the Webhook URL field.
The integration program runs on a server, periodically grabs the event data from your calendar, and sends that data to your Rocket.Chat server to be processed and sent to the channel you set up in the previous section.
To install the integration program:
Edit your bashrc
, zshrc
or fish
config and add $(go env GOPATH)/bin
to your PATH
. This way you won't have to specify the whole path to the command every time. Use the help option to learn all the command line options and modify its execution process - rocketchat-google-calendar -h
. Running the command gives an output that looks like this:
Enter the appropriate values for the respective options. The full command should be like this:
Click the link which prompts you to authorize the app to use your Google account.
Once you get the token, please copy and paste it on the terminal and hit enter.
Your integration is now running.
The example command above fetches the event data from the Google servers every 5 minutes. You can change that behavior however you like.
One everyday use case is to be notified about all the meetings/events daily in the morning. You can achieve this by combining the two flags -eventin
and -waitfor
.
Use 24h
for both of those options. This way, the integration program fetches data every 24 hours, lists the events that will occur in those 24 hours, and sends them to your configured channel.
Install the and then run the go get github.com/debdutdeb/rocketchat-google-calendar
command in your terminal.