Plan your installation

Before you install anything, decide which machine does which job, and check you have the parts.

The four roles

nn is made of four roles. They can all run on one machine, which is how this tutorial sets them up, or be spread across several.

Role

What it does

Runs on

Hub

The web app, the device database, the firmware catalog, provisioning over Bluetooth, automations, over-the-air updates

one always-on Linux machine

Media server

Receives camera video, makes live view and HLS, runs motion and object detection, records events

the hub machine, or a machine with a hardware video codec and an NPU

Thread gateway

The border router between the Thread mesh the sensors use and your home network

a USB radio on the hub, or a Linux camera (BeagleY-AI)

Devices

Cameras and sensors

their own boards

Tip

Start with everything on one machine. Moving the media server or the gateway to another machine later does not change your cameras’ or sensors’ settings.

Your network

  • Give the hub a fixed address (a DHCP reservation in your router). This tutorial uses 192.168.1.50.

  • Cameras need Wi-Fi (2.4 GHz). Have the network name and password ready: you type them into the hub once per device, and the hub hands them over Bluetooth.

  • All nn traffic stays on your network. See Network ports for every port.

What you need for this tutorial

  • Orange Pi 6 Plus with power supply, antenna and a microSD card or NVMe for the OS

  • a computer with a browser on the same network

  • a USB cable for each device you will flash (USB-C for the ESP32 boards)

  • a USB microSD card reader, if you set up a BeagleY-AI camera

  • at least one camera from the table above

  • one ESP32-C6 for the gateway radio and two or three for sensors