The Cloud Service gives an alternative method of access to NVRs. The NVR makes a client connection to the Clouds ActiveMQ server, which obviates the requirement for port forwarding when the NVR is behind NAT, when the Cloud Server is on a public IP. The Cloud Service can host one or more NVRs, each accessible separately using the appropriate account credentials. These credentials are set up on the Cloud Service and are not necessarily the same as the NVRs direct access credentials. It is possible to access NVRs which have no direct access credentials on the Cloud server. To set up a cloud account for an NVR you must have the product ID for the NVR. This ID is generated on the initial installation of the NVR, and is shown near the end of the text that comes up on the terminal during installation. It is not changed on subsequent upgrades.
There is no live implementation of the Cloud Service, the source code is here.
The Cloud Service and ActiveMQ should be set up (with necessary configuration adjustments) on (preferably) a public server to enable the use of NVRs through this means.
To connect to ActiveMQ, the correct credentials and ActiveMQ host have to be entered.
- If a local NVR account has been set up: -
- If there is no local NVR account
- Enter the username (usually cloud) given on initial installation of activemq-for-cloud-service
- Enter the password given on initial installation of activemq-for-cloud-service (this will be a 20 character string consisting of upper and lower case letters and numbers).
- Enter the password again in the Confirm Password field
- Update the ActiveMQ host, if necessary (this can be an IP address or hostname).
- Click the Update Creds button, the new settings will be applied.
- Open the General menu and select "Set ActiveMQ Credentials"
- The credentials can be changed by the admin user at any time by repeating the above procedure, the current ActiveMQ host will appear as the default in the ActiveMQ Host field.
- Click the Update Creds button, the new settings will be applied.
-
Open the General menu and select "Set ActiveMQ Credentials"
-
To change the host without changing the username and password, leave the username and password fields blank and update the ActiveMQ host field only.
-
Click the Update Creds button, the new settings will be applied.
-
If there is a local account for direct access on the NVR, you should ensure that the link to the Cloud Service is enabled: -
- General menu
- Set CloudProxy Status
- Ensure the checkbox is checked.
- Set CloudProxy Status
- NVR connection to Cloud ActiveMQ
- If the connection is successful, you should see a green dialogue box with the message "Success: Connected to the Cloud successfully". You should then be able to use the Cloud Service.
- If the connection to ActiveMQ fails, the message Not Connected To
Transport will be shown.
- This can mean that the ActiveMQ host, username or password are not set correctly (See Updating the ActiveMQ username and password), or that ActiveMQ is not running correctly.
- The error message Product key was not accepted by the Cloud server indicates that the NVR connected successfully to ActiveMQ, but it was not authenticated on the Cloud Server. Check that the Cloud Server is running, and it is configured correctly to connect to ActiveMQ.
- General menu
-
If there is no local NVR account, connection to the Cloud Service will be automatically enabled. In this case the NVR cannot indicate if it has failed to connect to Active MQ. You can check the cloudproxy.log at /var/log/security-cam
- If connection was successful, the log should have a line like: -
- If the NVR failed to connect to ActiveMQ, the log will have a line similar to: -
- If the log has the following line: -
- Hosting of camera admin page, This feature is not supported through the Cloud Service.
When the NVR is accessed through the Cloud service, port forwarding is not required as all communication is through a client connection that the NVR makes to the Cloud service. Camera web admin pages are not accessible through the Cloud Service.
Parameter | Description |
---|---|
enabled | CloudProxy will run if true (and CloudProxy status is enabled on the NVR General menu, or the NVR has no local user account) |
productKeyPath | Path to the file containing the NVR Product key |
cloudActiveMQUrl | Url to the ActiveMQ service that the NVRs and the Cloud server connect to. This should begin with failover://ssl: The host part will be replaced by the host entered in the Set ActiveMQ Credentials dialogue. |
activeMQInitQueue | The name of the queue in ActiveMQ through which connections are initiated. This must be the same on all NVRs and the Cloud server. |
webServerForCloudProxyHost | The host name for the NVRs cloud web server (normally localhost) |
webServerForCloudProxyPort | The port for the NVRs web server (Normally 8088) This service is set up on nginx to provide special access for Cloud connections. |
logLevel | The log level for cloudproxy.log (normally located at /var/log/security-cam) |
Please see the README.md for the Cloud Service and ActiveMQ for Cloud Service for details on setting up a cloud account and using the Cloud service.