go-lifx
go-lifx copied to clipboard
Go implementation of the LIFX bulb protocol, including a command line client, a client library, and a debug-oriented traffic snooper
Initially I forked this to simply add the missing types that are documented on the lifx API docs, but I've added a couple of other things which are useful to...
Not totally sure that something else is at play but `lifx-snoop` is totally silent when using the Android (and possibly other) app to change colours or light state. The bulbs...
Currently non-functional and `panic`ing! Prior art: - https://github.com/eapache/channels - https://github.com/mattn/go-pubsub/blob/master/example/example.go There doesn't seem to be great options for broadcasting to multiple arbitrary channels
(plucked from [the README](https://github.com/bjeanes/go-lifx/blob/master/cli/lifx-snoop/README.md)) - [x] Filtering by type (light, device, sensor, wifi, etc) — #13 - [ ] Filtering by device (specific light, tabel, gateway, etc) - [ ]...
``` sh-session $ go run cli/lifx-snoop/*.go DATA: length=37 000 REDACTED ERR: Unexpected payload size for *payloads.WanStateConnect DATA: length=36 000 REDACTED ERR: Unexpected payload size for *payloads.WanSub DATA: length=36 000 REDACTED...
Because currently: ``` sh-session $ go run cli/lifx/lifx.go list Discovered bulbs: 👧 👦 📈 🔭 📚 👧 👦 📈 🔭 📚 👧 👦 📈 🔭 📚 👧 👦 📈 🔭...
In my local branch I'm trying to plug `list`/`on`/`off` into the primary CLI, but discovery isn't working: ``` sh-session $ go run cli/lifx/lifx.go list I heard something, and it was...