#control #light #elgato #api-bindings #keylight

elgato-keylight

Control the Elgato Keylights series from Rust

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

#5 in #elgato

Download history 5/week @ 2024-03-09 1/week @ 2024-03-16 38/week @ 2024-03-30 3/week @ 2024-04-06 20/week @ 2024-06-01 36/week @ 2024-06-08

56 downloads per month

MIT license

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.

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

Dependencies

~7–22MB
~345K SLoC