Skip to content

Elgato Control Center (ECC) API v1.1.0

Compare
Choose a tag to compare
@zzampax zzampax released this 20 Oct 09:29
· 3 commits to main since this release

Fixed --toggle bug that turned on/off the light even if not present.

Replaced:

if matches.contains_id("toggle")` {}

To:

if matches.value_source("toggle") == Some(clap::parser::ValueSource::CommandLine) {}

The script now outputs a Standard JSON Format string that can be parsed with any JSON interpreter:

ecc-api --ip <ip> --port <port> | jq

Giving thus the following (eg. LightStrip):

{
  "brightness": 100,
  "hue": 360.0,
  "on": 1,
  "saturation": 100.0
}