Merge branch 'develop' into 2.0

This commit is contained in:
Cédric Verstraeten
2016-10-28 20:09:14 +02:00
2 changed files with 7 additions and 7 deletions

View File

@@ -1,12 +1,12 @@
# Multi-camera on Raspbian
When you've installed Kerberos.io on **Raspbian**, then you have the possibility **to connect one or more cameras** to the Raspberry Pi. Please note that this functionality **isn't available out-of-the-box**, and therefore requires some technical skills to configure.
When you've installed Kerberos.io on your **Raspbian** installation, then you have the possibility **to connect one or more cameras** to the Raspberry Pi. Please note that this functionality **isn't available out-of-the-box**, and therefore requires some technical skills to configure.
## Install Raspbian
First things first. Install Kerberos.io on your Raspbian installation by following [**the traditional Raspbian installation**](/installation/raspbian), and make sure you've installed Kerberos.io properly, so you'll see the web interface and the machinery running.
First things first. Install Kerberos.io on Raspbian by following [**the traditional Raspbian installation**](/installation/raspbian), and make sure you've installed Kerberos.io properly.
By default the installation of Kerberos.io on Raspbian will **only support a single type of camera**. You can navigate to the settings page and change the capture device. However if you want to connect more cameras there **isn't a way** to configure it **through the web interface**.
By default Kerberos.io **only support a single type of camera**, you can navigate to the settings page and change the capture device. However if you want to connect more cameras there **isn't a way** to configure it **through the web interface**.
## This is how it works
@@ -15,16 +15,16 @@ When installed properly, the kerberos.io binary will start at boot, and read the
$ kerberosio --config /etc/opt/kerberosio/config/config.xml
To start multiple devices we can simple run the binary a second time, and **overwrite the configuration** by commandline parameters. Suppose that we want to connect two more USB cameras, next to our Raspberry Pi camera than we can do this as following:
To start multiple devices we can simple run the binary a second time, and **overwrite the settings** by commandline parameters. Suppose that we want to connect two more USB cameras, next to our Raspberry Pi camera, then we can do this as following:
$ kerberosio --name usbcamera1 --capture USBCamera --captures.USBCamera.deviceNumber 0 --streams.Mjpg.enabled false &
$ kerberosio --name usbcamera2 --capture USBCamera --captures.USBCamera.deviceNumber 1 --streams.Mjpg.enabled false &
What this will do is start two new kerberosio processes, and **connect the USB cameras to a single process**. By overwriting the devicenumber we're able to select a specific USB camera. Next to that we also disabled the streaming, because by default it will bind to the same port 8889, and that will not work.
What this will do is start two new kerberosio processes, and **connect each USB camera to a kerberosio process**. By overwriting the devicenumber we're able to select a specific USB camera. Next to that we also disabled the stream, because by default kerberosio will bind to the port 8889, and that will not work if we have multiple processes running (additionally you can change the port for each process).
## Where can I find those variables?
When Kerberos.io is started it will write to a log file **/etc/opt/kerberosio/logs/log.stash**, which you can also see on the system page of the web interface. In the log file you'll see the startup configuration with all the different settings. You can overwrite every setting which is listed in this overview, just keep in mind that you have to prefix every option with **a double dash --**.
When Kerberos.io is started it will write to a log file located at**/etc/opt/kerberosio/logs/log.stash**, which you can see on the system page of the web interface. In the log file you'll see the startup configuration with all the different settings. You can overwrite every setting which is listed in this overview, just keep in mind that you have to prefix every option with **a double dash --**.
26/10/2016 08:11:36.135 INFO [trivial] Reading configuration
26/10/2016 08:11:36.141 INFO [trivial] Final configuration:

View File

@@ -4,7 +4,7 @@ The web is responsible for the visualization. It's a **GUI** which helps the use
## How does it work?
The web is written in PHP using the extremely popular PHP Framework **Laravel**, and Javascript using the client-side framework **BackboneJS**; to create the dynamic behaviour. We will discuss the different pages and functionality briefly. Please check out the [**demo environment**](https//doc.kerberos.io) if you want to see a real life example.
The web is written in PHP using the extremely popular PHP Framework **Laravel**, and Javascript using the client-side framework **BackboneJS**; to create the dynamic behaviour. We will discuss the different pages and functionality briefly. Please check out the [**demo environment**](https://demo.kerberos.io) if you want to see a real life example.
### Dashboard