Connecting Java standalone server to Nest cloud via Firebase-Api

不打扰是莪最后的温柔 提交于 2019-12-12 01:57:59

问题


I would like to connect a Java application to the Nest-Cloud via the Firebase-Api. The application is as simple as reading the setpoint of a nest thermostat.

I spent a lot of time on developer.nest.com and firebase.com to find the required information, but failed.

  1. What is actually the base url, where the firebase is located? seems not to be home.nest.com

  2. How can I authenticate without user interaction? I tried FirebaseSimpleLogin, but the implementation depens on Android, which is not my platform.

Thanks for your help.


回答1:


For 1) I don't know for sure, but have you tried https://api.home.nest.com and https://developer-api.nest.com?

2) The user has to authenticate and allow the client you're developing at least once. You'll need to get an authorization code, which you get from the client page on the Nest developer site. The code is six characters I think, and you'll have to include that in your code or assign to a variable and call it.

Take a look at another entry I made. If nothing else, it might help you get a little farther down your rabbit trail.



来源:https://stackoverflow.com/questions/24615141/connecting-java-standalone-server-to-nest-cloud-via-firebase-api

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!