0.2.5 • Published 4 years ago

node-snvr v0.2.5

Weekly downloads
-
License
MIT
Repository
github
Last release
4 years ago

Node SNVR

A Simple NVR server.

How does it compare to others?

Node SNVR is by no means, fully featured.

  • It does not support live camera viewing
  • It does not support motion detection
  • It does not actually store/remember any cameras (More on this later)

Its been designed as a pure CCTV recording solution.
If you're after a more fully featured NVR, then this isn't for you.

I built this Node JS Server for one purpose in mind, record my cameras whenever I ask.
I.e. whilst motion is detected.

Configuration

Configuration is somewhat disappointing

{
    "storageLocation":"/media/sda1",
    "users":[
       {
           "username":"admin",
           "password":"21232f297a57a5a743894a0e4a801fc3"
       }
    ],
    "processor":"ffmpeg",
    "httpPort":8090,
    "daysToStore":7,
    "cleanUpDaysInterval":0.5
}

Record

Note : All HTTP requests use BASIC Authentication
default username and password is 'admin' - password in config is the md5 hash.

To start recording camera footage, simply send a HTTP POST to http://IP:8090/record.
in return you will get back a UUID, which you will reference later to stop the recording.

The body in your post should contain a JSON payload as below

{
  "sourceInput": "-rtsp_transport tcp -i rtsp://admin:passsord@IP:PORT/Stream",
  "name": "Living Room",
  "videoBitrate":"128k",
  "audioBitrate":"32k",
  "videoEncoder":"h26_omx",
  "audioEncoder":"aac",
  "outputFPS":10
}

sourceInput is the input to FFMPEG
name is nothing more than a helpfull title for the recording taking place

Stop

Simpy issue a HTTP GET to http://IP:8090/stop/{UUID}

The UI

The UI allows you to review all recordings made, and delete past recordings.

Why?

My entire security setup has been DIY developed.
The last step was to record whilst the home is Armed and motion is detected (I dont have a physical NVR).

Yes I could have used other solutions - but they felt a little overkill for my simple needs.

So there it is - a diabolical excuse for an NVR - but it works.

0.2.5

4 years ago

0.2.4

4 years ago

0.2.3

4 years ago

0.2.2

4 years ago

0.2.1

4 years ago

0.2.0

4 years ago

0.1.9

4 years ago

0.1.8

4 years ago

0.1.7

4 years ago