Giter Site home page Giter Site logo

nest-remote-sensor's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

nest-remote-sensor's Issues

Support Two-factor authentication

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

Always 56°c and not

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);                                                                                                             
}

Invalid credentials

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?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.