Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 8 additions & 7 deletions core/class/frigate.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -510,7 +510,7 @@ private function buildActions(): string
return $html;
}

private function buildIaToggleRow(string $startLogical, string $stopLogical, string $infoLogical, string $label): string
private function buildIaToggleRow(string $startLogical, string $stopLogical, string $infoLogical, string $label, string $title = ''): string
{
$on = $this->getCmd('action', $startLogical);
$off = $this->getCmd('action', $stopLogical);
Expand All @@ -523,18 +523,19 @@ private function buildIaToggleRow(string $startLogical, string $stopLogical, str
$cmdId = $isActive ? $off->getId() : $on->getId();

return '<div class="ia-toggle-row">'
. '<span class="ia-toggle-label">' . $label . '</span>'
. '<span class="ia-toggle-label" title="' . $title . '">' . $label . '</span>'
. '<i class="' . ($isActive ? 'fas fa-toggle-on' : 'fas fa-toggle-off') . ' ia-toggle-icon" onclick="execAction(' . $cmdId . ')"></i>'
. '</div>';
}

private function buildIaActions(): string
{
return $this->buildIaToggleRow('action_start_review_alerts', 'action_stop_review_alerts', 'info_review_alerts', '{{Review alerts}}')
. $this->buildIaToggleRow('action_start_review_detections', 'action_stop_review_detections', 'info_review_detections', '{{Review detections}}')
. $this->buildIaToggleRow('action_start_review_descriptions', 'action_stop_review_descriptions', 'info_review_descriptions', '{{Review descriptions}}')
. $this->buildIaToggleRow('action_start_object_descriptions', 'action_stop_object_descriptions', 'info_object_descriptions', '{{Object descriptions}}')
. $this->buildIaToggleRow('action_start_enabled', 'action_stop_enabled', 'info_enabled', '{{Activations}}');
return
$this->buildIaToggleRow('action_start_enabled', 'action_stop_enabled', 'info_enabled', '{{Activer la caméra}}', '{{Désactive temporairement la caméra jusqu\'au redémarrage de Frigate. La désactivation interrompt complètement le traitement des flux de la caméra par Frigate. La détection, l\'enregistrement et le débogage deviennent alors indisponibles.}}')
. $this->buildIaToggleRow('action_start_review_alerts', 'action_stop_review_alerts', 'info_review_alerts', '{{Activités : alertes}}', '{{Active ou désactive temporairement les alertes pour cette caméra jusqu\'au redémarrage de Frigate. Lorsque cette option est désactivée, aucune activité nouvelle n\'est générée.}}')
. $this->buildIaToggleRow('action_start_review_detections', 'action_stop_review_detections', 'info_review_detections', '{{Activités : détections}}', '{{Active ou désactive temporairement les alertes et les détections pour cette caméra jusqu\'au redémarrage de Frigate. Lorsque cette option est désactivée, aucune activité nouvelle n\'est générée.}}')
. $this->buildIaToggleRow('action_start_review_descriptions', 'action_stop_review_descriptions', 'info_review_descriptions', '{{Descriptions des activités}}', '{{Activez ou désactivez temporairement les descriptions d\'activités par IA générative jusqu\'au redémarrage. Si désactivé, l\'IA ne sera plus sollicitée pour décrire les activités sur cette caméra.}}')
. $this->buildIaToggleRow('action_start_object_descriptions', 'action_stop_object_descriptions', 'info_object_descriptions', '{{Descriptions d\'objets}}', '{{Activez ou désactivez temporairement les descriptions par IA générative jusqu\'au redémarrage. Si désactivé, l\'IA ne sera plus sollicitée pour décrire les objets suivis sur cette caméra.}}');
}
private function buildDetectNow(): string
{
Expand Down
12 changes: 6 additions & 6 deletions core/template/dashboard/widgetCamera.html
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,7 @@
position: relative !important;
text-align: center;
background-color: rgb(var(--defaultBkg-color)) !important;
z-index: 98;
z-index: 100;
margin-top: 0px;
}

Expand Down Expand Up @@ -299,7 +299,7 @@
.frigate_widget .btn-ptz-stop {
position: absolute;
text-align: center;
z-index: 100;
z-index: 99;
}

.frigate_widget .btn-ptz-left {
Expand Down Expand Up @@ -357,7 +357,7 @@
.frigate_widget .btn-ptz-zoom-out {
position: absolute;
text-align: center;
z-index: 100;
z-index: 89;
width: 20px;
height: 20px;
background-color: rgba(0, 0, 0, 0.5);
Expand Down Expand Up @@ -501,11 +501,11 @@
position: absolute;
inset: 0;
background-color: rgb(var(--defaultBkg-color));
opacity: 0.9;
opacity: 0.95;
width: 435px !important;
height: 300px !important;
display: none;
z-index: 20;
z-index: 90;
border-radius: inherit;
}

Expand Down Expand Up @@ -560,7 +560,7 @@
justify-content: center;
gap: 12px;
background-color: rgb(var(--defaultBkg-color));
z-index: 5;
z-index: 80;
color: rgb(var(--defaultText-color));
}

Expand Down
16 changes: 8 additions & 8 deletions core/template/dashboard/widgetPanel.html
Original file line number Diff line number Diff line change
Expand Up @@ -108,8 +108,8 @@

function startImageFetchInterval() {
if (!intervalId) {
intervalId = setInterval(refreshImage, #refresh#);
console.log('Interval started for camera #id# with refresh rate: ' + #refresh# + ' ms');
intervalId = setInterval(refreshImage, #refresh#);
console.log('Interval started for camera #id# with refresh rate: ' + #refresh# + ' ms');
}
}

Expand Down Expand Up @@ -229,7 +229,7 @@
position: relative !important;
text-align: center;
background-color: rgb(var(--defaultBkg-color)) !important;
z-index: 98;
z-index: 100;
margin-top: 0px;
}

Expand Down Expand Up @@ -297,7 +297,7 @@
.frigate_widget .btn-ptz-stop {
position: absolute;
text-align: center;
z-index: 100;
z-index: 99;
}

.frigate_widget .btn-ptz-left {
Expand Down Expand Up @@ -355,7 +355,7 @@
.frigate_widget .btn-ptz-zoom-out {
position: absolute;
text-align: center;
z-index: 100;
z-index: 89;
width: 20px;
height: 20px;
background-color: rgba(0, 0, 0, 0.5);
Expand Down Expand Up @@ -499,11 +499,11 @@
position: absolute;
inset: 0;
background-color: rgb(var(--defaultBkg-color));
opacity: 0.9;
opacity: 0.95;
width: 435px !important;
height: 300px !important;
display: none;
z-index: 20;
z-index: 90;
border-radius: inherit;
}

Expand Down Expand Up @@ -558,7 +558,7 @@
justify-content: center;
gap: 12px;
background-color: rgb(var(--defaultBkg-color));
z-index: 5;
z-index: 80;
color: rgb(var(--defaultText-color));
}

Expand Down
2 changes: 1 addition & 1 deletion plugin_info/info.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"id": "frigate",
"name": "Frigate",
"pluginVersion": "1.5.24",
"pluginVersion": "1.5.25",
"installation": "Il est nécessaire d'avoir le plugin mqtt-manager installé avec un broker MQTT sécurisé (user / mdp) pour profiter de toutes les fonctionnalités. Dans le cas contraire, le plugin Frigate sera limité. Voir la documentation pour plus d'informations.",
"description": {
"fr_FR": "Plugin Frigate pour Jeedom. Ne fonctionne qu'avec les versions de Frigate > 0.13.0. Le plugin n'installe pas le serveur Frigate mais permet de le controler.",
Expand Down