A script used by wz_mini_hacks on a Wyze Cam to upload motion-detected recordings to Google Drive.
Wyze Cams offer the ability to upload video recordings to cloud, but only via paid subscription. This script is used alongside wz_mini_hacks on a compatible Wyze Cam to instead upload to a Google Drive account at no additional cost.
- Wyze Cam with wz_mini_hacks installed. I use a Wyze Cam Pan v2
- Google Drive account with API access enabled
- Motion-detection enabled
- Get wz_mini_hacks up-and-running on a compatible Wyze Cam
- Enable API access to your Google Drive account, making note of the client ID, client secret and refresh token. For reference:
- Download this repository's script and update the following variables, values enclosed in quotes:
CLIENTID
CLIENTSECRET
REFRESHTOKEN
RECORDINGDIR
- Copy the updated script to wz_mini/etc/rc.local.d on the Wyze Cam's microSD card
- Boot, and new motion-detected recordings will be uploaded to the root of your Google Drive in the naming-convention of
YYYYMMDD-HHMM.mp4
Use at your own risk. It's bad practise to hard-code credentials in a script, though the light-weight BusyBox Linux environment used by wz_mini_hacks made implementation of service accounts challenging. Thus, a Google account dedicated for use by this script is preferred.