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

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. Although this currently requires using nightly Rust.

On macOS

bash export OPENSSL_INCLUDE_DIR=`brew --prefix openssl`/include export OPENSSL_LIB_DIR=`brew --prefix openssl`/lib

On Windows

batch set OPENSSL_INCLUDE_DIR=C:\OpenSSL\include set OPENSSL_LIB_DIR=C:\OpenSSL\lib set OPENSSL_LIBS=ssleay32:libeay32

Install OpenSSL-101u from http://slproweb.com/products/Win32OpenSSL.html. Make sure to install it in the same directory as written in the environment variables (in the case of this example: C:\OpenSSL\).