elgato-key-light-api icon indicating copy to clipboard operation
elgato-key-light-api copied to clipboard

The API uses units of mireds for color temperature.

Open chrchr opened this issue 11 months ago • 0 comments

The documentation is updated to correct the units used for color temperature in the API. Mireds are described here:

https://en.wikipedia.org/wiki/Mired

Multiplying and dividing by 0.05 is inverted, first of all, such that the highest Kelvin values produce the lowest mired values. Secondly, the values skew, especially at near the lowest mired values.

Consider the following chart. The first two columns are empirical data gathered by setting a temp in Kelvins using Control Center and then retrieving the mireds value from the API.

K, Mireds, K * O.O5, mired / 0.05, 1000000 / K 2900, 344, 145, 6880, 345 3900, 254, 195, 4880, 256 4950, 201, 247.5, 4020, 202 5950, 168, 297.5, 3360, 168 7000, 143, 350, 2860, 143

chrchr avatar Mar 10 '24 02:03 chrchr