Sync UGVLE assignment with Google Calender
A credentials.json
file from a Google Cloud Platform project is needed to used the Calender API.
- Create a new Google Cloud Platform project (https://console.cloud.google.com/projectcreate).
- Goto APIs & Services > Credentials
- Create a 'OAuth2 Client ID' from 'CREATE CREDENTIALS'
- Select 'Desktop App' as the application type and enter a name for the credentials
- Finish creation using 'CREATE'
- Download the credentials and move it to the
karma
directory
Note:
Google Calender API
should be enabled from the console's API library.
Use setup.py
to create an environment for scripts to be run.
- Change permissions of
setup.sh
sudo chmod 755 setup.sh
- Run the
setup.sh
./setup.sh
Run karma
scripts using run.sh
.
- Create
run.sh
cp run.sh.sample run.sh
-
Change
<username>
and<password>
insiderun.sh
to UGVLE username and password respectively -
Change permissions of
run.sh
sudo chmod 755 run.sh
- Run the
run.sh
./run.sh
Setup up a cron job to run run.sh
in intervals to automatically sync assignments with Google Calender.
Check out how to create a cron job.
"THE BEER-WARE LICENSE"
<mail@udesh.xyz> wrote this files. As long as you retain this
notice you can do whatever you want with this stuff. If we meet
some day, and you think this stuff is worth it, you can buy me
a beer in return.
Udesh Kumarasinghe
Udesh Kumarasinghe – @ThatUdeshUK