Amcrest IR lights: quick recipe

I run some of my outdoor Amcrest cameras without the IR illuminator LED turned on all the time - I get really bad glare in foggy conditions leading to constant false positive motion detection, and can't use AI since these are long-distance cameras where there are too few pixels of movement.

However, I still do like to turn on the LED from time to time to look at stuff. I needed a way to do that without logging into the camera web interface, so here are the "URL" methods that can be accessed in the cameras -> setup -> advanced options menu. Ben just helpfully added a <USER> and <PASS> shorthand macro as well in the URL method in the beta version of SS, so you should be able to eventually switch out "admin:nottheactualpassword" (or whatever your local data is) with "<USER>:<PASS>" but that's only in the beta version as of right now.


IR-LED-ON

curl -v --digest -u admin:nottheactualpassword "http://<ADDR>/cgi-bin/configManager.cgi?action=setConfig&Lighting\[0\]\[0\].FarLight\[0\].Light=100&Lighting\[0\]\[0\].NearLight\[0\].Light=0&Lighting\[0\]\[0\].Mode=Manual"


IR-LED-OFF

curl -v --digest -u admin:nottheactualpassword "http://<ADDR>/cgi-bin/configManager.cgi?action=setConfig&Lighting\[0\]\[0\].FarLight\[0\].Light=0&Lighting\[0\]\[0\].NearLight\[0\].Light=0&Lighting\[0\]\[0\].Mode=Manual"


I extracted these URL-based methods from this file linked below. You may need to modify them based on whatever model you have, so "scripter beware."

https://drive.google.com/file/d/19d2vQUbqCAjkxJfCadqVqLwKICx88pjx/view