Skip to content

Latest commit

 

History

History
173 lines (156 loc) · 32.4 KB

SETTING-UP.md

File metadata and controls

173 lines (156 loc) · 32.4 KB

Initial Setup (after installation)

Setup for Direct Access (Browser to NVR)

Set up user account

To log into the NVR when accessing it directly, a user account must be set up. This is done using the Create User Account application (cua) which is accessible from the LAN without authentication. Be sure port 8080 on the Raspberry pi is not accessible from outside the secure LAN. cua is also available when logged into the NVR (from "Admin Functions" on the General menu).

  • From a separate device on the LAN, open a browser and go to http://nvr_ip_addr:8080/cua (where nvr_ip_addr is the LAN ip address of the NVR)
  • Click on the icon at the top left of the page.
  • Select "Create or Update User Account" from the menu.
  • Enter the required username.
  • Enter the password, then again in Confirm Password
  • Enter the email address you will use for forgotten password etc.
  • Enter email again in Confirm email address.
  • Click Update Account to confirm

Setup SMTP email Client

The email address set up in the previous section is where warning emails are sent if the public IP address changes (when NVR is used on an internet connection with dynamic IP), or for reset password links to be sent when password is forgotten. To do this, the NVR email client must be logged into an SMTP client

  • Click on the icon at the top left of the page.
  • Select Set Up "SMTP Client" from the menu.
  • If the SMTP connection is to be authenticated (normally the case)...
    • Check the Authenticated checkbox.
    • Enter the SMTP password.
    • Enter the SMTP password again to confirm.
  • If TLS encryption is to be used (normally the case)...
    • Check the TLS Encrypted checkbox.
    • Enter the host name for the SMTP client to trust (normally the SMTP host name).
  • Enter the SMTP host name
  • Enter the SMTP port
  • Enter the "from" (sender) address these email will appear to come from
  • Click confirm.

Login to the NVR

  • Set a browser to https://nvr_ip_addr
  • Ignore the warning which may be given as a result of the home generated site certificate and continue to the log in dialogue box.
  • Enter the username and password you set up when creating the account. You can check "Remember me" to enable auto login in the future.
  • Click the SIGN IN button
  • You are now logged into your NVR and should see a menu bar at the top of a blank page.

Set up Wi-Fi (if required)

If you want to use Wi-Fi, and it hasn't previously been set up on the Raspberry pi, it can be done from the NVRs Wifi Admin -> Wifi Settings page. Note that Wi-Fi settings can only be changed when the Raspberry pi (NVR) is connected to the LAN and you are accessing the web server through the Ethernet (eth0 on Raspberry pi) IP address.

  • Connect a browser to the NVRs Ethernet LAN address.
  • From the menu select General -> Wifi Admin -> Wifi Settings.
  • Select your Wi-Fi access point on the dropdown
  • Click connect.
  • Enter the password if required.
  • Click connect.

The Wi-Fi will now be set up, You can check the IP address for the Wi-Fi Connection using the General -> Get Active Local IP Address(es) option.

Set Up Cameras

The NVR must be configured to use your cameras. The configuration editor can be found at General -> Cameras Configuration.

If camera configuration has not yet been done, the Cameras Configuration Editor will be empty apart from a single unpopulated camera entry.

config editor Cameras Configuration Editor

Config page button functions

(At top of page to the left of the page title).

Set the global Onvif credentials used during single and all camera Onvif discovery. Cameras successfully discovered will have their credentials set to those entered here. Cameras whose credentials were different from these, will be listed above the table allowing the correct credentials to be entered against them before retrying discovery on them individually.

Onvif

From https://github.com/fpompermaier/onvif

The NVR supports Onvif camera discovery and population of parameters. This should be used when supported by your cameras. Click on the button (Perform onvif LAN search for cameras) to locate cameras on the LAN. Before you can save the configuration you need to complete any missing fields (typically the camera names and stream descriptions). When done, click on the button to commit the current configuration

Camera not found

