I was asked by the president of my local radio station recently if I could come up with an on-air light for the main studio that would indicate when someone had left the main microphone on without having to check the status of the mute groups or faders on the X32 Compact mixing console. I decided to look into it and see what I could come up with. The X32 is a very well-featured mixing console with numerous features including control over both MIDI and over the network through its implementation of OSC on port 10023. I decided that OSC would be the most reliable way to go about querying the various necessary parameters.
In order to do this, I decided to use the python OSC package to send and receive OSC messages to the X32.
By the end of it, the X32 onair light program would be able to:
Most other on air lights seem to use relays to switch stuff on but I erred against that and instead opted for a wireless power switch that had Tasmota installed. It was incredibly straightforward to control the power status using simple HTTP commands.