2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-03-10 09:16:53 +00:00

49_IPCAM: fixed imageWithCallback using previous image

git-svn-id: https://svn.fhem.de/fhem/trunk@23917 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
delmar 2021-03-09 16:53:05 +00:00
parent 169e34d580
commit 1b11d4174a

View File

@ -369,10 +369,10 @@ Get($@) {
} elsif($arg eq "imageWithCallback") {
my $callbackCommand = join(" ", @a);
Log3 $name, 0, "IPCAM ($name) - imageWithCallback command: $callbackCommand";
Log3 $name, 3, "IPCAM ($name) - imageWithCallback command: $callbackCommand";
my $camUri = getSnapshot($hash, 1);
Log3 $name, 0, "IPCAM ($name) - imageWithCallback camUri: $camUri";
Log3 $name, 3, "IPCAM ($name) - imageWithCallback camUri: $camUri";
RequestSnapshotWithCallback($hash, $camUri, $callbackCommand);
@ -563,7 +563,7 @@ sub RequestSnapshot_Callback {
my $callbackCommand = $param->{callbackCommand};
if (defined $callbackCommand) {
Log3 $name, 0, "IPCAM ($name) - RequestSnapshotWithCallback executing $callbackCommand";
Log3 $name, 3, "IPCAM ($name) - RequestSnapshotWithCallback executing $callbackCommand";
my $error = AnalyzeCommand(undef, $callbackCommand);
if (defined $error) {