mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-04-23 02:31:53 +00:00
49_IPCAM: added 'get imageWithCallback'
git-svn-id: https://svn.fhem.de/fhem/trunk@23914 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
d0b0d18091
commit
a201ff0a42
@ -369,7 +369,7 @@ Get($@) {
|
||||
} elsif($arg eq "imageWithCallback") {
|
||||
|
||||
my $callbackCommand = join(" ", @a);
|
||||
Log3 $name, 0, "IPCAM ($name) - imageWithCallback command: $callbackCommand";
|
||||
Log3 $name, 5, "IPCAM ($name) - imageWithCallback command: $callbackCommand";
|
||||
my $error = AnalyzeCommand(undef, $callbackCommand);
|
||||
if (defined $error) {
|
||||
Log3 $name, 0, "IPCAM ($name) - imageWithCallback command invalid: $error";
|
||||
@ -377,7 +377,7 @@ Get($@) {
|
||||
}
|
||||
|
||||
my $camUri = getSnapshot($hash, 1);
|
||||
Log3 $name, 0, "IPCAM ($name) - imageWithCallback camUri: $camUri";
|
||||
Log3 $name, 5, "IPCAM ($name) - imageWithCallback camUri: $camUri";
|
||||
|
||||
RequestSnapshotWithCallback($hash, $camUri, $callbackCommand);
|
||||
|
||||
@ -568,7 +568,7 @@ sub RequestSnapshot_Callback {
|
||||
|
||||
my $callbackCommand = $param->{callbackCommand};
|
||||
if (defined $callbackCommand) {
|
||||
Log3 $name, 0, "IPCAM ($name) - RequestSnapshotWithCallback would execute $callbackCommand";
|
||||
Log3 $name, 5, "IPCAM ($name) - RequestSnapshotWithCallback executes $callbackCommand";
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user