marcus-j-davies / nvr-js

A simple, lightweight, but very functional NVR aimed at 24/7 recording using nodejs.
MIT License
25 stars 13 forks source link

How to add other cameras #17

Closed kenyk1972 closed 8 months ago

kenyk1972 commented 12 months ago

Very simple nrv script, good. Don’t know how to add a new camera? I tried to modify nvrjs.config, but it couldn't start.

marcus-j-davies commented 12 months ago

Hello,

As you have not provided the config file, I can only assume you have invalid JSON in the config somewhere the ID's need to be unique, and each camera is an Object.

cameras: {
  '66e39d21-72c4-405c-a838-05a8e8fe0742': {
    name: 'Camera 1',
    ...
  },
  '03510da7-6543-4ce4-acb7-42e1d675a50c': {
    name: 'Camera 2',
    ...
  }
}