iobroker.agent-dvr 0.5.4 → 0.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.de.md +101 -0
- package/README.md +98 -31
- package/admin/assets/{index-D7mDAij8.js → index-DyH6BvVs.js} +1 -1
- package/admin/i18n/de.json +13 -3
- package/admin/i18n/en.json +13 -3
- package/admin/i18n/es.json +13 -3
- package/admin/i18n/fr.json +13 -3
- package/admin/i18n/it.json +13 -3
- package/admin/i18n/nl.json +13 -3
- package/admin/i18n/pl.json +13 -3
- package/admin/i18n/pt.json +13 -3
- package/admin/i18n/ru.json +13 -3
- package/admin/i18n/uk.json +13 -3
- package/admin/i18n/zh-cn.json +13 -3
- package/admin/index_m.html +1 -1
- package/build/main.js +277 -38
- package/build/main.js.map +3 -3
- package/io-package.json +71 -39
- package/lib/web.js +21 -1
- package/package.json +10 -2
- package/admin/assets/index-BbdJhf8p.js +0 -685
- package/admin/assets/index-D01Axkcs.js +0 -685
- package/admin/assets/index-D867V7Ib.js +0 -685
- package/admin/assets/index-OlM-izPi.js +0 -685
- package/admin/assets/index-q6fPDLUP.js +0 -685
package/io-package.json
CHANGED
|
@@ -1,8 +1,34 @@
|
|
|
1
1
|
{
|
|
2
2
|
"common": {
|
|
3
3
|
"name": "agent-dvr",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.6.0",
|
|
5
5
|
"news": {
|
|
6
|
+
"0.6.0": {
|
|
7
|
+
"en": "* feat: alert photos — a webhook call with `?oid={ID}` stores the full-resolution photo in the file storage, last 3 per camera (`alertPhotos.grab1–3`, `uri1–3`, `ts1–3`), also served for VIS\n* feat: `<cam>.events.webhook` pulses immediately on a webhook call with `oid` (20 s cooldown per camera)\n* fix: `events.detected_*` now also fires when AgentDVR adds the AI tag (e.g. `people`) later\n* chore: clearer adapter title and keywords; README section on getting images for VIS and scripts",
|
|
8
|
+
"de": "* feat: Alarmfotos — ein Webhook-Aufruf mit `?oid={ID}` legt das Foto in voller Auflösung im Dateispeicher ab, letzte 3 pro Kamera (`alertPhotos.grab1–3`, `uri1–3`, `ts1–3`), auch für VIS abrufbar\n* feat: `<cam>.events.webhook` wird bei einem Webhook-Aufruf mit `oid` sofort gesetzt (20 s Sperrzeit pro Kamera)\n* fix: `events.detected_*` wird jetzt auch gesetzt, wenn AgentDVR den KI-Tag (z. B. `people`) erst später ergänzt\n* chore: klarerer Adaptertitel und Schlüsselwörter; README-Abschnitt, wie man an Bilder für VIS und Skripte kommt",
|
|
9
|
+
"ru": "* feat: фото тревоги — вызов вебхука с `?oid={ID}` сохраняет фото в полном разрешении в файловом хранилище, последние 3 на камеру (`alertPhotos.grab1–3`, `uri1–3`, `ts1–3`), также доступны для VIS\n* feat: `<cam>.events.webhook` срабатывает сразу при вызове вебхука с `oid` (пауза 20 с на камеру)\n* fix: `events.detected_*` теперь срабатывает и тогда, когда AgentDVR добавляет AI-тег (например, `people`) позже\n* chore: более понятное название адаптера и ключевые слова; раздел README о получении изображений для VIS и скриптов",
|
|
10
|
+
"pt": "* feat: fotos de alarme — uma chamada do webhook com `?oid={ID}` guarda a foto em resolução total no armazenamento de ficheiros, últimas 3 por câmara (`alertPhotos.grab1–3`, `uri1–3`, `ts1–3`), também disponíveis para VIS\n* feat: `<cam>.events.webhook` é ativado imediatamente numa chamada do webhook com `oid` (pausa de 20 s por câmara)\n* fix: `events.detected_*` agora também é ativado quando o AgentDVR adiciona a etiqueta de IA (p. ex. `people`) mais tarde\n* chore: título do adaptador e palavras-chave mais claros; secção do README sobre como obter imagens para VIS e scripts",
|
|
11
|
+
"nl": "* feat: alarmfoto's — een webhook-aanroep met `?oid={ID}` slaat de foto in volledige resolutie op in de bestandsopslag, laatste 3 per camera (`alertPhotos.grab1–3`, `uri1–3`, `ts1–3`), ook beschikbaar voor VIS\n* feat: `<cam>.events.webhook` wordt direct gezet bij een webhook-aanroep met `oid` (20 s wachttijd per camera)\n* fix: `events.detected_*` wordt nu ook gezet als AgentDVR de AI-tag (bijv. `people`) later toevoegt\n* chore: duidelijkere adaptertitel en trefwoorden; README-sectie over het ophalen van beelden voor VIS en scripts",
|
|
12
|
+
"fr": "* feat : photos d'alerte — un appel du webhook avec `?oid={ID}` enregistre la photo en pleine résolution dans le stockage de fichiers, 3 dernières par caméra (`alertPhotos.grab1–3`, `uri1–3`, `ts1–3`), également servies pour VIS\n* feat : `<cam>.events.webhook` est activé immédiatement lors d'un appel du webhook avec `oid` (délai de 20 s par caméra)\n* fix : `events.detected_*` est désormais aussi activé quand AgentDVR ajoute l'étiquette IA (p. ex. `people`) plus tard\n* chore : titre de l'adaptateur et mots-clés plus clairs ; section README sur l'obtention d'images pour VIS et les scripts",
|
|
13
|
+
"it": "* feat: foto di allarme — una chiamata del webhook con `?oid={ID}` salva la foto a piena risoluzione nell'archivio file, ultime 3 per telecamera (`alertPhotos.grab1–3`, `uri1–3`, `ts1–3`), disponibili anche per VIS\n* feat: `<cam>.events.webhook` viene attivato subito a ogni chiamata del webhook con `oid` (pausa di 20 s per telecamera)\n* fix: `events.detected_*` ora viene attivato anche quando AgentDVR aggiunge il tag IA (es. `people`) in seguito\n* chore: titolo dell'adattatore e parole chiave più chiari; sezione del README su come ottenere immagini per VIS e script",
|
|
14
|
+
"es": "* feat: fotos de alarma — una llamada al webhook con `?oid={ID}` guarda la foto en resolución completa en el almacenamiento de archivos, últimas 3 por cámara (`alertPhotos.grab1–3`, `uri1–3`, `ts1–3`), también disponibles para VIS\n* feat: `<cam>.events.webhook` se activa de inmediato en una llamada al webhook con `oid` (pausa de 20 s por cámara)\n* fix: `events.detected_*` ahora también se activa cuando AgentDVR añade la etiqueta de IA (p. ej. `people`) más tarde\n* chore: título del adaptador y palabras clave más claros; sección del README sobre cómo obtener imágenes para VIS y scripts",
|
|
15
|
+
"pl": "* feat: zdjęcia alarmowe — wywołanie webhooka z `?oid={ID}` zapisuje zdjęcie w pełnej rozdzielczości w magazynie plików, ostatnie 3 na kamerę (`alertPhotos.grab1–3`, `uri1–3`, `ts1–3`), dostępne także dla VIS\n* feat: `<cam>.events.webhook` jest ustawiany natychmiast przy wywołaniu webhooka z `oid` (20 s przerwy na kamerę)\n* fix: `events.detected_*` jest teraz ustawiany także wtedy, gdy AgentDVR doda tag AI (np. `people`) później\n* chore: czytelniejszy tytuł adaptera i słowa kluczowe; sekcja README o pobieraniu obrazów dla VIS i skryptów",
|
|
16
|
+
"uk": "* feat: фото тривоги — виклик вебхука з `?oid={ID}` зберігає фото в повній роздільній здатності у файловому сховищі, останні 3 на камеру (`alertPhotos.grab1–3`, `uri1–3`, `ts1–3`), також доступні для VIS\n* feat: `<cam>.events.webhook` спрацьовує одразу під час виклику вебхука з `oid` (пауза 20 с на камеру)\n* fix: `events.detected_*` тепер спрацьовує і тоді, коли AgentDVR додає AI-тег (наприклад, `people`) пізніше\n* chore: зрозуміліша назва адаптера та ключові слова; розділ README про отримання зображень для VIS і скриптів",
|
|
17
|
+
"zh-cn": "* feat: 报警照片 — 使用 `?oid={ID}` 调用 Webhook 时,将全分辨率照片保存到文件存储中,每个摄像头保留最近 3 张(`alertPhotos.grab1–3`、`uri1–3`、`ts1–3`),也可供 VIS 使用\n* feat: 使用 `oid` 调用 Webhook 时立即触发 `<cam>.events.webhook`(每个摄像头 20 秒冷却)\n* fix: 当 AgentDVR 稍后才添加 AI 标签(如 `people`)时,`events.detected_*` 现在也会触发\n* chore: 更清晰的适配器标题和关键词;README 新增为 VIS 和脚本获取图像的章节"
|
|
18
|
+
},
|
|
19
|
+
"0.5.5": {
|
|
20
|
+
"en": "* fix: live preview video no longer gets stretched/distorted — AgentDVR's live stream squishes the full picture into a fixed container format regardless of the camera's actual aspect ratio; now corrected (`object-fit:fill`) instead of shown distorted\n* feat: configurable live-tile refresh interval (`widgetLiveRefreshSec`) — trade thumbnail freshness against keeping an open video modal open, since rewriting the widget's HTML state resets it\n* feat: optional full-JS live-tile refresh mode (`widgetLiveMode`) — refreshes only the snapshot image via a small embedded script, so an open video modal never closes regardless of refresh frequency (requires script execution, same tradeoff as the existing gallery JS mode)\n* feat: live widgets now share the gallery's theme colors, thumbnail size and compact setting, which previously only applied to the recordings widget\n* refactor: reorganized the Widget settings panel into clearly scoped General / Recordings Widget / Live Widget / Theme sections with a proper two-level heading hierarchy, instead of one long section whose subsections looked like independent categories\n\n<!-- markdownlint-disable-next-line MD024 -->",
|
|
21
|
+
"de": "* Fix: Live-Vorschauvideo wird nicht mehr gedehnt/verzerrt — AgentDVRs Livestream packt das ganze Bild unabhängig vom Seitenverhältnis der Kamera in ein festes Format; jetzt korrigiert (`object-fit:fill`) statt verzerrt\n* Feat: konfigurierbares Aktualisierungsintervall (`widgetLiveRefreshSec`) — tausche das Thumbnail gegen ein geöffnetes Video-Modal aus, da das Umschreiben des HTML-Status des Widgets es zurücksetzt\n* feat: optionaler Full-JS-Live-Tile-Aktualisierungsmodus (`widgetLiveMode`) — aktualisiert nur das Snapshot-Bild über ein kleines eingebettetes Skript, sodass ein geöffnetes Video-Modal nie schließt (erfordert Skriptausführung, gleicher Kompromiss wie der bestehende Galerie-JS-Modus)\n* Feat: Live-Widgets teilen jetzt Designfarben, Thumbnail-Größe und Kompaktformat der Galerie, was zuvor nur für das Aufnahme-Widget galt\n* Umgestaltung: Umgestaltung der Widget-Einstellungen in übersichtliche Bereiche Allgemein, Aufnahme-Widget, Live-Widget, Theme mit zweistufigen Überschriften, statt eines langen Bereichs, dessen Unterabschnitte wie separate Kategorien aussahen\n\n<!-- markdownlint-disable-next-line MD024 -->",
|
|
22
|
+
"ru": "* исправлено: видео в режиме реального времени больше не растягивается или искажается — прямая трансляция AgentDVR превращает полное изображение в фиксированный формат контейнера независимо от фактического соотношения сторон камеры; теперь оно исправлено (`object-fit:fill`), а не отображается искаженным\n* фишка: настраиваемый интервал обновления лайв-тайлов (`WidgetLiveRefreshSec`) — замените актуальность эскизов на сохранение открытого модального окна с открытым видео, поскольку при переписывании HTML-состояния виджета оно обнуляется\n* фишка: дополнительный режим обновления файлов в реальном времени в формате Full-JS (`WidgetLiveMode`) — обновляет только изображение снимка с помощью небольшого встроенного скрипта, поэтому модальное окно с открытым видео никогда не закрывается независимо от частоты обновления (требует выполнения сценария, а также компромисса с существующим режимом JS в галерее)\n* фишка: живые виджеты теперь используют цвета темы галереи, размер миниатюр и компактные настройки, которые ранее применялись только к виджету записей\n* рефакторинг: реорганизовал панель настроек виджета на разделы «Общие»/«Записи»/«Виджет записей»/«Живой виджет»/«Тема» с правильной двухуровневой иерархией заголовков вместо одного длинного раздела, подразделы которого выглядели как независимые категории\n\n<!-- markdownlint-disable-next-line MD024 -->",
|
|
23
|
+
"pt": "* correção: a pré-visualização ao vivo não fica mais esticada/distorcida — a transmissão ao vivo do AgentDVR transforma a imagem inteira em um formato fixo, independente da proporção real da câmera; agora corrigida (`object-fit:fill`)\n* feat: intervalo configurável (`widgetLiveRefreshSec`) — troque o frescor da miniatura por manter um modal de vídeo aberto, pois reescrever o estado HTML do widget o redefine\n* feat: modo opcional de atualização ao vivo em JS completo (`widgetLiveMode`) — atualiza somente a imagem instantânea por meio de um pequeno script embutido, então um modal de vídeo aberto nunca fecha (requer execução de script, o mesmo que o modo JS da galeria existente)\n* feat: os live widgets agora compartilham as cores do tema, o tamanho da miniatura e a configuração compacta da galeria, que antes só se aplicavam às gravações\n* refatorar: reorganizou o painel de configurações do widget em seções com escopo claro em Geral/Widget/Live Widget/Tema, em vez de uma seção longa cujas subseções pareciam categorias independentes\n\n<!-- markdownlint-disable-next-line MD024 -->",
|
|
24
|
+
"nl": "* oplossing: live preview-video wordt niet langer uitgerekt/vervormd — in de livestream van AgentDVR wordt het volledige beeld samengeperst in een vast containerformaat, ongeacht de werkelijke beeldverhouding van de camera; nu gecorrigeerd (`object-fit:fill`) in plaats van vervormd weergegeven\n* prestatie: configureerbaar vernieuwingsinterval voor live-tiles (`WidgetLiveRefreshSec`) — ruil de versheid van de miniatuur in tegen het openhouden van een open videomodaal, want als u de HTML-status van de widget herschrijft, wordt de widget gereset\n* prestatie: optionele Full-JS live-tile refresh-modus (`WidgetLiveMode`) — vernieuwt alleen de snapshot-afbeelding via een klein ingebouwd script, zodat een open videomodal nooit wordt gesloten, ongeacht de vernieuwingsfrequentie (vereist uitvoering van het script, hetzelfde compromis als de bestaande JS-modus van de galerie)\n* prestatie: live widgets delen nu de themakleuren, miniatuurgrootte en compacte instellingen van de galerij, die voorheen alleen van toepassing waren op de opname-widget\n* refactor: het instellingenpaneel van de widget is gereorganiseerd in secties Algemeen/Opnamenwidget/Live Widget/Thema met een duidelijke hiërarchie op twee niveaus, in plaats van één lange sectie waarvan de subsecties eruit zagen als onafhankelijke categorieën\n\n<!-- markdownlint-disable-next-line MD024 -->",
|
|
25
|
+
"fr": "* Correction : la vidéo d'aperçu en direct n'est plus étirée/déformée. La diffusion en direct d'AgentDVR écrase l'image complète dans un format conteneur fixe, quel que soit le format de la caméra ; maintenant corrigé (`object-fit:fill`) au lieu d'être affiché déformé\n* exploit : intervalle de rafraîchissement configurable en direct (`WidgetLiveRefreshSec`) — échangez la fraîcheur des vignettes contre un mode vidéo ouvert, car la réécriture de l'état HTML du widget le réinitialise\n* exploit : mode optionnel de rafraîchissement des vignettes en direct en JS (`WidgetLiveMode`) — ne rafraîchit que l'image instantanée via un petit script intégré, afin qu'un modal vidéo ouvert ne se ferme jamais, quelle que soit la fréquence de rafraîchissement (nécessite l'exécution d'un script, même compromis que le mode JS de la galerie)\n* exploit : les widgets live partagent désormais les couleurs du thème, la taille des vignettes et le réglage compact de la galerie, qui ne s'appliquaient auparavant qu'aux enregistrements\n* refonte : le panneau des paramètres du widget a été réorganisé en sections générales, Recordings Widget, Live Widget, Thèmes, avec une hiérarchie de titres à deux niveaux, au lieu d'une longue section qui ressemblait à des catégories indépendantes\n\n<!-- markdownlint-disable-next-line MD024 -->",
|
|
26
|
+
"it": "* correzione: il video di anteprima dal vivo non viene più allungato/distorto — il live stream di AgentDVR comprime l'immagine completa in un formato contenitore fisso indipendentemente dalle effettive proporzioni della telecamera\n* feat: intervallo di aggiornamento del riquadro live configurabile (`widgetLiveRefreshSec`) — scambia la freschezza delle miniature con un video aperto, dato che riscrivere lo stato HTML del widget\n* feat: modalità opzionale Full-JS live-tile refresh (`widgetLiveMode`) — aggiorna solo l'immagine istantanea con un piccolo script incorporato, quindi una modalità video aperta non si chiude mai (richiede l'esecuzione di script, stesso compromesso della modalità JS gallery esistente)\n* feat: i widget live ora condividono i colori del tema, le miniature e l'impostazione compatta della galleria, prima\n* refactoring: ha riorganizzato il pannello delle impostazioni del Widget in sezioni Generali/Recordings Widget/Tema con una gerarchia di titoli a due livelli, invece di una lunga sezione le cui sottosezioni sembravano categorie indipendenti\n\n<!-- markdownlint-disable-next-line MD024 -->",
|
|
27
|
+
"es": "* solución: el vídeo de previsualización en directo ya no se estira ni distorsiona: la emisión en directo de AgentDVR comprime la imagen completa en un formato contenedor fijo sin importar la relación de aspecto real de la cámara; ahora corregido (`objeto-ajusto:rellenar`) en lugar de mostrarlo distorsionado\n* hazaña: intervalo configurable de actualización de mosaicos en vivo (`WidgetLiveRefreshSec`): cambie la frescura de las miniaturas por mantener abierto un modal de vídeo abierto, ya que al reescribir el estado HTML del widget lo restablece\n* hazaña: modo opcional de actualización de mosaicos vivos Full-JS (`WidgetLiveMode`): solo actualiza la imagen instantánea mediante un pequeño guion incrustado, por lo que un modal de vídeo abierto nunca se cierra sin importar la frecuencia de actualización (requiere la ejecución del guion, igual que el modo JS de galería existente)\n* hazaña: los widgets en vivo ahora comparten el tema, los colores, el tamaño de las miniaturas y el ajuste compacto de la galería, que antes solo se aplicaba al widget\n* refactorización: reorganizó el panel de ajustes del widget en secciones generales, widgets de grabaciones, widget en vivo o temas con una jerarquía adecuada de encabezados de dos niveles, en lugar de una sección larga cuyas subsecciones parecían categorías independientes\n\n<!-- markdownlint-disable-next-line MD024 -->",
|
|
28
|
+
"pl": "* poprawka: wideo z podglądem na żywo nie jest już rozciągane/zniekształcane - transmisja na żywo AgentDVR przesuwa pełny obraz do stałego formatu kontenera niezależnie od rzeczywistego współczynnika obrazu kamery; teraz poprawiony („object-fit:fill”) zamiast pokazanego zniekształconego\n* feat: konfigurowalny interwał odświeżania płytek na żywo (`WidgetLiveFreshSec`) — zamieniaj świeżość miniatur z zachowaniem otwartego modalu wideo, ponieważ ponowne zapisanie stanu HTML widżetu resetuje go\n* feat: opcjonalny tryb odświeżania na żywo Full-JS (`WidgetLiveMode`) - odświeża tylko obraz migawki za pomocą małego osadzonego skryptu, więc otwarty modal wideo nigdy się nie zamyka niezależnie od częstotliwości odświeżania (wymaga wykonania skryptu, taki sam kompromis jak istniejący tryb JS galerii)\n* feat: widżety na żywo udostępniają teraz kolory motywu galerii, rozmiar miniatur i kompaktowe ustawienia, które wcześniej dotyczyły tylko widżetu nagrań\n* refactor: reorganizacja panelu ustawień widżetu na wyraźnie zakresowane sekcje Ogólne/Nagrania Widget/Live Widget/Theme z odpowiednią dwupoziomową hierarchią nagłówków, zamiast jednej długiej sekcji, której podsekcje wyglądały jak niezależne kategorie\n\n<!-- markdownlint-disable-next-line MD024 -->",
|
|
29
|
+
"uk": "* виправлено: відео попереднього перегляду в прямому ефірі більше не розтягується/спотворюється - пряма трансляція AgentDVR стискає повну картинку у фіксований формат контейнера незалежно від фактичного співвідношення сторін камери; тепер виправлено (`object-fit:fill`) замість показаного спотвореного\n* feat: настроюваний інтервал оновлення живих плиток (`WidgetLiveRefreshSec`) - торгуйте свіжістю мініатюр проти збереження відкритого модалу відео, оскільки переписування стану HTML віджета скидає його\n* feat: необов'язковий режим оновлення повноформатних JS живих плиток (`WidgetLiveMode`) - оновлює лише зображення знімка за допомогою невеликого вбудованого сценарію, тому відкритий відео-модальний режим ніколи не закривається незалежно від частоти оновлення (вимагає виконання сценарію, той самий компроміс, що і існуючий режим JS галереї)\n* feat: живі віджети тепер поділяють кольори теми галереї, розмір мініатюр та компактні налаштування, які раніше застосовувалися лише до віджету записів\n* рефактор: реорганізував панель налаштувань віджетів у чітко визначені розділи Загальне/Віджет записів/Живий віджет/Тема з належною дворівневою ієрархією заголовків, замість одного довгого розділу, підрозділи якого виглядали як незалежні категорії\n\n<!-- markdownlint-disable-next-line MD024 -->",
|
|
30
|
+
"zh-cn": "* 修复:实时预览视频不再被拉伸/失真——无论摄像机的实际纵横比如何,AgentDVR 的直播都会将整张画面压缩成固定的容器格式;现已更正(`object-fit: fill`),而不是失真显示\n* feat:可配置的实时图块刷新间隔 (`WidgetLivereRefreshsec`) — 用缩略图的新鲜度与保持打开的视频模式保持打开状态相交换,因为重写小工具的 HTML 状态会重置它\n* feat:可选的全 JS 实时图块刷新模式(`WidgetLiveMode`)——仅通过小型嵌入式脚本刷新快照图像,因此无论刷新频率如何,开放式视频模式都不会关闭(需要执行脚本,与现有的图库 JS 模式进行权衡取舍)\n* 壮举:实时插件现在可以共享图库的主题颜色、缩略图大小和紧凑设置,以前仅适用于录制小部件\n* 重构:将控件设置面板重组为范围明确的 “常规”/Recordings Widget/Live Widget/Theme 部分,采用适当的两级标题层次结构,而不是一个小节看起来像独立类别的长部分\n\n<!--markdownlint-disable-next-line MD024-->"
|
|
31
|
+
},
|
|
6
32
|
"0.5.4": {
|
|
7
33
|
"en": "* fix: single-camera live widget snapshot never refreshed (missing cache-busting timestamp + signature-based dedup skipped rewriting the state)\n* fix: live video element now receives the correct aspect ratio instead of the browser's default placeholder box before playback starts\n* fix: live/recording video no longer gets stretched to fill a mismatched aspect-ratio box — degrades to letterboxing (`object-fit:contain`) instead\n\n<!-- markdownlint-disable-next-line MD024 -->",
|
|
8
34
|
"de": "* Fix: Live-Widget-Snapshot mit einer Kamera wurde nie aktualisiert (kein Cache-Busting-Zeitstempel und signaturbasiertes Deduplizieren übersprungen)\n* Fix: Live-Video erhält jetzt vor Wiedergabebeginn das richtige Seitenverhältnis statt wie im Browser\n* Fix: Live-/Aufnahmevideo füllt nicht mehr ein falsches Seitenverhältnis aus — stattdessen wird Letterboxing (`object-fit:contain`)\n\n<!-- markdownlint-disable-next-line MD024 -->",
|
|
@@ -67,46 +93,20 @@
|
|
|
67
93
|
"pl": "feat: wyskakujące okienko filtrowania kamer z przeciąganiem, odznaka nowych nagrań, ustawienia wyświetlania nagrań, wyzwalacz webhook, presety PTZ, dziennik zdarzeń, usuwanie zbiorcze, kolor kamery, rozszerzenia paska stanu, przycisk resetowania kolorów; różne poprawki pulpitu nawigacyjnego",
|
|
68
94
|
"uk": "feat: спливаюче вікно фільтра камер із сортуванням перетягуванням, значок нових записів, налаштування відображення записів, вебхук-тригер, пресети PTZ, журнал подій, масове видалення, колір камери, розширення рядка стану, кнопка скидання кольорів; різні виправлення панелі",
|
|
69
95
|
"zh-cn": "feat: 相机过滤弹出框支持拖拽排序、新录像徽章、录像显示设置、Webhook触发器、PTZ预设、事件日志、批量删除、相机颜色、状态栏扩展、颜色重置按钮;多项仪表板修复"
|
|
70
|
-
},
|
|
71
|
-
"0.4.3": {
|
|
72
|
-
"en": "fix: switch polling loop from setInterval to setTimeout to prevent concurrent poll runs\nfix: httpTimeoutMs=0 now correctly clamps to 1000ms instead of falling back to default\nfix: go2rtcEnabled config flag is now honored in fetchGo2rtcStreams\nfix: remove unused isSupportedLang export from widget-i18n",
|
|
73
|
-
"de": "Behebung: Umstellung der Abfrageschleife von setInterval auf setTimeout, um gleichzeitige Abfrageläufe zu verhindern.\nBehoben: httpTimeoutMs=0 begrenzt das Timeout nun korrekt auf 1000 ms, anstatt auf den Standardwert zurückzugreifen.\nBehoben: Das Konfigurationsflag go2rtcEnabled wird nun in fetchGo2rtcStreams berücksichtigt.\nBehebung: Entfernen des nicht verwendeten isSupportedLang-Exports aus widget-i18n",
|
|
74
|
-
"ru": "Исправление: переключите цикл опроса с setInterval на setTimeout, чтобы предотвратить одновременный запуск опроса.\nИсправлено: httpTimeoutMs=0 теперь корректно ограничивает значение до 1000 мс, вместо того чтобы возвращаться к значению по умолчанию.\nИсправление: флаг конфигурации go2rtcEnabled теперь учитывается в fetchGo2rtcStreams\nИсправление: удален неиспользуемый экспорт isSupportedLang из widget-i18n",
|
|
75
|
-
"pt": "Correção: altere o loop de polling de setInterval para setTimeout para evitar execuções de polling simultâneas.\nCorreção: httpTimeoutMs=0 agora limita corretamente o valor a 1000ms em vez de retornar ao valor padrão.\nCorreção: a flag de configuração go2rtcEnabled agora é respeitada em fetchGo2rtcStreams.\nCorreção: remover a exportação isSupportedLang não utilizada do widget-i18n.",
|
|
76
|
-
"nl": "Oplossing: wijzig de polling-loop van `setInterval` naar `setTimeout` om gelijktijdige polling-runs te voorkomen.\nOpgelost: httpTimeoutMs=0 zorgt er nu voor dat de waarde correct wordt beperkt tot 1000 ms in plaats van terug te vallen op de standaardwaarde.\nOpgelost: de configuratievlag go2rtcEnabled wordt nu correct gebruikt in fetchGo2rtcStreams.\nOplossing: verwijder de ongebruikte export van isSupportedLang uit widget-i18n.",
|
|
77
|
-
"fr": "Correction : remplacer la boucle d'interrogation setInterval par setTimeout pour éviter les interrogations simultanées.\nCorrection : httpTimeoutMs=0 limite désormais correctement le délai à 1000 ms au lieu de revenir à la valeur par défaut.\nCorrection : l'option de configuration go2rtcEnabled est désormais prise en compte dans fetchGo2rtcStreams\nCorrection : suppression de l’exportation inutilisée isSupportedLang de widget-i18n",
|
|
78
|
-
"it": "Correzione: passare dal ciclo di polling setInterval a setTimeout per evitare esecuzioni simultanee del polling.\nCorrezione: httpTimeoutMs=0 ora limita correttamente a 1000 ms invece di tornare al valore predefinito\nCorrezione: il flag di configurazione go2rtcEnabled ora viene rispettato in fetchGo2rtcStreams\ncorrezione: rimuovere l'esportazione inutilizzata di isSupportedLang dal widget-i18n",
|
|
79
|
-
"es": "Solución: cambiar el bucle de sondeo de setInterval a setTimeout para evitar ejecuciones de sondeo simultáneas.\nCorrección: httpTimeoutMs=0 ahora se ajusta correctamente a 1000 ms en lugar de recurrir al valor predeterminado.\nCorrección: el indicador de configuración go2rtcEnabled ahora se respeta en fetchGo2rtcStreams.\nCorrección: eliminar la exportación no utilizada de isSupportedLang de widget-i18n",
|
|
80
|
-
"pl": "naprawiono: przełącz pętlę sondowania z setInterval na setTimeout, aby zapobiec równoczesnym uruchomieniom sondowania\nnaprawiono: httpTimeoutMs=0 teraz poprawnie ogranicza się do 1000 ms zamiast powracać do wartości domyślnej\nnaprawiono: flaga konfiguracji go2rtcEnabled jest teraz uwzględniana w pobieraniu strumieni Go2rtcStreams\nnaprawiono: usunięto nieużywany eksport isSupportedLang z widget-i18n",
|
|
81
|
-
"uk": "виправлення: перемикання циклу опитування з setInterval на setTimeout для запобігання одночасним запускам опитувань\nвиправлення: httpTimeoutMs=0 тепер коректно обмежується значенням 1000 мс, а не повертається до значення за замовчуванням.\nвиправлення: прапор конфігурації go2rtcEnabled тепер враховується у fetchGo2rtcStreams.\nвиправлення: видалено невикористаний експорт isSupportedLang з widget-i18n",
|
|
82
|
-
"zh-cn": "修复方案:将轮询循环的 setInterval 改为 setTimeout,以防止并发轮询。\n修复:现在 httpTimeoutMs=0 会正确地将超时时间限制为 1000 毫秒,而不是回退到默认值。\n修复:fetchGo2rtcStreams 现在会识别 go2rtcEnabled 配置标志。\n修复:从 widget-i18n 中移除未使用的 isSupportedLang 导出"
|
|
83
|
-
},
|
|
84
|
-
"0.4.2": {
|
|
85
|
-
"en": "fix: FLV proxy now sends auth headers; dashboard online status corrected; admin UI default mismatches resolved; MP4/FLV label i18n",
|
|
86
|
-
"de": "fix: FLV-Proxy sendet jetzt Auth-Header; Online-Status im Dashboard korrigiert; Admin-UI-Default-Abweichungen behoben; MP4/FLV-Label i18n",
|
|
87
|
-
"ru": "fix: FLV-прокси теперь отправляет заголовок авторизации; исправлен статус онлайн в панели; исправлены значения по умолчанию в UI; i18n метки MP4/FLV",
|
|
88
|
-
"pt": "fix: proxy FLV agora envia cabeçalhos de autenticação; status online no painel corrigido; padrões da UI do admin corrigidos; i18n do rótulo MP4/FLV",
|
|
89
|
-
"nl": "fix: FLV-proxy verstuurt nu auth-headers; online-status in dashboard gecorrigeerd; standaardwaarden in admin-UI gecorrigeerd; MP4/FLV-label i18n",
|
|
90
|
-
"fr": "fix: le proxy FLV envoie désormais les en-têtes d auth; statut en ligne du tableau de bord corrigé; valeurs par défaut de l UI admin corrigées; i18n du libellé MP4/FLV",
|
|
91
|
-
"it": "fix: il proxy FLV ora invia intestazioni di autenticazione; stato online nella dashboard corretto; valori predefiniti UI admin corretti; i18n etichetta MP4/FLV",
|
|
92
|
-
"es": "fix: el proxy FLV ahora envía cabeceras de autenticación; estado en línea del panel corregido; valores predeterminados de la UI de administración corregidos; i18n de la etiqueta MP4/FLV",
|
|
93
|
-
"pl": "fix: proxy FLV wysyła teraz nagłówki autoryzacji; poprawiono status online w panelu; poprawiono wartości domyślne w UI admina; i18n etykiety MP4/FLV",
|
|
94
|
-
"uk": "fix: FLV-проксі тепер надсилає заголовки авторизації; виправлено онлайн-статус у панелі; виправлено значення за замовчуванням в UI; i18n мітки MP4/FLV",
|
|
95
|
-
"zh-cn": "fix: FLV 代理现在发送授权标头;修正面板在线状态;修正管理界面默认值;MP4/FLV 标签 i18n"
|
|
96
96
|
}
|
|
97
97
|
},
|
|
98
98
|
"titleLang": {
|
|
99
|
-
"en": "Agent DVR",
|
|
100
|
-
"de": "Agent DVR",
|
|
101
|
-
"ru": "
|
|
102
|
-
"pt": "
|
|
103
|
-
"nl": "Agent DVR",
|
|
104
|
-
"fr": "Agent DVR",
|
|
105
|
-
"it": "DVR
|
|
106
|
-
"es": "DVR
|
|
107
|
-
"pl": "Agent DVR",
|
|
108
|
-
"uk": "
|
|
109
|
-
"zh-cn": "
|
|
99
|
+
"en": "Agent DVR – Cameras & Recordings",
|
|
100
|
+
"de": "Agent DVR – Kameras & Aufnahmen",
|
|
101
|
+
"ru": "Agent DVR – камеры и записи",
|
|
102
|
+
"pt": "Agent DVR – câmeras e gravações",
|
|
103
|
+
"nl": "Agent DVR – camera's & opnames",
|
|
104
|
+
"fr": "Agent DVR – caméras et enregistrements",
|
|
105
|
+
"it": "Agent DVR – telecamere e registrazioni",
|
|
106
|
+
"es": "Agent DVR – cámaras y grabaciones",
|
|
107
|
+
"pl": "Agent DVR – kamery i nagrania",
|
|
108
|
+
"uk": "Agent DVR – камери та записи",
|
|
109
|
+
"zh-cn": "Agent DVR – 摄像头与录像"
|
|
110
110
|
},
|
|
111
111
|
"desc": {
|
|
112
112
|
"en": "Connects ioBroker to AgentDVR: auto-discovers cameras, mirrors all device values as data points, delivers real-time triggers on new recordings, and generates a responsive HTML gallery with optional search and tag filtering.",
|
|
@@ -127,7 +127,15 @@
|
|
|
127
127
|
"keywords": [
|
|
128
128
|
"Agentdvr",
|
|
129
129
|
"ispy",
|
|
130
|
-
"ptz"
|
|
130
|
+
"ptz",
|
|
131
|
+
"camera",
|
|
132
|
+
"kamera",
|
|
133
|
+
"dvr",
|
|
134
|
+
"nvr",
|
|
135
|
+
"surveillance",
|
|
136
|
+
"video",
|
|
137
|
+
"recording",
|
|
138
|
+
"cctv"
|
|
131
139
|
],
|
|
132
140
|
"licenseInformation": {
|
|
133
141
|
"type": "free",
|
|
@@ -185,6 +193,7 @@
|
|
|
185
193
|
"enableUrls": true,
|
|
186
194
|
"enableSnapshotB64": false,
|
|
187
195
|
"enableEventDps": true,
|
|
196
|
+
"enableAlertPhotos": true,
|
|
188
197
|
"enableOverview": true,
|
|
189
198
|
"storeRawJson": false,
|
|
190
199
|
"enableWidget": true,
|
|
@@ -193,6 +202,8 @@
|
|
|
193
202
|
"widgetMinCol": 150,
|
|
194
203
|
"widgetShowTags": true,
|
|
195
204
|
"widgetLiveAspect": "",
|
|
205
|
+
"widgetLiveMode": "nojs",
|
|
206
|
+
"widgetLiveRefreshSec": 0,
|
|
196
207
|
"widgetTagPosition": "bottom-left",
|
|
197
208
|
"widgetMaxModalWidth": 900,
|
|
198
209
|
"widgetPlayerUrl": "",
|
|
@@ -238,6 +249,27 @@
|
|
|
238
249
|
},
|
|
239
250
|
"objects": [],
|
|
240
251
|
"instanceObjects": [
|
|
252
|
+
{
|
|
253
|
+
"_id": "",
|
|
254
|
+
"type": "meta",
|
|
255
|
+
"common": {
|
|
256
|
+
"name": {
|
|
257
|
+
"en": "Alert photos",
|
|
258
|
+
"de": "Alarmfotos",
|
|
259
|
+
"ru": "Фото тревоги",
|
|
260
|
+
"pt": "Fotos de alarme",
|
|
261
|
+
"nl": "Alarmfoto's",
|
|
262
|
+
"fr": "Photos d'alerte",
|
|
263
|
+
"it": "Foto di allarme",
|
|
264
|
+
"es": "Fotos de alarma",
|
|
265
|
+
"pl": "Zdjęcia alarmowe",
|
|
266
|
+
"uk": "Фото тривоги",
|
|
267
|
+
"zh-cn": "报警照片"
|
|
268
|
+
},
|
|
269
|
+
"type": "meta.user"
|
|
270
|
+
},
|
|
271
|
+
"native": {}
|
|
272
|
+
},
|
|
241
273
|
{
|
|
242
274
|
"_id": "info",
|
|
243
275
|
"type": "channel",
|
package/lib/web.js
CHANGED
|
@@ -430,7 +430,14 @@ class AgentDvrWeb {
|
|
|
430
430
|
|
|
431
431
|
// ── Webhook — triggers a full adapter poll ────────────────────────────
|
|
432
432
|
app.get('/' + ROUTE + '/webhook', (req, res) => {
|
|
433
|
-
|
|
433
|
+
const query = req.query || {};
|
|
434
|
+
adapter.log.debug('[agent-dvr] webhook: ' + JSON.stringify(query));
|
|
435
|
+
// with ?oid={ID} the adapter pulses <cam>.events.webhook immediately and then polls,
|
|
436
|
+
// without it only a full poll is triggered
|
|
437
|
+
const target = query.oid
|
|
438
|
+
? adapter.setForeignStateAsync(ns + '.system.webhook', { val: JSON.stringify(Object.assign({}, query, { ts: Date.now() })), ack: false })
|
|
439
|
+
: adapter.setForeignStateAsync(ns + '.system.control.refresh', { val: true, ack: false });
|
|
440
|
+
target
|
|
434
441
|
.then(() => res.json({ ok: true }))
|
|
435
442
|
.catch(err => res.status(500).json({ error: err.message }));
|
|
436
443
|
});
|
|
@@ -571,6 +578,19 @@ class AgentDvrWeb {
|
|
|
571
578
|
req.on('close', () => { try { upReq.destroy(); } catch (_) {} });
|
|
572
579
|
});
|
|
573
580
|
|
|
581
|
+
// ── Alert photos from the ioBroker file storage (grab1..3 per camera) ──
|
|
582
|
+
app.get('/' + ROUTE + '/photos/:fid/:name', (req, res) => {
|
|
583
|
+
const { fid, name } = req.params;
|
|
584
|
+
if (!/^[\w-]+$/.test(fid) || !/^grab[1-3]\.jpg$/.test(name)) { res.status(404).end('Not found'); return; }
|
|
585
|
+
adapter.readFileAsync(ns, fid + '/' + name)
|
|
586
|
+
.then(r => {
|
|
587
|
+
res.setHeader('Content-Type', 'image/jpeg');
|
|
588
|
+
res.setHeader('Cache-Control', 'no-store');
|
|
589
|
+
res.end(r.file);
|
|
590
|
+
})
|
|
591
|
+
.catch(() => res.status(404).end('Not found'));
|
|
592
|
+
});
|
|
593
|
+
|
|
574
594
|
// ── Static file handler ───────────────────────────────────────────────
|
|
575
595
|
app.use('/' + ROUTE, (req, res) => {
|
|
576
596
|
let rel = (req.url || '/').split('?')[0];
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "iobroker.agent-dvr",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.6.0",
|
|
4
4
|
"description": "Connects ioBroker to AgentDVR: auto-discovers cameras, mirrors all device values as data points, delivers real-time triggers on new recordings, and generates a responsive HTML gallery with optional search and tag filtering.",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "ipod86",
|
|
@@ -13,7 +13,15 @@
|
|
|
13
13
|
"ioBroker",
|
|
14
14
|
"Agentdvr",
|
|
15
15
|
"ispy",
|
|
16
|
-
"ptz"
|
|
16
|
+
"ptz",
|
|
17
|
+
"camera",
|
|
18
|
+
"kamera",
|
|
19
|
+
"dvr",
|
|
20
|
+
"nvr",
|
|
21
|
+
"surveillance",
|
|
22
|
+
"video",
|
|
23
|
+
"recording",
|
|
24
|
+
"cctv"
|
|
17
25
|
],
|
|
18
26
|
"repository": {
|
|
19
27
|
"type": "git",
|