Vigiora
For developers

Build add-ons for Vigiora. Keep 80%.

An add-on is a small program that runs on your customer's own Vigiora server. Write it with our Python kit, share it in the Community, and keep 80% of what Vigiora collects for it.

Free add-ons can be published from anywhere.

What an add-on is

A small program in its own container on the user's server. It works with the cameras the user gives it and nothing else.

It asks, and the user decides

Your manifest lists the permissions it needs. The user sees them and accepts them when they install it. It cannot do more than that list.

It reads, reports and raises alerts

It reads the cameras assigned to it and reports results. From Server 1.7.4 it can also raise alerts under its own label and fetch a picture of a camera.

It runs locally

The add-on runs on the user's server, next to their cameras. The video does not leave that server.

Ship the first one in an afternoon

Four steps from an empty folder to the Community.

  1. 01

    Write it with the kit

    The Python kit scaffolds an add-on, gives you a fake Vigiora server for tests and a validator that runs the same checks as the cloud.

  2. 02

    Test it on your own server

    Turn on developer mode on your server and install your add-on straight from its Git address. No review, only your own server.

  3. 03

    Submit it to the Community

    Give Vigiora the address of your public repository. It checks the repository and shows you the page the Community will show.

  4. 04

    Vigiora reviews every version

    A reviewer reads each version before it is published. A rejection always comes with a reason.

Your first add-on in 30 minutes

About twenty lines of Python

This is the heart of the example add-on: it learns which cameras the user assigned and posts a result for each of them every 30 seconds.

vigiora-addon.yaml (extract)

permissions:
  scopes: [cameras:read, events:write]

See the whole example add-on

Python, using the Vigiora Add-on Kit
from vigiora_addon import Client
from vigiora_addon.events import ASSIGNMENT_CHANGED, TICK

client = Client.from_env("hello-camera")  # server address and key come from the environment
client.install_signal_handlers()          # SIGTERM stops it cleanly
client.ensure_enrolled()                  # enrols once and keeps its token

cameras = []
for ev in client.events(poll_interval=30, tick=True):
    if ev.type == ASSIGNMENT_CHANGED:
        cameras = ev.data["monitors"]     # the cameras the user gave it
    elif ev.type == TICK:
        for cam in cameras:
            client.post_event("hello", monitor_id=cam, payload={"n": 1})
        client.heartbeat()

What you can build

Everything here works with the permissions add-ons have today: the cameras assigned to the add-on, a picture of each camera, results, alerts under your own label, and network access you declare.

Lens-covered or camera-moved alert

Compare each new picture with a normal one and raise an alert when the lens is blocked, dark or pointing somewhere else.

Your own detector

Run your model on pictures of a camera to spot the one thing you care about, such as a gate left open, and raise an alert under your own label.

A reader for gauges and displays

Read a meter, a level or a counter in the picture and post the value as a result that is kept with the camera.

Camera health report

Watch brightness, sharpness and glare over time and post a result when a camera starts to look wrong.

Everyday checks

A parcel at the door, a bin left out, a shelf that looks empty: small checks for one place, reported as results or alerts.

A bridge to your own system

Send what your add-on works out to another system over the network the user allowed, such as a spreadsheet or a message queue.

Not possible today: your own pages or settings in the Vigiora app, pictures attached to your alerts, and a live stream of events pushed to your add-on. Add-ons cannot use the labels Vigiora keeps for itself, such as person or car.

The honest limits

Every version is reviewed
Vigiora reviews each version before it is published, and can suspend an add-on if a problem is reported.
Permissions are fixed by the manifest
Your add-on can do only what its manifest lists, and the user sees that list before turning it on.
Rate limits
At most 30 alerts a minute and 300 an hour per add-on, and at most 2 pictures a second for one camera. Report a condition once, when it starts.
Where add-ons run
For now a community add-on installs only on a Linux server with native Docker (the rootful Docker Engine). Docker Desktop, macOS, Windows, rootless Docker and a machine whose Docker cannot be read are refused with a plain sentence before anything is installed.

Ready to build one?

Start with the kit, follow the guide, and write to us if you are stuck or have an idea you want to talk through.