limitless-led

A Ruby client library for controlling the LimitlessLED v3.0 RGBW color-changing light bulbs, based on the official LimitlessLED API documentation.

Usage

bridge = LimitlessLed::Bridge.new(host: '192.168.1.100', port: 8899)

bridge.all_on        # all lights are on
bridge.all_off       # all lights are off
bridge.white         # all lights are white
bridge.disco         # disco mode!
bridge.disco_faster  # disco mode faster
bridge.disco_slower  # disco mode slower

# change the color by calling #color with either a color string, integer, or Color::RGB object
# see: https://github.com/halostatue/color/blob/master/lib/color/rgb-colors.rb for a list
# of all the named colors
bridge.color 'Red'                # color is red
bridge.color Color::RGB::Red      # color is red
bridge.color 170                  # color is red

# adjust brightness on a scale from 2 - 27 (27 is full brightness)
bridge.brightness 27              # full brightness

# control a single group
group = bridge.group(1)           # supports up to 4 groups (1 - 4)
group.color 'Blue'
group.brightness 25

Note

We are not affiliated in any way with the manufacturers of Limitless LED. We just think they are cool.

Open Source by Hired

Hired is a marketplace for top engineering talent to find full-time technology jobs. Talented Ruby developers (like yourself) are in extremely high demand! On Hired, apply once and receive 5 to 15 competing job offers in one week from 800+ technology companies. Average Ruby engineer salaries on Hired are around $120,000 per year!

Hired

We are Ruby developers ourselves, and we use all of our open source projects in production. We always encourge forks, pull requests, and issues. Get in touch with the Hired Engineering team at [email protected].

License

The MIT License (MIT)

Copyright (c) 2013 Hired, Inc.

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.