Thisappgetsthetemperatureoftheremotesensor.It'sasuperhackyworkarounduntilNestreleasestheirofficialAPIforthis.Itmightstopworkingatanytime.
ThisappisbuiltforaPAAShostlikeHeroku.Youcanrunthislocallybyusingnodeindex.js
GettingstartedFirstyouneedtogettheUDIDoftheremotesensor.Youcandothisbyrunningnodeindex.jsandvisitinglocalhost:5000/get-udid.ThiswilllogaJSONresponseoftheremotesensors.GrabtheUDIDandrequesttotemperaturebyvisitinglocalhost:5000/get-temp/UDID
UsewithhomebridgeUsethehomebridge-http-tempmoduletogetthedatafromthisnodeapp.
HereistheconfigIused(replace11A111AAA11A1111withyourUDID):
"accessories":[{"accessory":"HttpTemperature","name":"AnotherRoom'sName","url":"https://192.168.1.210/get-temp/11A111AAA11A1111","http_method":"GET","field_name":"temperature","update_interval":"600000ms","manufacturer":"Nest","model":"RemoteSensor","units":"F"}]ReplacetheURLwiththehostnameorIPthisnodeapp.
评论