GithubHelp home page GithubHelp logo

wizrb's People

Contributors

bert-mccutchen avatar ppostma avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

Forkers

ppostma

wizrb's Issues

Works with Filament ST64 and some comments

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:

  1. 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?

  2. 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.

  3. 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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.