potmat / homebridge-google-nest-sdm

A Homebridge plugin for Google Nest devices that uses the Google Smart Device Management API. Supports Cameras, Doorbells, Displays, and Thermostats. Includes support for HomeKit Secure Video.
ISC License
155 stars 17 forks source link

Add a button to "autofill" Refresh Token #16

Open potmat opened 2 years ago

potmat commented 2 years ago

The process of getting the refresh token is difficult and error prone, especially for people who are not computer savvy (e.g. using a "curl" command). It should be possible to have a button in the config UI that will open the authentication screen and get the value.

krehman commented 2 years ago

Can you not potentially use the Terminal in Homebridge UI?

Daxulan commented 2 years ago

yes i'm blocked at this point , i have all my code but curl is a mystery for me and i try but don't work ..

krehman commented 2 years ago

I did this process a while back so don't really recall off the top of my head, but anywhere in the instructions, e.g. Use the API, it asked to use the curl command, I just opened up the Terminal from the Homebridge-UI under the menu and inputted the command.

image