简体   繁体   English

如何使用 node/python 从本地网络外部访问 Hue Lights?

[英]How do I access Hue Lights from outside the local network using node/python?

Is it possible to use node/python for remote access to hue lights?是否可以使用 node/python 远程访问色调灯? All the 3rd party libraries seem to assume local access and don't address remote access.所有第 3 方库似乎都假定本地访问,而不是远程访问。

Philips has a Remote API ( https://developers.meethue.com/develop/hue-api/remote-api-quick-start-guide/ ).飞利浦有一个远程 API ( https://developers.meethue.com/develop/hue-api/remote-api-quick-start-guide/ )。 To use it, you'll need to create a developer account through Philips to register and implement an OAUTH authentication flow in your application.要使用它,您需要通过 Philips 创建一个开发者帐户,以在您的应用程序中注册和实施 OAUTH 身份验证流程。

The commands to control lights through the remote API is identical to what you would do through your local network - you'll just send authenticated requests through the Philips cloud where they'll be routed to the home your user's home Bridge.通过远程 API 控制灯的命令与您通过本地网络执行的操作相同 - 您只需通过飞利浦云发送经过身份验证的请求,这些请求将被路由到您用户的家庭网桥。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM