francisschmaltz / nest-remote-sensor Goto Github PK
View Code? Open in Web Editor NEWNodeJS app to expose an endpoint for Nest Remote Temperature Sensors
License: MIT License
NodeJS app to expose an endpoint for Nest Remote Temperature Sensors
License: MIT License
Hello,
This module work really fine, thanks a lot for the share !
Can you please have a check if you can support Nest Support Two-factor authentication ?
If enabled, you can have the error here:
Nest Remote Sensor app listening on port 5005!
checking temp for sensor : XXXXXXXXXXXXXXXX
no temp set - pulling from remote
Promise ran
/nest-remote-sensor/node_modules/nest-api/lib/nest-api.js:57
session.urls.transport_url = url.parse(session.urls.transport_url);
^TypeError: Cannot read property 'transport_url' of undefined
at /nest-remote-sensor/node_modules/nest-api/lib/nest-api.js:57:59
at IncomingMessage. (/nest-remote-sensor/node_modules/nest-api/lib/nest-api.js:120:18)
at IncomingMessage.emit (events.js:187:15)
at endReadableNT (_stream_readable.js:1094:12)
at process._tickCallback (internal/process/next_tick.js:63:19)
Best regards,
Quentin
Hi Francis,
Thanks for you code, it's really appreciated !
What i did:
apk add redis
redis-server --daemonize yes
apk add git
git clone https://github.com/francisschmaltz/nest-remote-sensor.git
cd nest-remote-sensor/
npm install
vi udid.js (edit Nest account)
node udid.js
Result;
'18B430CB93F56F9B':
{ '$version': -4883,
'$timestamp': 1539266973330,
where_id: '00000000-0000-0000-0000-000100000006',
current_temperature: 19.09999,
battery_level: 100,
last_updated_at: 1539266971,
serial_number: '22AA01AC12180YPJ',
model: 'KR1',
structure_id: 'cd6baee0-b418-11e6-960b-22000bffc758' },
FIY: I have 3 sensors
vi index.js and add nest account replace UIID for 18B430CDB4F9D5BB
/nest-remote-sensor # node index.js
Nest Remote Sensor app listening on port 5005!
Checking Temp
Temp in redis = 56
Do you have an idea ?
EDIT: Return was in Fahrenheit;
function tempConvert(celTemp) {
var fahrTemp = celTemp * 9 / 5 + 32;
// Round temp for homekit
return Math.round(fahrTemp);
}
I had to change my Nest password and after the change I’m receiving an error on my RPi terminal that this app is receiving invalid credentials.
I have been using the token method for the nest homebridge config but it appears that it’s still reporting into homebridge correctly where as my 2 sensors give me the error. Any clue what’s going on?
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.