13 unstable releases (3 breaking)

Uses old Rust 2015

0.3.2 Aug 13, 2017
0.3.1 Feb 4, 2017
0.2.4 Jan 15, 2017
0.2.1 Dec 24, 2016
0.0.4 Dec 4, 2016

#279 in Hardware support

44 downloads per month
Used in hue_persistence

MIT license

45KB
784 lines

philipshue

Build Status AppVeyor Build Status Crates.io Licence Docs.rs

Library for interacting with the Hue API in order to control Hue lights.

The goal of this library is to provide an easy way of interacting with the Hue API using Rust.

Current features

  • Discovering a bridge by querying the Philips Hue website or via UPnP (currently requires nightly)
  • Finding, manipulating and deleting lights from the bridge
  • Define, get and manipulate groups of lights from the bridge

SSL problems, when building with UPnP feature

When building, you might encounter problems with OpenSSL. You may have to manually tell Rust where OpenSSL is located through environment variables. Have a look at the README of rust-openssl for more help.

If you'd rather like to not use SSL, you can disable it by turning off default features and use UPnP for discovering instead:

[dependencies.philipshue]
version = "*"
default-features = false
features = ["unstable"]

Although this currently requires using nightly Rust.

Dependencies

~9.5MB
~223K SLoC

ʐY