Many of us have ArduCam NOIR cams (https://www.arducam.com/product/arducam-m12-night-vision-ir-cut-raspberry-pi-camera/) hooked to our Pis to monitor our Octoprints. My Arducam has a selectable IR filter for nightvision but to toggle it, I need to ssh into the pi which is a pain.
At night, it'd be nice to shut off the power to the workshop while the printer is still printing but allow for the IR camera to still see the print.
From the Arducam manual:
Usage
You need to be root (or at least be able to use sudo).
Standalone: You can use the library as a standalone command:
$ sudo ./CameraLED.py
Usage: ./CameraLED.py (state|toggle|on|off)
$ sudo ./CameraLED.py state
State: 0
$ sudo ./CameraLED.py toggle
State: 1
$ sudo ./CameraLED.py toggle
State: 0
$ sudo ./CameraLED.py on
State: 1
sudo ./CameraLED.py off
State: 0