dotmorten / lifxnet Goto Github PK
View Code? Open in Web Editor NEWA .NET library for controlling LIFX light bulbs
License: MIT License
A .NET library for controlling LIFX light bulbs
License: MIT License
At the moment, these types can't be serialized/deserialized in UWP (no reflection as a workaround). I don't want to have to rely on device discovery upon app startup before issuing commands to cached light bulbs and the Lifxnet API only accepts Lightbulb instances for telling it where to send commands.
An alternative would be to provide API overloads allowing MAC, IP, port params etc and I can just cache that data instead rather than Lightbulb instances.
Thanks ;)
I have four lights, all functioning, all in the same room, same network.
2 of them are found and 2 of them are never found by the library. (it is always the same two)
What could be the reason for that?
See LIFX/lifx-protocol-docs#14 for updated spec
I ran into a System.Net.Sockets.SocketException
trying to initialize the LIFX client.
var task = LifxNet.LifxClient.CreateAsync();
{"An attempt was made to access a socket in a way forbidden by its access permissions"}
What's the best way to work around this? My first thought is to run as administrator or some other app manifest permission like "Private (Networks Client & Server)".
Thanks,
~Tim Graupmann
I'm trying the get the label of the device instead of just the Hostname, but the call to GetDeviceLabelAsync doesn't work. It just hangs and never returns.
Hey there!
I can't be 100%, but I think the version on NuGet needs to be updated.
Trying this with my project, I'm getting an socket error because it's trying to bind to the address multiple times.
However, in the source for the project, I see you've added socket.reuseaddr to the socket init code, so I'm assuming NuGet needs to be updated.
Could you do this, pretty please? :D
See protocol docs pull request: LIFX/lifx-protocol-docs#5
I'm working on a project where when i score in the game "Rocket League" i trigger my lights into a matching team color. So far i've succefully made it using the web api, though it's a bit slow, so i want to get it going over lan.
In the web api i can call a function that changes the hue over time smoothly, though i can't seem to find anything like that with your library.
This is what it looks like in action, it changes slowly back to the color it was before scoring: https://imgur.com/a/FjoSa
I run this from within Kubernetes, That means it doesn't have ability to broadcast/scan my home network, therefore I can't use this - but dang, so close - thanks.
Group messages recently added to documentation: LIFX/lifx-protocol-docs#15
I have a virtual ethernet card added on my system from the installation of Docker in Hyper-V. It is a NAT interface so it doesn't really go anywhere. When this interface is enabled, LifxNet is not able to detect lights on my network. As soon as I disable it, detection works perfectly. I'm not sure what other diagnostic info I can provide, so please let me know and I will be happy to help.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.