
Security News
Follow-up and Clarification on Recent Malicious Ruby Gems Campaign
A clarification on our recent research investigating 60 malicious Ruby gems.
Command Line Interface to the Philips Hue lighting system.
To begin using, install the ruby gem (this requires ruby 1.9 and rubygems)
$ gem install hue-cli
This will install the "hue" command.
To check the bridge state, simply type
$ hue
If this is the first time the command is run, it will scan for bridges on the network and attempt to register the application. Follow the on-screen instructions to do so.
You can also explicity register the application with
$ hue register
Once registered, examine the current state of the bridge.
$ hue
Philips Hue
Button pressed: false
Timestamp: 2013-09-02T17:44:10
Network configuration:
IP: 196.168.0.1
Gateway: 196.168.0.255
Mask: 255.255.255.0
DHCP: true
MAC: 00:00:00:00:00:00
Proxy: none:0
Applications:
073f2ed95fcbbef2532c751dd404cc9d : hue-cli
Lights:
1. Living Overhead - OFF
2. Living Cabinet - OFF
3. Living Corner Lamp - OFF
$ hue lights
1. Bedroom - Overhead: ON
Brightness: 254 (100%)
Color: XY=[0.6736, 0.3221], RGB\u2248[255, 60, 40]
2. Living Room - Cabinet: OFF
Brightness: 142 (56%)
Color: XY=[0.674, 0.322], RGB\u2248[255, 60, 40]
3. Living Room - Overhead: ON
Brightness: 254 (100%)
Color: Temperature=2710°K (369 mired), RGB\u2248[255, 166, 87]
$ hue lights find
Examine the state of a single light
$ hue light 1
or just
$ hue 1
1. Bedroom - Overhead: ON
Brightness: 254 (100%)
Color: XY=[0.6736, 0.3221], RGB\u2248[255, 60, 40]
Change a single light state with the follow (rather self-explanatory) commands
$ hue 1 on
$ hue 1 off
$ hue 1 flash
$ hue 1 blink
$ hue 1 solid
Brightness can be set with a value (0-255) or percentage (0%-100%)
$ hue 1 brightness 200
$ hue 1 brightness 50%
$ hue 1
Living Overhead: ON
Brightness: 128 (50%)
Color: Temperature=2012°K (497 mired), RGB≈[255, 136, 13]
The color command takes 1-3 arguments, each interpreted depending on range and value.
Set to 6500 Kelvin.
$ hue 1 color 6500
$ hue 1
Living Overhead: ON
Brightness: 128 (50%)
Color: Temperature=6500°K (153 mired), RGB≈[255, 254, 250]
Set to 240 mired.
$ hue 1 color 240
$ hue 1
Living Overhead: ON
Brightness: 128 (50%)
Color: Temperature=4167°K (240 mired), RGB≈[255, 208, 170]
Set the hue and saturation.
$ hue 1 color 30000 255
$ hue 1
Living Overhead: ON
Brightness: 128 (50%)
Color: Hue=30000, Saturation=255, RGB≈[0, 255, 190]
Set the XY
$ hue 1 color 0.25 0.25
$ hue 1
Living Overhead: ON
Brightness: 128 (50%)
Color: Hue=30000, Saturation=255, RGB≈[0, 255, 190]
All the single light state commands can be applied to all lights.
$ hue lights brightness 50%
The following state aliases exist and can be used on all or single lights.
$ hue 1 relax
$ hue lights energize
$ hue 1 reading
$ hue 1 concentrate
$ hue 1 red
$ hue 1 blue
$ hue 1 green
$ hue 1 white
$ hue 1 pink
Dump the current state of the light, this will display the current state as a JSON hash. This can then be pasted into your local (~/.hue-cli/light_alias.yml) or system (/etc/hue/light_alias.yml) alias files.
$ hue 1 dump
$ hue lights dump
Paste into your file like this:
"yellow": {"on":true,"bri":254,"xy":[0.4823,0.4621],"alert":"none","effect":"none"}
FAQs
Unknown package
We found that hue-cli demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
A clarification on our recent research investigating 60 malicious Ruby gems.
Security News
ESLint now supports parallel linting with a new --concurrency flag, delivering major speed gains and closing a 10-year-old feature request.
Research
/Security News
A malicious Go module posing as an SSH brute forcer exfiltrates stolen credentials to a Telegram bot controlled by a Russian-speaking threat actor.