jeffwilliams / nest-scrape Goto Github PK
View Code? Open in Web Editor NEWScrape Nest temperature sensor information from the Nest website
Scrape Nest temperature sensor information from the Nest website
I'm using go version go1.18.4 darwin/arm64
The install instructions say If Go is installed, this should be as easy as go get github.com/jeffwilliams/nest-scrape
It really looks like the install command is go install github.com/jeffwilliams/nest-scrape@latest
me@mes-Mac-Studio ~/D/c/projects> go get github.com/jeffwilliams/nest-scrape
go: go.mod file not found in current directory or any parent directory.
'go get' is no longer supported outside a module.
To build and install a command, use 'go install' with a version,
like 'go install example.com/cmd@latest'
For more information, see https://golang.org/doc/go-get-install-deprecation
or run 'go help get' or 'go help install'.
me@mes-Mac-Studio ~/D/c/projects> go install github.com/jeffwilliams/nest-scrape
go: 'go install' requires a version when current directory is not in a module
Try 'go install github.com/jeffwilliams/nest-scrape@latest' to install the latest version
me@mes-Mac-Studio ~/D/c/projects> go install github.com/jeffwilliams/nest-scrape@latest
go: finding module for package gopkg.in/yaml.v2
go: finding module for package github.com/ogier/pflag
go: finding module for package github.com/njasm/marionette_client
go: found github.com/njasm/marionette_client in github.com/njasm/marionette_client v0.0.7
go: found github.com/ogier/pflag in github.com/ogier/pflag v0.0.1
go: found gopkg.in/yaml.v2 in gopkg.in/yaml.v2 v2.4.0
me@mes-Mac-Studio ~/D/c/projects>
Jeff,
I KNEW someone would have devised this workaround to Nest's unresponsiveness in providing API access to the temperature sensor. Thanks!
I executed the command and it just sat there staring at me. So I ran it with verbosity:
nest-scrape -v 1
browser: running browser using cmd '/usr/bin/firefox --marionette --headless --profile /home/pi/.nest-scrape/firefox-profile'
dial tcp 127.0.0.1:2828: getsockopt: connection refused
browser: retrying connection in 1 second
dial tcp 127.0.0.1:2828: getsockopt: connection refused
browser: retrying connection in 1 second
...
The connection refused
message is repeated until I interrupt it with Ctrl-C
. Can you provide some guidance as to what the issue might be?
Thank you.
Mike
me@mes-Mac-Studio ~/D/c/p/nest-scrape> nest-scrape --verbose=1 --show=true --login-only=true
browser: running browser using cmd '/Applications/Firefox.app/Contents/MacOS/firefox --marionette --profile /Users/me/Documents/code/projects/nest-scrape'
dial tcp 127.0.0.1:2828: connect: connection refused
browser: retrying connection in 1 second
2022-07-17 23:25:01.534 plugin-container[60340:934591] nil host used in call to allowsSpecificHTTPSCertificateForHost
2022-07-17 23:25:01.534 plugin-container[60340:934591] nil host used in call to allowsAnyHTTPSCertificateForHost:
2022-07-17 23:25:01.536 plugin-container[60340:934591] nil host used in call to allowsSpecificHTTPSCertificateForHost
2022-07-17 23:25:01.536 plugin-container[60340:934591] nil host used in call to allowsAnyHTTPSCertificateForHost:
2022-07-17 23:25:01.536 plugin-container[60340:934602] nil host used in call to allowsSpecificHTTPSCertificateForHost
2022-07-17 23:25:01.536 plugin-container[60340:934602] nil host used in call to allowsAnyHTTPSCertificateForHost:
Navigating to site
UNSUPPORTED (log once): POSSIBLE ISSUE: unit 1 GLD_TEXTURE_INDEX_2D is unloadable and bound to sampler type (Float) - using zero texture because texture unloadable
Checking if login is required
Waiting for thermostat location to load (element css selector .puck-item > a)
Finding thermostat location (element with id .puck-item > a)
Waiting for login field to load (element id email)
Finding login field (element with id email)
Error: When finding login field by id email, got an error: Unable to locate element: email
Login failed: When finding login field by id email, got an error: Unable to locate element: email
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.