问题标签 [lifx]

For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.

0 投票
1 回答
413 浏览

python - UDP广播后监听哪个端口?

我正在使用智能灯泡。它们具有允许与设备通信的 LAN 协议。第一步是发现网络上的所有设备。在文档中,它说我可以在端口 56700 广播 udp 消息,我会得到所有设备的响应。但我不确定我应该听哪个端口。我正在收听同一个端口,我只收到广播消息,但没有收到灯泡的回复。我正在使用 IP 地址 255.255.255.255 进行广播,并且我正在使用 python。

0 投票
1 回答
51 浏览

wifi - WiFi connected LED without app requirement

I want to switch the color of a wifi LED light from my computer for a project. Ive looked around and found that the LIFX LEDs and the Philips Hue both have pretty ok APIs for this, however they seemingly (as fas as i can tell) both require that you control their respective apps (iPhone/Android) which in turn then controls the light. I dont want this, but rather just a LED bulb i can control directly from an interface i build on my computer.

Is there a work around im not aware off? Or is there another LED bulb (it has to be a bulb, im not interested in wires) that can solve this? Please advice.

Cheers,

0 投票
1 回答
166 浏览

node-red - 将 msg.payload 作为值插入 LIFX 节点

我想通过将 NodeRed 仪表板上的滑块值注入node-red-contrib-lifx-api节点来控制 LIFX 灯泡的亮度。如果我使用固定值,我设法控制了灯光,但不知何故它不会采用 msg.payload 参数。此外,调试流上不会显示任何错误消息。

我的流程如下所示:

截屏

{{msg.payload}}在这个领域使用正确的语法吗?双括号{{在我的其他节点上工作,所以我也在这里使用它们。