Due to Covid-19, I’m delivering VMware training courses online. Most of the time, I’m using Zoom but sometimes I have to switch back to WebEx. I always activate my camera, so the students have better interaction with me.
I never worried about the light but since a lot of people are working from home and posting their home-office pictures on Twitter I noticed some of them were using studio lights. After some investigation I decided to buy a Elgato Key Light Air.
The light can be switched on and off with the Control Center app and it’s also possible to change the brightness and the colour temperature. It’s remotely controlled through 2.4 GHz Wi-Fi.
I was wondering if there was a way to use REST and interact with the light. After some googling, I’ve found a PowerShell module developed by Trevor Sullivan. In his post he mentions the URL and shared an example JSON body needed for the REST API call. The JSON body has 3 parameters, on – brightness and temperature.
The URL to the API is http://IP address:9123/elgato/lights and it listens to GET and PUT commands. I want to give it a try with Postman and see if I could get this to work. You don’t need an authentication header, just a GET or PUT REST API call and a JSON body and it allows you to control the light.
Fist I send a GET request to get the current setting of the light and copy and paste these setting into the JSON body of my PUT request. After changing some parameters an hit SEND for the PUT request, the light changes immediately.