- Python 3.11
- Install required packages using
pip install -r .\requirements.txt
- Check that the constants and other variables are correct in
raatikalenteri.py
andcal_setup.py
- Create a
.env
file using the example file.env.example
- Create a Google service account with Google Sheets and Google Calendar permissions in Google Cloud Console. Export the service account info as a json and store it on the project root as
service_account_credentials.json
- Create a Google OAuth Client ID in Google Cloud console. Export the client id as a json and store it on the project root as
client_secret.json
- Share the calendar sheets to the created google service account using the account's email. The service account should have editor permissions.
- Run
raatikalenteri.py
with Python
Additionally a script can be created to run the updates for example on startup. A bat file already exists in the repository for this.