chrisjshull / homebridge-nest

Nest plugin for HomeBridge
707 stars 111 forks source link

I clearly have two left feet #498

Closed ryannell closed 2 years ago

ryannell commented 2 years ago

First off thank you so much for developing this. Am beyond excited to try controlling my Nest Thermostat via Homebridge. I'm trying to follow the instructions (oh no) but getting stuck at the Google Account section.

Here's what I have done: (1) I installed the Homebridge-Nest plugin via the Homebridge UI (online portal). (2) Via the Homebridge UI I have edited the config.json to include the required settings:

{ "name": "Nest Thermostat", "platform": "Nest", "options": [], "refreshToken": "" }

(3) I'm now at the stage where I need to find the refresh token from Google.

(4) I have followed your instructions to "navigate to the directory where this plug-in is installed: (for me this is /Users/ryannell/Dropbox/Mac (2)/Documents/GitHub). You'll see that I've allowed DropBox to back up my core Mac folders, and so Documents is relocated into the dropbox location...

(5) I then opened Terminal at the above directory and ran: "node login.js"

(6) Terminal however then gives me the following error code:

Last login: Mon Jan 24 16:28:38 on ttys000 ryannell@Reinharts-MacBook-Pro homebridge-nest % node login.js node:internal/modules/cjs/loader:936 throw err; ^

Error: Cannot find module 'axios' Require stack:

Error: Cannot find module 'axios' Require stack:

Please could you help point out what I've done wrong. Thanks immensely, Ryan

adriancable commented 2 years ago

Ryan, Thanks for reaching out. If you’ve installed the homebridge-nest plug-in via the Homebridge UI, then it will not be in the folder you say it is (/Users/ryannell/Dropbox/Mac (2)/Documents/GitHub) which sounds like something you’ve manually downloaded from GitHub.

Please locate the plug-in where the Homebridge UI has installed it. Then, run ‘node login.js’ from that folder. You don’t need to download anything from GitHub. Hope this helps.

-Adrian

