IPC-Color4K-T180 API for day/night switching?

pyrodex

n3wb
Joined
Dec 19, 2015
Messages
4
Reaction score
0
I recently purchased this camera and I am frankly disappointed in the day/night switch model and was trying to go down the rabbit hole of doing the changes myself via API and some python coding.

Can anyone share the full API URL to switch from a simple day/night profile? I am trying this with what I found on the internet and my IPC-Color4K-X I also own seems to reflect this properly in the web UI after the change but the T180 seems to not show that and it doesn't seem to be working.

Thanks!
 

TonyR

IPCT Contributor
Joined
Jul 15, 2014
Messages
18,323
Reaction score
43,037
Location
Alabama

BelMa

n3wb
Joined
Apr 30, 2019
Messages
19
Reaction score
17
Location
Spain
In a web 5.0 camera I'm doing day/night switch this way:

* Day
http://{CamIP}/cgi-bin/configManager.cgi?action=setConfig&VideoInOptions[0].NightOptions.SwitchMode=0&VideoInOptions[0].NightOptions.DayNightColor=0

* Night
http://{CamIP}/cgi-bin/configManager.cgi?action=setConfig&VideoInOptions[0].NightOptions.SwitchMode=3&VideoInOptions[0].NightOptions.DayNightColor=2

In my case, the commands are issued from a HomeAssistant automation based on sunrise/sunset sensors adjusted with some offsets, but I'll change this to fire the commands depending on an exterior light sensor I've access to.

Hope this helps.
 

pyrodex

n3wb
Joined
Dec 19, 2015
Messages
4
Reaction score
0
In a web 5.0 camera I'm doing day/night switch this way:

* Day
http://{CamIP}/cgi-bin/configManager.cgi?action=setConfig&VideoInOptions[0].NightOptions.SwitchMode=0&VideoInOptions[0].NightOptions.DayNightColor=0

* Night
http://{CamIP}/cgi-bin/configManager.cgi?action=setConfig&VideoInOptions[0].NightOptions.SwitchMode=3&VideoInOptions[0].NightOptions.DayNightColor=2

In my case, the commands are issued from a HomeAssistant automation based on sunrise/sunset sensors adjusted with some offsets, but I'll change this to fire the commands depending on an exterior light sensor I've access to.

Hope this helps.
Thanks! I changed the 2 to a 0 for night so I got color but using my night profile with other settings.
 
Top