Skip to content

Commit

Permalink
no message
Browse files Browse the repository at this point in the history
  • Loading branch information
Nall-chan committed Dec 8, 2023
1 parent d970686 commit f7dc143
Show file tree
Hide file tree
Showing 9 changed files with 13 additions and 2 deletions.
1 change: 1 addition & 0 deletions ONVIF Configurator/locale.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
"VideoSource": "Video-Quelle",
"Location": "Lokation",
"Error on read of capabilities.": "Fehler beim Lesen der Funktionen.",
"Device has no xAddr for this service.": "Gerät hat keine xAddr für diesen Dienst.",
"Instance has no active parent.": "Instanz hat kein aktives übergeordnetes Element.",
"Unknown error.": "Unbekannter Fehler.",
"No valid answer.": "Keine gültige Antwort.",
Expand Down
1 change: 1 addition & 0 deletions ONVIF Digital Input/locale.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
"Event not valid": "Ereignis ist nicht gültig",
"Digital input: ": "Digitaler Eingang: ",
"IdleState: ": "Ruhelage: ",
"Device has no xAddr for this service.": "Gerät hat keine xAddr für diesen Dienst.",
"Instance has no active parent.": "Instanz hat kein aktives übergeordnetes Element.",
"Unknown error.": "Unbekannter Fehler.",
"No valid answer.": "Keine gültige Antwort.",
Expand Down
1 change: 1 addition & 0 deletions ONVIF Digital Output/locale.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
"Mode: ": "Modus: ",
"DelayTime: ": "Verzögerung: ",
"IdleState: ": "Ruhelage: ",
"Device has no xAddr for this service.": "Gerät hat keine xAddr für diesen Dienst.",
"Instance has no active parent.": "Instanz hat kein aktives übergeordnetes Element.",
"Unknown error.": "Unbekannter Fehler.",
"No valid answer.": "Keine gültige Antwort.",
Expand Down
1 change: 1 addition & 0 deletions ONVIF Events/locale.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
"Event(s)": "Ereignis-Pfad",
"Configuration is valid": "Konfiguration ist gültig",
"Event missing": "Ereignis fehlt",
"Device has no xAddr for this service.": "Gerät hat keine xAddr für diesen Dienst.",
"Instance has no active parent.": "Instanz hat kein aktives übergeordnetes Element.",
"Unknown error.": "Unbekannter Fehler.",
"No valid answer.": "Keine gültige Antwort.",
Expand Down
2 changes: 1 addition & 1 deletion ONVIF IO/module.php
Original file line number Diff line number Diff line change
Expand Up @@ -1498,7 +1498,7 @@ protected function GetCapabilities(): bool
\ONVIF\NS::Management => '/onvif/device_service',
\ONVIF\NS::Event => '',
\ONVIF\NS::Media => '/onvif/media_service',
\ONVIF\NS::PTZ => '',
\ONVIF\NS::PTZ => '/onvif/ptz_service',
\ONVIF\NS::Imaging => '',
\ONVIF\NS::Analytics => '',
\ONVIF\NS::DeviceIO => '',
Expand Down
1 change: 1 addition & 0 deletions ONVIF Image Grabber/locale.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
"Configuration is invalid": "Konfiguration ist ungültig",
"Snapshot URL could not be determined": "Snapshot URL konnte nicht bestimmt werden",
"Error on read capabilities.": "Fehler beim Lesen der Fähigkeiten.",
"Device has no xAddr for this service.": "Gerät hat keine xAddr für diesen Dienst.",
"Instance has no active parent.": "Instanz hat kein aktives übergeordnetes Element.",
"Unknown error.": "Unbekannter Fehler.",
"No valid answer.": "Keine gültige Antwort.",
Expand Down
1 change: 1 addition & 0 deletions ONVIF Media Stream/locale.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
"Configuration is invalid": "Konfiguration ist ungültig",
"Stream could not be determined": "Stream konnte nicht bestimmt werden",
"Error on read capabilities.": "Fehler beim Lesen der Fähigkeiten.",
"Device has no xAddr for this service.": "Gerät hat keine xAddr für diesen Dienst.",
"Instance has no active parent.": "Instanz hat kein aktives übergeordnetes Element.",
"Unknown error.": "Unbekannter Fehler.",
"No valid answer.": "Keine gültige Antwort.",
Expand Down
2 changes: 1 addition & 1 deletion ONVIF Media Stream/module.php
Original file line number Diff line number Diff line change
Expand Up @@ -882,7 +882,7 @@ public function RequestAction($Ident, $Value)
}
switch ($Ident) {
case 'PRESET':
if ($this->GotoPreset($Value)) {
if ($this->GotoPreset((int) $Value)) {
$this->SetValue('PRESET', $Value);
return true;
}
Expand Down
5 changes: 5 additions & 0 deletions libs/ONVIFModuleBase.php
Original file line number Diff line number Diff line change
Expand Up @@ -260,6 +260,11 @@ protected function SendData(string $URI, string $Function, bool $UseLogin = fals
if (!$this->HasActiveParent()) {
return false;
}
if ($URI === '') {
set_error_handler([$this, 'ModulErrorHandler']);
trigger_error($this->Translate('Device has no xAddr for this service.'), E_USER_NOTICE);
restore_error_handler();
}
$this->SendDebug('Send WSDL', $wsdl, 0);
$this->SendDebug('Send Function', $Function, 0);
$this->SendDebug('Send Params', $Params, 0);
Expand Down

0 comments on commit f7dc143

Please sign in to comment.