-
Notifications
You must be signed in to change notification settings - Fork 12
Google Photos: setting up automatic upload
Kevin Van den Abeele edited this page Aug 18, 2020
·
1 revision
To enable the upload to Google Photos functionality:
- Go to the Google Cloud Platform developer console
- Create a new project
- You will be redirected to the first page, here select the newly created project from the dropdown on the top left
- Select the
OAuth consent screen
from the left sidebar menu - Select
External
and continue - On the next screen only fill in a name for the application and click
save
- Select the
Credentials
from the left sidebar menu - Click
Create credentials
from the top and selectOAuth Client ID
from the dropdown options - Select
web application
, give it a name and fill in the callback URLs with:http://localhost:8080
for the first andhttp://localhost:8080/oauth2-callback
for the second entry (make sure the press return/enter to submit the values, as multiple ones are possible), then clickcreate
at the bottom of the page - Copy your Client ID and Client secret and store them safely
- Open your config.json, and add a
googlePhotos
object as described in the table above - Start your Homebridge instance, it will print out an url, open it in a browser and follow the login instructions
- The page where you will be redirected will display an error unless you are running Homebridge on the same machine as you are running the browser
- Copy the full url, replace the localhost (if Homebridge is not running on your current machine) in the address bar with the ip-address of your Homebridge device, visit the page, you should get the following message:
OAuth2 callback handled!
- You are now authenticated, and the refresh token has been saved to the previously created config file.
- The plugin will then create an album named
Homebridge-Unifi-Protect-Motion-Captures
, it will also store the ID of this album so the next time it is not created again (you can rename this album to anything you want) - Any detected motions (both normal and enhanced) will now be uploaded to the newly created album