Hi I’m new in lifx development working on lifx control application .
As per my understanding
There is 2 option to connect lifx bulb.
1)API
2 LAN protocol
First we successfully control bulb with lifx api .but issue is tha token generate on user id and password via lifx page .
There is no external api found to get token.
I don’t know how to run LAN protocol
What is on and off (hex message )
Where we run this action
Read lifx documents but not clearly understand .
Any one help me wo to on and off bulb via LAN protocol.
With detail method
Thank is advance
I suggest to read the source code of the various open source libraries already implemented. Some examples:
Python
- GitHub - mclarkk/lifxlan: Python library for accessing LIFX devices locally using the official LIFX LAN protocol.
- GitHub - frawau/aiolifx: Python 3 /asyncio library for Lifx
JavaScript (Node.js)
- GitHub - node-lifx/lifx-lan-client: Canonical fork of the number one Node.js 💡 LIFX LAN protocol implementation.
- GitHub - futomi/node-lifx-lan: The node-lifx-lan is a Node.js module which allows you to communicate with the Wi-Fi LED smart light products "LIFX" using the LAN protocol.
Simple Node.js app utilising lifx-lan-client:
1 Like