Transfers all Frigate clips that have not yet been uploaded to Google Drive.
Use this project https://github.com/kankadev/frigate-gdrive-instant-uploader instead if you want to upload clips instantly after they have been recorded by Frigate.
- python 3.8
- clone this repository
- rename
env_example
to.env
and change values to your needs - run
python setup.py
in project root directory to install all required packages - create a project in google cloud console and enable drive api
- download the credentials json file from Google and copy its content to
credentials/google_drive_credentials.json
- run
python main.py
in project root directory, e.g. as a cronjob every minute to check for new clips and upload them every minute
- "real time" upload of clips instead of cronjob, check MQTT documentation for Frigate
- log rotation
- clean up SQLite database automatically frequently
- push notifications in case of errors (e.g. telegram bot, Discord, Mattermost, Gotify, etc.)
- dockerize this project