Setup Guide

Everything you need to enrol a device and start recording.

Contents
  1. Prerequisites
  2. Create a site
  3. Generate an enrolment code
  4. Install sentry-edge
  5. Pair the device
  6. Start recording
  7. Verify it's working
  8. Troubleshooting
0

Prerequisites

Before you start, make sure you have:

No account yet? Go to the dashboard, enter your phone number, and verify the OTP. Your account is created automatically.
1

Create a site

A site represents a physical store location. Each device binds to a site.

  1. Go to the Sites page in the dashboard.
  2. Click "Add Site".
  3. Enter the store name (e.g. "Downtown Yangon") and select the timezone.
  4. Click Create Site.
2

Generate an enrolment code

The pairing code links a device to your site. Valid for 30 minutes.

  1. Go to the Enrolment page.
  2. Find the site you just created.
  3. Click "Generate Code".
  4. Copy the 12-digit code from the popup.
Codes expire after 30 minutes. If yours expires, generate a new one — no harm done.
3

Install sentry-edge

On the mini-PC at the store, install the edge agent and ffmpeg.

Install ffmpeg
sudo apt update && sudo apt install -y ffmpeg
Download sentry-edge
wget https://github.com/code2lab/sentry-edge/releases/latest/download/sentry-edge-linux-arm64 -O /usr/local/bin/sentry-edge && chmod +x /usr/local/bin/sentry-edge
Verify
sentry-edge version
4

Pair the device

Enrolment binds the device to your site and issues a device token.

Enrol
sentry-edge enrol --code YOUR_12_DIGIT_CODE --cloud-url https://sentry.qikbite.asia

On success you'll see:

Device enrolled: dev_xxxxxxxxxx Site: site_xxxxxxxxxx Token stored. Run 'sentry-edge run' to start.
The device token is stored locally. You only enrol once per device.
5

Start recording

Once enrolled, configure cameras and start the agent.

Add cameras
sentry-edge add-camera -l "Front Counter" -u "rtsp://user:pass@192.168.1.50/stream1" sentry-edge add-camera -l "Back Door" -u "rtsp://user:pass@192.168.1.51/stream1"
Run the agent
sentry-edge run
For production, set up as a systemd service to start on boot. See the deployment guide for the unit file.
6

Verify it's working

Within a few minutes, the device appears in your dashboard.

  1. Go to the Devices page.
  2. You should see your device with an online badge.
  3. Check that the agent version and site are correct.
Or verify from the device
sentry-edge status sentry-edge doctor
The agent uses store-and-forward. If the internet goes down for up to 60 minutes, no video data is lost — it queues locally and uploads when connectivity returns.
7

Troubleshooting

Common issues and how to fix them.

Device shows offline

Check in this order:

  1. Is the mini-PC powered on and connected to the network?
  2. Is the service running?
    sudo systemctl status sentry-edge
  3. Can the device reach the cloud?
    sentry-edge doctor
  4. Check the logs:
    journalctl -u sentry-edge -n 50 --no-pager

Camera not recording

  1. List cameras: sentry-edge cameras
  2. Test a camera URL: sentry-edge test-camera -u "rtsp://..."
  3. Test with ffmpeg directly: ffmpeg -i "rtsp://..." -frames:v 1 test.jpg

Enrolment fails

Still stuck? Contact support or check the source repository.