From: ryannell @.> Date: Monday, January 24, 2022 at 2:04 PM To: chrisjshull/homebridge-nest @.> Cc: Subscribed @.***> Subject: [chrisjshull/homebridge-nest] I clearly have two left feet (Issue #498)

First off thank you so much for developing this. Am beyond excited to try controlling my Nest Thermostat via Homebridge. I'm trying to follow the instructions (oh no) but getting stuck at the Google Account section.

Here's what I have done: (1) I installed the Homebridge-Nest plugin via the Homebridge UI (online portal). (2) Via the Homebridge UI I have edited the config.json to include the required settings:

{ "name": "Nest Thermostat", "platform": "Nest", "options": [], "refreshToken": "" }

(3) I'm now at the stage where I need to find the refresh token from Google.

(4) I have followed your instructions to "navigate to the directory where this plug-in is installed: (for me this is /Users/ryannell/Dropbox/Mac (2)/Documents/GitHub). You'll see that I've allowed DropBox to back up my core Mac folders, and so Documents is relocated into the dropbox location...

(5) I then opened Terminal at the above directory and ran: "node login.js"

(6) Terminal however then gives me the following error code:

Last login: Mon Jan 24 16:28:38 on ttys000 @.*** homebridge-nest % node login.js node:internal/modules/cjs/loader:936 throw err; ^

Error: Cannot find module 'axios' Require stack:

Error: Cannot find module 'axios' Require stack:

Please could you help point out what I've done wrong. Thanks immensely, Ryan

— Reply to this email directly, view it on GitHubhttps://github.com/chrisjshull/homebridge-nest/issues/498, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ABR54H2SXWSRZ233MIS77ITUXXEG7ANCNFSM5MWSQOJA. Triage notifications on the go with GitHub Mobile for iOShttps://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Androidhttps://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub. You are receiving this because you are subscribed to this thread.Message ID: @.***>

ryannell commented 2 years ago

Hi Adrian,

Huge thanks. I found a workaround - as you correctly pointed out the homebridge-nest plug in was an erroneous Github desktop download to confuse things! However I still couldn't locate the plug in. What I did instead was install the homebridge-nest-cam plugin, which gives an option in Homebridge UI to simply click a button to log into Google and get the refresh code. I took a chance that I could manually plug this into the config.json and low and behold it worked for homebridge-nest too! I saw a few other users on Reddit couldn't locate the plug in (strange but Mac OS seems to bury it somewhere Spotlight can't see). So this Homebridge UI option from nest-cam was swell.

Thanks again Ryan

On Mon, 24 Jan 2022 at 22:24, Adrian Cable @.***> wrote:

Ryan, Thanks for reaching out. If you’ve installed the homebridge-nest plug-in via the Homebridge UI, then it will not be in the folder you say it is (/Users/ryannell/Dropbox/Mac (2)/Documents/GitHub) which sounds like something you’ve manually downloaded from GitHub.

Please locate the plug-in where the Homebridge UI has installed it. Then, run ‘node login.js’ from that folder. You don’t need to download anything from GitHub. Hope this helps.

-Adrian

From: ryannell @.> Date: Monday, January 24, 2022 at 2:04 PM To: chrisjshull/homebridge-nest @.> Cc: Subscribed @.***> Subject: [chrisjshull/homebridge-nest] I clearly have two left feet (Issue

498)

First off thank you so much for developing this. Am beyond excited to try controlling my Nest Thermostat via Homebridge. I'm trying to follow the instructions (oh no) but getting stuck at the Google Account section.

Here's what I have done: (1) I installed the Homebridge-Nest plugin via the Homebridge UI (online portal). (2) Via the Homebridge UI I have edited the config.json to include the required settings:

{ "name": "Nest Thermostat", "platform": "Nest", "options": [], "refreshToken": "" }

(3) I'm now at the stage where I need to find the refresh token from Google.

(4) I have followed your instructions to "navigate to the directory where this plug-in is installed: (for me this is /Users/ryannell/Dropbox/Mac (2)/Documents/GitHub). You'll see that I've allowed DropBox to back up my core Mac folders, and so Documents is relocated into the dropbox location...

(5) I then opened Terminal at the above directory and ran: "node login.js"

(6) Terminal however then gives me the following error code:

Last login: Mon Jan 24 16:28:38 on ttys000 @.*** homebridge-nest % node login.js node:internal/modules/cjs/loader:936 throw err; ^

Error: Cannot find module 'axios' Require stack:

  • /Users/ryannell/Dropbox/Mac (2)/Documents/GitHub/homebridge-nest/login.js at Function.Module._resolveFilename (node:internal/modules/cjs/loader:933:15) at Function.Module._load (node:internal/modules/cjs/loader:778:27) at Module.require (node:internal/modules/cjs/loader:1005:19) at require (node:internal/modules/cjs/helpers:102:18) at Object. (/Users/ryannell/Dropbox/Mac (2)/Documents/GitHub/homebridge-nest/login.js:5:15) at Module._compile (node:internal/modules/cjs/loader:1101:14) at Object.Module._extensions..js (node:internal/modules/cjs/loader:1153:10) at Module.load (node:internal/modules/cjs/loader:981:32) at Function.Module._load (node:internal/modules/cjs/loader:822:12) at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:81:12) { code: 'MODULE_NOT_FOUND', requireStack: [ '/Users/ryannell/Dropbox/Mac (2)/Documents/GitHub/homebridge-nest/login.js' ] } @. homebridge-nest % run: node login.js zsh: command not found: run: @. homebridge-nest % node login.js node:internal/modules/cjs/loader:936 throw err; ^

Error: Cannot find module 'axios' Require stack:

  • /Users/ryannell/Dropbox/Mac (2)/Documents/GitHub/homebridge-nest/login.js at Function.Module._resolveFilename (node:internal/modules/cjs/loader:933:15) at Function.Module._load (node:internal/modules/cjs/loader:778:27) at Module.require (node:internal/modules/cjs/loader:1005:19) at require (node:internal/modules/cjs/helpers:102:18) at Object. (/Users/ryannell/Dropbox/Mac (2)/Documents/GitHub/homebridge-nest/login.js:5:15) at Module._compile (node:internal/modules/cjs/loader:1101:14) at Object.Module._extensions..js (node:internal/modules/cjs/loader:1153:10) at Module.load (node:internal/modules/cjs/loader:981:32) at Function.Module._load (node:internal/modules/cjs/loader:822:12) at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:81:12) { code: 'MODULE_NOT_FOUND', requireStack: [ '/Users/ryannell/Dropbox/Mac (2)/Documents/GitHub/homebridge-nest/login.js' ] } @.*** homebridge-nest %

Please could you help point out what I've done wrong. Thanks immensely, Ryan

— Reply to this email directly, view it on GitHub< https://github.com/chrisjshull/homebridge-nest/issues/498>, or unsubscribe< https://github.com/notifications/unsubscribe-auth/ABR54H2SXWSRZ233MIS77ITUXXEG7ANCNFSM5MWSQOJA

. Triage notifications on the go with GitHub Mobile for iOS< https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675> or Android< https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub . You are receiving this because you are subscribed to this thread.Message ID: @.***>

— Reply to this email directly, view it on GitHub https://github.com/chrisjshull/homebridge-nest/issues/498#issuecomment-1020610096, or unsubscribe https://github.com/notifications/unsubscribe-auth/AGQ4QTGN5TQL4IEX7VE6ZDTUXXGS3ANCNFSM5MWSQOJA . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

You are receiving this because you authored the thread.Message ID: @.***>