elgato-keylight

Crates.ioelgato-keylight
lib.rselgato-keylight
version0.5.0
sourcesrc
created_at2021-08-31 03:40:08.526909
updated_at2021-09-13 04:08:22.238511
descriptionControl the Elgato Keylights series from Rust
homepage
repositoryhttps://github.com/coral/elgato-keylight-rs
max_upload_size
id444836
size51,704
coral (coral)

documentation

README

Control your Elgato Keylight with Rust!

This library allows you to easily control your Elgato Keylight.

  • Simple wrapper that also handles caching of the lamp state for using in applications.
  • Supports zeroconf to discover your lights from name, instead of requiring you to know the IP.

crates.io | docs.rs

Usage

You can test the library easy by opening examples/from_name.rs. from_name.rs and from_ip.rs has identical functionality, only differing in how they connect.

//Lookup lamp by name (using zeroconf)
let mut kl = KeyLight::new_from_name("Key Light Left", None).await?;

//Turn on the light
kl.set_power(true).await?;

//Set brightness to 30
kl.set_brightness(30).await?;

Contributing

Just open a PR LUL

License

All under MIT

Commit count: 32

cargo fmt