Obtaining Credentials
In order to start using Nest RTSP, youll need a Google Cloud Platform account, and a Google Device Access Console account.
Create and configure Cloud Project
- Open the Google Cloud Console
If this is your first time here, you likely need to create a new Google Cloud project. Click then .
- Give your Cloud Project a name then click .
- Go to APIs & Services > Library where you can enable APIs.
From the API Library search for Smart Device management and click .
Configure OAuth Consent Screen
- Open the Google Cloud Console
- Click OAuth consent screen and configure it.
Select External (the only choice if you are not a G-Suite user) then click .
- The App Information screen needs you to enter an App name and User support email, then enter your email again under Developer contact email. These are only shown while you later go through the OAuth flow to authorize Nest RTSP to access your account. Click . Omit unnecessary information (e.g. logo) to avoid additional review by Google.
- On the Scopes step click .
On the Test Users step, you need to add your Google Account (e.g., your @gmail.com address) to the list. Click on your test account then to finish the consent flow.
Navigate back to the OAuth consent screen and click to set the Publishing status to In Production.
The warning says your app will be available to any user with a Google Account which refers to the fields you entered on the App Information screen if someone finds the URL. This does not expose your Google Account or Nest data.
- Make sure the status is not Testing, or the Nest RTSP will need to be re-authenticated every 7 days.
Configure OAuth client_id
and client_secret
Open the Credentials page and click
From the drop-down list select:
OAuth client IDRequest user consent so your app can access the user's data- Choose Web Application for the Application type.
- Give your credentials a unique name which is meaningful to you
- Add Authorized redirect URIs and enter the protocol and hostname where Nest RTSP will be accessed (e.g.
http://nrtsp.mydomain.local:3000
) - You should now be presented with an OAuth client created message. Take note of Your Client ID and Your Client Secret as these are needed in later steps.
Create a Device Access project_id
Go to the Device Access Registration page. Click on the button .
Check the box to “Accept the Terms of Service” and click where you need to pay a fee.
- Now the Device Access Console should be accessible. Click on
Give your Device Access project a name and click .
Next you will be asked for an OAuth client ID which you created in the previous step and click .
Click . There is no need to enable events
- Take note of the Project ID as you will it later.