Flussonic Watcher documentation

Installing Watcher Single

Watcher Single is suitable for small and medium-size projects, where the maximum number of cameras does not exceed 500. In this mode, all cameras work with one server, where the database is installed, the web interface works, streams are configured, and archive is written.

Flussonic Watcher is installed on one server along with Flussonic Media Server. To install Watcher, you need to install a database for it to work. Watcher works with PostgreSQL.

The overview of steps for installing Watcher to work in single mode:

  1. Install Flussonic Media Server. Flussonic Watcher works only as part of Flussonic Media Server because its operation requires a powerful video streaming server.

  2. Install PostgreSQL on a server with Flussonic installed, create a database and user. This will automatically mean that Flussonic Watcher is now installed on the server.

  3. In the settings of Flussonic Media Server, specify the path to the created PostgreSQL database. This will turn on the web interface to Flussonic Watcher, and you will be able to start working with it.

Contents

Installing Flussonic Media Server Anchor Anchor x2

Flussonic Media Server is installed on the server where you intend to install Watcher and, in case of a cluster, on all streaming servers.

Run the command:

curl -sSf https://flussonic.com/raw/install.sh | sh

Learn more about installation of Flussonic Media Server in the Flussonic documentation:

Installing and configuring PostgreSQL Anchor Anchor x2

  • To install PostgreSQL, with root access in the console execute the command:
apt install postgresql
  • Create a PostgreSQL user and a database. Type two commands in the console one by one. First, create the user vsaas:
sudo -u postgres createuser -P vsaas

System's response: Enter password for new role: (enter Watcher super admin password)

System's response: Enter it again: (re-enter Watcher super admin password)

  • Create a database with the created user as the owner:
sudo -u postgres createdb -O vsaas -e -E UTF8 -T template0 vsaas_production

System's response: CREATE DATABASE vsaas_production OWNER vsaas ENCODING 'UTF8' TEMPLATE template0

  • Go to the IP cameras in the administrative interface to Flussonic Media Server (http://FLUSSONIC:8080) and specify the path to the database in the Database path box.

Inportant. Replace vsaas_password with the real password of the vsaas user that you created in previous steps.

Installing Watcher Single

Now if you go to the main page of the Flussonic UI http://FLUSSONIC:8080, the Watcher's web interface will open instead of Flussonic's.

To return to the Flussonic Media Server UI, go to http://FLUSSONIC:8080/admin.

Watcher Single — first run Anchor Anchor x2

Go to http://FLUSSONIC:8080/admin and the administrator control panel opens (we also call it the Watcher web UI).

On the very first launch, the system will ask you to enter an email and come up with a password to create the first administrator account.

Installing Watcher Single

After you add the first administrator, you will see the camera control page, where you can add cameras and manage system settings.

Updating Flussonic Watcher Anchor Anchor x2

To update Watcher, just update Flussonic Media Server, and you'll receive Watcher updates together with Flussonic's:

apt-get update
apt-get -y install flussonic
/etc/init.d/flussonic restart

During its update, Watcher automatically migrates the database to work with the new version. In rare cases it might be necessary to migrate the database manually. Watcher will show the message about that in the UI.

We strongly recommend that you back up your database every day and before you update Watcher.