lighthouse

Crates.iolighthouse
lib.rslighthouse
version0.2.1
sourcesrc
created_at2020-02-11 13:04:03.450132
updated_at2020-07-12 14:31:29.426004
descriptionCommand line tool and Philips Hue light control framework wrapping up the Hue API
homepagehttps://finnkauski.com
repositoryhttps://github.com/finnkauski/lighthouse
max_upload_size
id207344
size127,967
Art (finnkauski)

documentation

https://docs.rs/lighthouse/

README

Build Status

Lighthouse

Control your Philips Hue lights with this API wrapper!

NOTE: This wrapper is under active redevelopment, see the older commits in order to get the previous iterations of the API. Also this is not a complete API wrapper for the HUE API as I do not have the time to expand the wrapper. If you would like to contribute please consider making a PR.

Also see:

lighthouse.el - an Emacs package wrapping the functionality of lighthouse (uses older version of the library)

lightshow - A simple scripting language allowing you to script your lights into lightshows (uses older version of the library)

Usage

Simply add lighthouse to the Cargo.toml and go from there.

NOTE: The features for color conversion and serialisation to and from files are now behind feature flags. Available flags are:

  • color - adds the color conversion module
  • persist - adds the ability to serialise to and from files and also to create bridges from environment variables

Command line tool

The previous releases of this library came with a binary that allowed users to control their lights from the command line. The crate has been refactored and simplified. The binary will have to be refactored as well. However the priority is to finished a more sensible API wrapper before moving onto the binary.

Contributions

I don't have the time to wrap absolutely all the endpoints and the data structures required for the API.

I would really love people to chip in over time and keep adding new functionality through extra endpoints wrapped.

Commit count: 131

cargo fmt