# yaml-language-server: $schema=https://schema.zeabur.app/template.json
apiVersion: zeabur.com/v1
kind: Template
metadata:
    name: motionEye
spec:
    description: |
        motionEye is a self-hosted web frontend for video surveillance. Built on top of motion daemon, it provides a clean browser-based UI to manage multiple cameras, configure motion detection, receive notifications, and store recordings locally. Supports IP cameras, USB cameras, and RTSP streams.
    coverImage: https://avatars.githubusercontent.com/u/101178162?v=4
    icon: https://avatars.githubusercontent.com/u/101178162?v=4
    variables:
        - key: PUBLIC_DOMAIN
          type: DOMAIN
          name: Domain
          description: The domain to access motionEye
    tags:
        - Tool
        - Monitoring
    readme: |
        # motionEye

        A self-hosted web-based frontend for the motion video surveillance daemon. Manage your cameras from a clean browser interface — no external services required.

        ## What You Can Do After Deployment

        Visit your domain and log in with the default admin account to start configuring cameras.

        **Default credentials:** Username `admin` with an empty password. Change this immediately after first login via the settings panel.

        **Camera management:** Add IP cameras (RTSP/MJPEG), USB cameras, or other motion daemon instances. Each camera gets its own configuration panel for resolution, frame rate, and rotation.

        **Motion detection:** Enable per-camera motion detection with adjustable sensitivity, threshold, and masking areas. Trigger actions when motion is detected — save snapshots, record video clips, run custom commands, or send notifications.

        **Recordings & snapshots:** Automatically store video recordings and snapshots to the local filesystem. Configure retention policies to manage disk space. Browse and download past recordings from the web interface.

        **Notifications:** Send email or webhook notifications when motion is detected. Supports custom shell commands for integration with other services.

        **Multi-camera views:** View all cameras simultaneously in a grid layout. Click any camera for full-screen view and individual controls.

        ## Configuration

        - **Admin password:** Set immediately after first login (Settings > General Settings > Admin Password)
        - **Surveillance user:** Create a separate non-admin user for view-only access
        - **Storage:** Recordings are stored in `/var/lib/motioneye` — this is persisted via volume
        - **Timezone:** Set via the `TZ` environment variable (e.g., `Asia/Taipei`)

        ## License

        GPL-3.0 — [GitHub](https://github.com/motioneye-project/motioneye)
    services:
        - name: motioneye
          icon: https://avatars.githubusercontent.com/u/101178162?v=4
          template: PREBUILT_V2
          spec:
            source:
                image: ghcr.io/motioneye-project/motioneye:0.43.1
            ports:
                - id: web
                  port: 8765
                  type: HTTP
            volumes:
                - id: data
                  dir: /var/lib/motioneye
                - id: config
                  dir: /etc/motioneye
            env:
                TZ:
                    default: UTC
          domainKey: PUBLIC_DOMAIN
localization:
    es-ES:
        description: |
            motionEye es un frontend web autoalojado para videovigilancia. Basado en el daemon motion, proporciona una interfaz limpia en el navegador para gestionar múltiples cámaras, configurar detección de movimiento, recibir notificaciones y almacenar grabaciones. Compatible con cámaras IP, USB y streams RTSP.
        variables:
            - key: PUBLIC_DOMAIN
              type: STRING
              name: Dominio
              description: El dominio para acceder a motionEye
        readme: |
            # motionEye

            Frontend web autoalojado para videovigilancia. Gestiona tus cámaras desde el navegador sin servicios externos.

            ## Qué puedes hacer después del despliegue

            Visita tu dominio e inicia sesión con la cuenta de administrador por defecto para comenzar a configurar cámaras.

            **Credenciales por defecto:** Usuario `admin`, contraseña vacía. Cámbiala inmediatamente tras el primer inicio de sesión.

            **Gestión de cámaras:** Añade cámaras IP (RTSP/MJPEG), cámaras USB u otras instancias de motion. Cada cámara tiene su propio panel de configuración.

            **Detección de movimiento:** Activa por cámara con sensibilidad, umbral y áreas de máscara ajustables. Al detectar movimiento: guardar capturas, grabar vídeo, enviar notificaciones.

            **Grabaciones y capturas:** Almacenamiento automático. Configura políticas de retención para gestionar el espacio en disco.

            **Notificaciones:** Envío de email o webhook al detectar movimiento.

            **Vista multicámara:** Visualiza todas las cámaras simultáneamente en cuadrícula.

            ## Configuración

            - Contraseña de admin: establécela tras el primer inicio de sesión
            - Zona horaria: configura la variable de entorno `TZ` (ej: `Europe/Madrid`)

            ## Licencia

            GPL-3.0 — [GitHub](https://github.com/motioneye-project/motioneye)
    id-ID:
        description: |
            motionEye adalah frontend web self-hosted untuk pengawasan video. Berbasis daemon motion, menyediakan antarmuka browser yang bersih untuk mengelola beberapa kamera, mengatur deteksi gerakan, menerima notifikasi, dan menyimpan rekaman. Mendukung kamera IP, USB, dan stream RTSP.
        variables:
            - key: PUBLIC_DOMAIN
              type: STRING
              name: Domain
              description: Domain untuk mengakses motionEye
        readme: |
            # motionEye

            Frontend web self-hosted untuk pengawasan video. Kelola kamera dari browser tanpa layanan eksternal.

            ## Apa yang bisa dilakukan setelah deploy

            Buka domain Anda dan login dengan akun admin default untuk mulai mengonfigurasi kamera.

            **Kredensial default:** Username `admin`, password kosong. Segera ubah setelah login pertama.

            **Manajemen kamera:** Tambahkan kamera IP (RTSP/MJPEG), kamera USB, atau instance motion lainnya. Setiap kamera memiliki panel konfigurasi sendiri.

            **Deteksi gerakan:** Aktifkan per kamera dengan sensitivitas, threshold, dan area masking yang dapat disesuaikan. Saat gerakan terdeteksi: simpan snapshot, rekam video, kirim notifikasi.

            **Rekaman & snapshot:** Penyimpanan otomatis. Konfigurasi kebijakan retensi untuk mengelola ruang disk.

            **Notifikasi:** Kirim email atau webhook saat gerakan terdeteksi.

            **Tampilan multi-kamera:** Lihat semua kamera secara bersamaan dalam tata letak grid.

            ## Konfigurasi

            - Password admin: atur segera setelah login pertama
            - Zona waktu: atur variabel environment `TZ` (misal: `Asia/Jakarta`)

            ## Lisensi

            GPL-3.0 — [GitHub](https://github.com/motioneye-project/motioneye)
    ja-JP:
        description: |
            motionEyeはセルフホストの映像監視Webフロントエンドです。motionデーモンをベースに、ブラウザから複数カメラの管理、動体検知の設定、通知の受信、録画の保存が可能。IPカメラ、USBカメラ、RTSPストリームに対応。
        variables:
            - key: PUBLIC_DOMAIN
              type: STRING
              name: ドメイン
              description: motionEyeにアクセスするためのドメイン
        readme: |
            # motionEye

            セルフホストの映像監視Webフロントエンド。ブラウザからカメラを管理でき、外部サービス不要。

            ## デプロイ後にできること

            ドメインにアクセスし、デフォルト管理者アカウントでログインしてカメラの設定を開始。

            **デフォルト認証情報：** ユーザー名 `admin`、パスワードは空。初回ログイン後すぐに変更してください。

            **カメラ管理：** IPカメラ（RTSP/MJPEG）、USBカメラ、他のmotionデーモンを追加。解像度、フレームレート、回転を個別設定。

            **動体検知：** カメラごとに感度、閾値、マスクエリアを調整可能。検知時にスナップショット保存、録画、通知送信が可能。

            **録画・スナップショット：** 自動保存。保持ポリシーでディスク容量を管理。Webインターフェースから閲覧・ダウンロード可能。

            **通知：** 動体検知時にメールまたはwebhook通知を送信。

            **マルチカメラ表示：** グリッドレイアウトで全カメラを同時表示。

            ## 設定

            - 管理者パスワード：初回ログイン後すぐに設定
            - タイムゾーン：`TZ`環境変数で設定（例：`Asia/Tokyo`）

            ## ライセンス

            GPL-3.0 — [GitHub](https://github.com/motioneye-project/motioneye)
    ko-KR:
        description: |
            motionEye는 셀프호스팅 영상 감시 웹 프론트엔드입니다. motion 데몬 기반으로, 브라우저에서 여러 카메라 관리, 동작 감지 설정, 알림 수신, 녹화 저장이 가능합니다. IP 카메라, USB 카메라, RTSP 스트림을 지원합니다.
        variables:
            - key: PUBLIC_DOMAIN
              type: STRING
              name: 도메인
              description: motionEye에 접속할 도메인
        readme: |
            # motionEye

            셀프호스팅 영상 감시 웹 프론트엔드. 브라우저에서 카메라를 관리하며 외부 서비스가 필요 없습니다.

            ## 배포 후 할 수 있는 것

            도메인에 접속하여 기본 관리자 계정으로 로그인한 후 카메라 설정을 시작합니다.

            **기본 인증 정보:** 사용자 이름 `admin`, 비밀번호는 비어 있음. 첫 로그인 후 즉시 변경하세요.

            **카메라 관리:** IP 카메라(RTSP/MJPEG), USB 카메라 또는 다른 motion 데몬을 추가. 해상도, 프레임 레이트, 회전을 개별 설정.

            **동작 감지:** 카메라별로 감도, 임계값, 마스크 영역 조정 가능. 감지 시 스냅샷 저장, 영상 녹화, 알림 전송 가능.

            **녹화 및 스냅샷:** 자동 저장. 보존 정책으로 디스크 공간 관리. 웹 인터페이스에서 과거 녹화 탐색 및 다운로드.

            **알림:** 동작 감지 시 이메일 또는 webhook 알림 전송.

            **멀티 카메라 뷰:** 그리드 레이아웃으로 모든 카메라 동시 확인.

            ## 설정

            - 관리자 비밀번호: 첫 로그인 후 즉시 설정
            - 시간대: `TZ` 환경 변수로 설정 (예: `Asia/Seoul`)

            ## 라이선스

            GPL-3.0 — [GitHub](https://github.com/motioneye-project/motioneye)
    th-TH:
        description: |
            motionEye คือเว็บฟรอนต์เอนด์แบบ self-hosted สำหรับระบบวงจรปิด ใช้ motion daemon เป็นพื้นฐาน มีอินเทอร์เฟซบราวเซอร์สำหรับจัดการกล้องหลายตัว ตั้งค่าการตรวจจับการเคลื่อนไหว รับการแจ้งเตือน และจัดเก็บวิดีโอ รองรับกล้อง IP, USB และ RTSP
        variables:
            - key: PUBLIC_DOMAIN
              type: STRING
              name: โดเมน
              description: โดเมนสำหรับเข้าถึง motionEye
        readme: |
            # motionEye

            เว็บฟรอนต์เอนด์แบบ self-hosted สำหรับระบบวงจรปิด จัดการกล้องผ่านบราวเซอร์โดยไม่ต้องใช้บริการภายนอก

            ## สิ่งที่ทำได้หลังจากติดตั้ง

            เข้าสู่โดเมนและล็อกอินด้วยบัญชีผู้ดูแลเริ่มต้นเพื่อเริ่มตั้งค่ากล้อง

            **ข้อมูลล็อกอินเริ่มต้น:** ชื่อผู้ใช้ `admin` รหัสผ่านว่าง เปลี่ยนทันทีหลังล็อกอินครั้งแรก

            **จัดการกล้อง:** เพิ่มกล้อง IP (RTSP/MJPEG), กล้อง USB หรือ motion daemon อื่น แต่ละกล้องมีแผงตั้งค่าแยก

            **ตรวจจับการเคลื่อนไหว:** เปิดใช้ต่อกล้อง ปรับความไว ค่าขีดจำกัด และพื้นที่มาสก์ เมื่อตรวจพบ: บันทึกภาพ บันทึกวิดีโอ ส่งการแจ้งเตือน

            **การบันทึกและภาพถ่าย:** จัดเก็บอัตโนมัติ ตั้งค่านโยบายการเก็บรักษาเพื่อจัดการพื้นที่ดิสก์

            **การแจ้งเตือน:** ส่งอีเมลหรือ webhook เมื่อตรวจพบการเคลื่อนไหว

            **มุมมองหลายกล้อง:** ดูกล้องทั้งหมดพร้อมกันในรูปแบบตาราง

            ## การตั้งค่า

            - รหัสผ่านผู้ดูแล: ตั้งทันทีหลังล็อกอินครั้งแรก
            - เขตเวลา: ตั้งค่าตัวแปร `TZ` (เช่น `Asia/Bangkok`)

            ## สัญญาอนุญาต

            GPL-3.0 — [GitHub](https://github.com/motioneye-project/motioneye)
    zh-CN:
        description: |
            motionEye 是自托管的视频监控网页前端。基于 motion 守护进程，提供简洁的浏览器界面管理多台摄像头、配置动态检测、接收通知及存储录像。支持 IP 摄像头、USB 摄像头及 RTSP 流。
        variables:
            - key: PUBLIC_DOMAIN
              type: STRING
              name: 域名
              description: 访问 motionEye 的域名
        readme: |
            # motionEye

            自托管的视频监控网页前端，通过浏览器管理摄像头，无需外部服务。

            ## 部署后可以做什么

            打开域名并使用默认管理员账号登录，即可开始配置摄像头。

            **默认账号：** 用户名 `admin`，密码为空。请在首次登录后立即更改密码。

            **摄像头管理：** 添加 IP 摄像头（RTSP/MJPEG）、USB 摄像头或其他 motion 守护进程。每个摄像头有独立配置面板。

            **动态检测：** 按摄像头启用动态检测，可调整灵敏度、阈值和遮罩区域。检测到动态时可保存快照、录制视频、发送通知。

            **录像与快照：** 自动存储录像和快照。可配置保留策略管理磁盘空间。

            **通知功能：** 检测到动态时发送邮件或 webhook 通知。

            **多摄像头视图：** 网格布局同时查看所有摄像头。

            ## 设置

            - 管理员密码：首次登录后立即设置
            - 时区：通过 `TZ` 环境变量设置

            ## 授权

            GPL-3.0 — [GitHub](https://github.com/motioneye-project/motioneye)
    zh-TW:
        description: |
            motionEye 是自架的影像監控網頁前端。基於 motion 守護程式，提供簡潔的瀏覽器介面管理多台攝影機、設定動態偵測、接收通知及儲存錄影。支援 IP 攝影機、USB 攝影機及 RTSP 串流。
        variables:
            - key: PUBLIC_DOMAIN
              type: STRING
              name: 網域
              description: 存取 motionEye 的網域
        readme: |
            # motionEye

            自架的影像監控網頁前端，透過瀏覽器管理攝影機，不需要外部服務。

            ## 部署後可以做什麼

            開啟網域並使用預設管理員帳號登入，即可開始設定攝影機。

            **預設帳號：** 使用者名稱 `admin`，密碼為空。請在首次登入後立即透過設定面板更改密碼。

            **攝影機管理：** 新增 IP 攝影機（RTSP/MJPEG）、USB 攝影機或其他 motion 守護程式。每台攝影機都有獨立的設定面板，可調整解析度、幀率和旋轉。

            **動態偵測：** 依攝影機啟用動態偵測，可調整靈敏度、閾值和遮罩區域。偵測到動態時可儲存快照、錄製影片、執行自訂指令或發送通知。

            **錄影與快照：** 自動將錄影和快照儲存到本機。可設定保留策略管理磁碟空間。透過網頁介面瀏覽和下載歷史錄影。

            **通知功能：** 偵測到動態時發送電子郵件或 webhook 通知，支援自訂 shell 指令。

            **多攝影機檢視：** 以格狀佈局同時檢視所有攝影機，點擊可全螢幕檢視。

            ## 設定

            - **管理員密碼：** 首次登入後立即設定
            - **時區：** 透過 `TZ` 環境變數設定（例如 `Asia/Taipei`）
            - **儲存空間：** 錄影儲存於 `/var/lib/motioneye`，已透過磁碟區持久化

            ## 授權

            GPL-3.0 — [GitHub](https://github.com/motioneye-project/motioneye)
