10 releases (4 breaking)
0.5.0 | Sep 13, 2021 |
---|---|
0.4.4 | Sep 6, 2021 |
0.3.0 | Sep 5, 2021 |
0.2.1 | Aug 31, 2021 |
0.1.0 | Aug 31, 2021 |
#4 in #elgato
15KB
225 lines
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.
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
Dependencies
~8–22MB
~311K SLoC