bert-mccutchen / wizrb Goto Github PK
View Code? Open in Web Editor NEWState management for Philips Wiz devices.
License: MIT License
State management for Philips Wiz devices.
License: MIT License
Hi,
Recently I bought a Filament amber ST64 E27 and was happy to find a Ruby library for the WiZ lights. Thanks for creating this!
I can confirm that the ST64 works correctly. It's detected as a "TunableLight", powering on/off, setting brightness and color temp, all seems to work as expected. There are a few things however:
The gem on rubygems.org is empty, there are no files in it. Pointing the gem source to the GitHub repo works, so I think something went wrong with packaging?
The minimum ruby version is 3.0.0. I'm using a raspberry Pi with a Raspbian packaged Ruby which is version 2.5. I'm not sure if you want to support older Ruby versions, but I can confirm that the gems works with Ruby 2.5.
I had some problems understanding the brightness level. The gem says "Brightness must be between 10 and 255", but below 25 I get an error (32602, Invalid params). So the range seems to be 25-255 (or 10-100 for the device). Perhaps mapping the values from 1-255 to 10-100 would be a bit easier to understand? (or maybe map from 1-100)
Also, would you accept a PR to add a shortcut to set the brightness level?
def brightness(value)
dispatch_event(Wizrb::Lighting::Events::SetBrightnessEvent.new(value))
end
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.