If any cameras do not respond to the multicast probe, they will not be listed after Onvif discovery. Where the camera supports Onvif, you can search for individual cameras by their Onvif URL Click the button, enter the Onvif URL (for example http://192.168.1.43:8080/onvif/device_service, where the IP address is the IP of the camera). This will add the parameters for the specified camera to the list. You then just need to complete the name and description fields and recording settings etc.

Cameras can also be added manually by clicking on the button . In this case you will have to enter all parameters yourself, so it's not recommended unless Onvif is not supported on the device.

Button Functions

The buttons on the editable table for NVR camera configuration are described below: -

Button Function
(on camera row) Delete the corresponding camera and its streams. Disabled when there is only one camera
(on stream row) Delete the corresponding stream. Disabled when the stream is the only one on the camera.
Add a new stream. The new stream will be unpopulated and all fields will need manual entry/setup.
Move the corresponding camera down one place in the list. The cameras will be listed on the selection menus in the same order as they appear on this list.
Move the corresponding camera up one place in the list. The cameras will be listed on the selection menus in the same order as they appear on this list.
Add a new camera. This will add a camera with one stream, with all fields unpopulated. All fields will need to be populated manually.
Add a new camera. You enter the Onvif URL for the required camera, and the camera details will be returned with camera specific data populated. Intended for when General Onvif Discovery has not picked up the camera or a new camera is added to an existing setup. This is the preferred way to add a single camera. You will need to enter the camera name and stream ID's as a minimum
Start a new configuration. After confirmation, any camera data will be cleared and a single unpopulated camera/stream will be added. You will need to populate all the camera and stream fields, manually.
General Onvif discovery. After confirmation, the Onvif function will try to discover cameras on the network. Any that are found will have most of their characteristics populated.
Save configuration. Any changes made with the editor will only become active after saving with this function. Make sure to use this after making any updates.
* Show the cameras streams
* Hide the cameras streams
camera(n) Camera ID. Click on this to show a snapshot from the camera. Note that this will require that the camera credentials are set up correctly ( button)
Enter or change credentials for this camera. These credentials will be used on view snapshot (on config setup), on camera settings and admin page hosting (SV3C and ZXTech cameras only) and in RTSP authentication (when selected).

* Button style toggles with context

Camera Configuration Parameters

All these parameters can be set manually, though some are auto-populated by Onvif discovery.

Parameter/Control Function Set by Onvif Discovery
Sorting Up and down arrows move camera position in the list, and correspondingly on the menus. N/A
Camera ID Map key of the camera. Clicking on this displays a snapshot from that camera. N/A
Cam Credentials Enter or change the credentials used for this camera. This is set to the global onvif credentials if this camera was successfully discovered with Onvif, but can be changed with this function if required.

NOTE: You must save save the configuration (using the button) to make the credentials stick.

Before saving, you can click on the camera ID to check the (usually authenticated) snapshot is working.
N/A
Delete Delete this camera and its streams from the configuration (trash button). N/A
Name The name of the camera as it will appear on the menus. No
Camera Type Select SV3C, ZTech MCW5B10X or Not Listed. The named options enable some admin functions under Camera Settings -> Quick camera Setup No
FTP From camera If a stream is selected, recording will be triggered when the camera sends a .jpg (jpeg) to ./camera_map_key on the NVR IP address on port 2121. This is not available if Motion Sensing is set on any of the camera streams. If 'none' is selected, ftp uploads will not be processed. No
Retrigger Window For FTP triggered recordings only. The time window in seconds during which the recording can be extended (by retrigger window seconds) by further FTP uploads from the camera. No
Address Camera IP address Yes
Snapshot URI The cameras snapshot URL. Yes
RTSP Authentication If checked, authentication will be used on the RTSP connection to the camera. The credentials will be those entered for the camera set on the Cameras Config page. No
RTSP Transport Determine whether to use TCP or UDP for the RTSP video/audio stream. If in doubt, use TCP. No
Audio Backchannel Enable use of the cameras Audio backchannel for two way audio (if camera supports Onvif Profile T backchannel). ( inactive, active. Click to toggle). Yes
PTZ Controls Enable PTZ controls on the live stream view. This requires that the camera supports Onvif PTZ control. No
Onvif Base Address IP address and port of the camera Onvif SOAP web service. Yes

Stream Parameters

Parameter/Control Function Set by Onvif Discovery
Stream ID Map key of the stream N/A
Delete Delete this stream from the camera. N/A
Descr. Description of the stream (typically HD/SD). This is appended to the camera name on the menus. No
Audio Check to include the cameras audio with the video (if present). No
Audio Encoding Set to the audio encoding on the cameras RTSP stream. If the audio format is AAC, it will be passed through as is, otherwise it will be encoded to AAC. Yes
Netcam URI The cameras RTSP video/audio url. Yes
Default On Multi Display Sets the stream as this cameras default on the Multi Camera View. The multi camera view allows switching to other streams than the default. N/A
Motion Sensing If checked, the motion service will be used to detect motion from this stream. To keep CPU usage down, it's best to select a lower resolution stream. Not available if FTP is selected on the camera. N/A
Motion Threshold See Motion project documentation here N/A
Trigger Recording On When Motion Sensing is selected for the stream, you can select another (usually higher resolution) stream to record from in addition to the stream used for motion detection. Both streams will be selectable on the Select Recording menu. N/A
Preamble Frames Used for both motion and FTP triggered recordings (not the actual recordings made by motion service). This is the number of frames to delay the stream by when making the recording. The recording will then contain a period of activity before the point at which it was triggered. Note that frames also include audio frames, so the if the stream includes audio, this may need to be a higher number for the same delay. N/A
Mask File Select a mask file for this stream in the motion service. (see https://motion-project.github.io/motion_config.html#mask_file). N/A
Video Width For motion Service, the width of the video stream in pixels (see https://motion-project.github.io/motion_config.html#width) Yes
Video Height For Motion Service, the height of the video stream in pixels (see https://motion-project.github.io/motion_config.html#height) Yes

config editor Camera Configuration Editor Showing A Camera Whose Onvif Credentials Differ From The Global Onvif Credentials

One or More Cameras Failing Onvif Authentication During Discovery

Cameras in this category will be listed in the orange bordered box shown in the above screenshot.

Enter the correct Onvif user name and password for the camera listed in the orange bordered box and click the button beside the password to run single camera discovery using these credentials. If successful, the camera will be removed from this list and added tol the cameras list below, where parameter entry can be completed. Once all parameters are set, the new configuration must be saved ( button) to take effect.