Skip to main content

Module sentryshot

Module sentryshot 

Source
Expand description

§Sentryshot

Сохранение потока с видеокамеры. Ссылка на репозиторий.

§docker

services:
  service_sentryshot:
    container_name: service_sentryshot
    hostname: service_sentryshot
    image: codeberg.org/sentryshot/sentryshot:v0.3.0
    shm_size: 500m
    network_mode: host
    environment:
      - TZ=Europe/Minsk
    volumes:
      - ./service_sentryshot/configs:/app/configs
      - sentryshot_volume:/app/storage
      - /etc/timezone:/etc/timezone:ro
      - /etc/localtime:/etc/localtime:ro

volumes:
  sentryshot_volume:
    name: sentryshot_volume

§Файлы конфигурации

§./sentryshot/configs/sentryshot.toml

Проверить max_disk_usage.

# Port app will be served on.
port = 2020

# Directory where recordings will be stored.
storage_dir = "/app/storage"

# Directory where configs will be stored.
config_dir = "/app/configs"

# Directory where the plugins are located.
plugin_dir = "/app/plugins"


# Maximum allowed storage space in GigaBytes.
# Recordings are delete automatically before this limit is exceeded.
max_disk_usage = 100



# PLUGINS

# Authentication. One must be enabled.

# Basic Auth.
[[plugin]]
name = "auth_basic"
enable = false

# No authentication.
[[plugin]]
name = "auth_none"
enable = true



# Motion detection.
# Documentation ./plugins/motion/README.md
[[plugin]]
name = "motion"
enable = false

# TFlite object detection.
# Enabling will generate a `tflite.toml` file.
[[plugin]]
name = "tflite"
enable = false


# Thumbnail downscaling.
# Downscale video thumbnails to improve page load times and data usage.
[[plugin]]
name = "thumb_scale"
enable = false

§./sentryshot/configs/monitors/

В папке хранятся файлы конфигурации для каждой камеры. Пример файла ‘tapo.json’ для камеры RTSP:

{
  "alwaysRecord": true,
  "enable": true,
  "id": "tapo",
  "name": "tapo",
  "source": "rtsp",
  "sourcertsp": {
    "mainStream": "rtsp://administrator:Admin123!@192.168.31.3:554/stream1",
    "protocol": "tcp"
  },
  "videoLength": 15
}