This module implements the rdk generic API in a coderscafe:calendar:google-calendar model. With this module, you can read and write events on your Google Calendar.
Ensure you have generated a service account file from the Google Cloud Console, if not follow the steps from here.
To use this module, follow these instructions to add a module from the Viam Registry and select the coderscafe:calendar:google-calendar
module.
Note
Before configuring your generic, you must create a machine.
- Navigate to the Config tab of your robot’s page in the Viam app.
- Click on the Services subtab and search for
coderscafe:calendar:google-calendar
. - Select the
coderscafe:calendar:google-calendar
model. - Enter a name for your generic service and click Create.
- Save and wait for the service to finish setup.
On the new service panel, copy and paste the following attribute template into your generic’s Attributes box:
{
"calendar_id": calendar-id,
"service_account_file": path-of-service-account-json-file
}
Note
For more information, see Configure a Robot.
The following attributes are available for coderscafe:calendar:google-calendar
module:
Name | Type | Inclusion | Description |
---|---|---|---|
calendar_id |
string | Required | ID of your Calendar |
service_account_file |
string | Required | Path to your Service Account JSON file |
{
"calendar_id": calendar-id,
"service_account_file": path-of-service-account-json-file
}