Cameras
Your EOT-1 has its own camera, and it can run more: IP cameras on your network and USB webcams plugged into it. Every camera gets the same snapshots, clips, live view, continuous recording, library and events, and apps can use any of them.
Cameras you can add
| Camera | Stream address | Notes |
|---|---|---|
| Your EOT-1’s own camera | Built in, camera id eot-…-main | Always there. The only camera that follows the quality setting and takes 12 MP photos. |
| IP camera (RTSP) | rtsp://user:[email protected]:554/stream1 | Records the camera’s own H.264 or H.265 stream without re-encoding. Add its low-resolution stream too, for a faster preview. |
| HTTP camera | http://192.168.1.21/video.mjpg | Any MJPEG or video stream over HTTP or HTTPS. |
| USB webcam | /dev/videoN | Plugged into your EOT-1. Recordings are encoded on your EOT-1. On your EOT-1’s own cameras page, pick the webcam from a list of the ones it detects. Through the portal or API, enter its /dev/videoN (v4l2-ctl --list-devices on your EOT-1 shows it, or GET /v1/cameras/usb-devices). |
Camera passwords are kept on your EOT-1 only and are never shown back, in the portal or through the API.
Add a camera
- In the portal, open your EOT-1 and go to Settings → Cameras.
- Give the camera a name and enter its stream address, then choose Add camera.
- It appears as its own camera under your EOT-1 on the portal’s home page.
One camera is the default: the one used whenever you don’t pick a camera, including by apps and anything calling the API. It’s your EOT-1’s own camera unless you choose Make default on another. If your EOT-1 has no camera of its own, the first camera you add becomes the default.
Options
These are set through the API (POST or PATCH on a camera). Changing anything but the name needs recording and live streaming on that camera to be stopped first.
| Field | For | What it does |
|---|---|---|
sub_url | Network cameras | The camera’s low-resolution stream, used for the live preview and quick snapshots. |
record_stream | Network cameras with a sub_url | main (default), sub or both: which stream continuous recording and clips copy. A camera can only offer streams it has; available_streams in the camera’s details lists them. |
input_format | USB webcams | V4L2 format such as mjpeg or yuyv422. Defaults to mjpeg when the webcam offers it. |
video_size, fps | USB webcams | For example 1280x720 and a whole number from 1 to 120. |
encoder | USB webcams | libx264 or h264_v4l2m2m, used to encode recordings. |
Manage cameras from the API
Adding, changing and removing cameras needs an organisation admin. Listing works with any API key. :id is your EOT-1’s id.
# Add an IP camera
curl -X POST -H "x-api-key: $KEY" -H "Content-Type: application/json" \
-d '{"id":"door","name":"Door","url":"rtsp://user:[email protected]:554/stream1"}' \
https://platform.eyeofthetiger.ai/api/v1/cameras/eot-ce49394c/cameras
# Check it works (redirects to a snapshot from it)
curl -L -X POST -H "x-api-key: $KEY" -o test.jpg \
https://platform.eyeofthetiger.ai/api/v1/cameras/eot-ce49394c/cameras/door/testA camera id is lowercase letters, digits and hyphens, up to 32 characters. See the API Reference for every call. On your EOT-1’s own network, http://eyeofthetiger.local/v1/cameras-page is a page for the same thing.
Cabling IP cameras to your EOT-1
For IP cameras plugged straight into your EOT-1’s Ethernet port, run install_scripts/eot-camera-network.sh on it. The port then becomes a private camera network: your EOT-1 gives the cameras addresses (192.168.50.10 to .50), nothing is routed between that network and the internet, and your EOT-1 is the cameras’ time server. Set each camera’s NTP server to 192.168.50.1 and its timezone correctly, or the time printed on its picture will be wrong, then add the camera by its RTSP address as above.
Use a camera from the API and MCP
Every camera has its own id: your EOT-1’s id plus the camera’s name on it, for example eot-ce49394c-door. Your EOT-1’s own camera is eot-ce49394c-main. Your EOT-1’s id on its own, eot-ce49394c, means its default camera, so existing scripts and apps keep working unchanged.
# Snapshot from the camera called "door"
curl -L -H "x-api-key: $KEY" -o door.jpg \
https://platform.eyeofthetiger.ai/api/v1/cameras/eot-ce49394c-door/snapshot
# The same on your EOT-1's own network
curl -o door.jpg http://eyeofthetiger.local/v1/cameras/eot-ce49394c-door/snapshot
# Your EOT-1's default camera
curl -o default.jpg http://eyeofthetiger.local/v1/snapshotEvery camera endpoint works this way: snapshot, clip, status, quality, live preview, continuous recording and the library. On your EOT-1, GET /v1/cameras lists its cameras with their ids. In MCP, list_cameras lists every camera in your account and every camera tool takes its camera_id. See the API Reference and MCP.
Good to know
- Several cameras can record continuously at the same time. They share one storage limit.
- One camera at a time can be live streamed through the portal.
- How many cameras one EOT-1 can run depends on its model and on whether recordings need re-encoding: IP cameras that are recorded as-is cost very little, USB webcams cost more.
Apps see every camera too: an app can ask its EOT-1 for /v1/cameras and use each camera’s URLs like any other caller. A camera driver app can even add a camera your EOT-1 couldn’t read on its own. See Apps.