So to expand on what jantman has shown using CURL. CURL essentially wraps and formats code to be complaint with HTTP GET and POST requests. CURL is much easier to use than writing out really long lines of HTTP while trying to keep the correct format.
For those of you who do not have access to a linux machine or have no desire to learn how to use CURL, you can also set the Night options and any of the other setting for the camera from a web browser not using the Amcrest admin control panel.
What we need to do is pass the correct HTTP GET request to check the setting of the camera. Then send a POST request back to the camera to change the settings. I'm going to only cover how to change the Night Options Switching Mode. However this concept can be used for any settings listed within the Amcrest API.
Below is a link to the most current Amcrest HTTP API:
https://support.amcrest.com/hc/en-us/ar ... 0P-HD-CVI-
First I'm going to cover how to check the Video In settings for the camera using a GET request. Type the line of code below directly into your web browser, change the ip address (192.168.1.205) to the IP address of your camera and hit enter. Your browser should ask you to log in. Use the same login credentials for the Amcrest Web Admin Control Panel to log in.
http://192.168.1.205/cgi-bin/configMana ... nOptions[0]
There should be a bunch of text that shows up that looks something like:
table.VideoInOptions[0].AlarmDayNightColorMode=0
table.VideoInOptions[0].AntiFlicker=0
table.VideoInOptions[0].AutoSyncPhase=false
table.VideoInOptions[0].Backlight=0
table.VideoInOptions[0].BacklightRegion[0]=3096
table.VideoInOptions[0].BacklightRegion[1]=3096
table.VideoInOptions[0].BacklightRegion[2]=5096
table.VideoInOptions[0].BacklightRegion[3]=5096
table.VideoInOptions[0].ColorTemperatureLevel=100
Now you chould scroll down and find the property for the Night switching mode however I'm lazy and want to narrow the results down. Type this into your browser to get the Night Options Switching Mode.
http://192.168.1.205/cgi-bin/configMana ... SwitchMode
You should see text that looks something like this:
table.VideoInOptions[0].NightOptions.SwitchMode=0
Now the zero at the end means that it will always use daytime options. We need to change that setting to 1 which changes the camera to use "Switch Depends on Brightness" So to change the settings we need to send a POST request to the camera to update that setting. Paste the code browser and once again change the IP Addresss to the address of your camera.
http://http://192.168.1.205/cgi-bin/con ... itchMode=1
You should then see an "OK" in the web browser letting you know the POST command executed correctly.
Now lets check to make sure that the setting was actually changed: Once again change the IP Address.
http://192.168.1.205/cgi-bin/configMana ... SwitchMode
Now do not forget to save the above 2 lines of code so you can change the setting and check it whenever you need to. I personally save the code on the machine I use for the security cameras.
I hope this helped.