Skip to content

Instantly share code, notes, and snippets.

@ongeelim
ongeelim / createCredential.py
Last active May 17, 2025 13:29
Daily Timelapse Video Capture and Upload to Youtube
#!/usr/bin/python
# Note that if you're using Youtube Data API 3 for testing/internal use (and not production purposes), the credentials can only last
# for a week, so be sure to update credentials every week by running this python script
# You can either:
# - Run this script on personal computer to generate credentials.json, and then copy that file to your Raspberry Pi remotely, or
# - Run this script on Raspeberry Pi remotely via VNC (Do not use remote SSH as running this script will automatically launch browser for
# Google re-authentication) to generate credentials.json
import json