Programmatically start recording on NVR

Have some questions or having issues with your DVR/NVR(s), Post them here for the mods and other users to assist you with.
Post Reply
pianoetudes
Posts: 11
Joined: Sat Jul 15, 2017 7:05 pm

Programmatically start recording on NVR

Post by pianoetudes »

Does anyone here know how to programmatically start recording on NVR?

I am developing an app for the following scenario:
- Leak detector has noticed water leak in the basement and notified IFTTT app.
- The app will send HTTP post request to Amcrest NVR to start video recording of Camera 1 in the basement.

Amcrest does have HTTP API SDK for cameras and I was able to programmatically take snapshots in the camera. My question is for the NVR, not camera.

THanks.
jack7
Posts: 904
Joined: Tue May 29, 2018 7:46 pm

Re: Programmatically start recording on NVR

Post by jack7 »

It looks like you could do that using the NVR IP address and camera channel number in:
Screenshot_20201211-152052_Drive.jpg
Screenshot_20201211-152052_Drive.jpg (344.53 KiB) Viewed 977 times
pianoetudes
Posts: 11
Joined: Sat Jul 15, 2017 7:05 pm

Re: Programmatically start recording on NVR

Post by pianoetudes »

Thank you. I'll try this and reply if it is working.
pianoetudes
Posts: 11
Joined: Sat Jul 15, 2017 7:05 pm

Re: Programmatically start recording on NVR

Post by pianoetudes »

Good news. I am able to programmatically start a recording.

To start manual recording:
RecordMode[{channel}].Mode = 1

where {channel} is zero-based index of the channel (my NVR has 8 channels).

To stop the recording, set the Mode = 2 (if I don't do this, the recording will never stop). At the end, I need to set it back to automatic by setting Mode = 0.
Post Reply