From 811cc258e81291949c629d42314efe1b5d3cd3e0 Mon Sep 17 00:00:00 2001 From: delmar <> Date: Fri, 12 Mar 2021 18:14:12 +0000 Subject: [PATCH] 49_IPCAM: not sending events for sequential snapshots fixed git-svn-id: https://svn.fhem.de/fhem/trunk@23935 2b470e98-0d58-463d-a4d8-8e2adae1ed80 --- fhem/CHANGED | 1 + fhem/FHEM/49_IPCAM.pm | 3 +-- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/fhem/CHANGED b/fhem/CHANGED index 59a9c7b78..9c2b210a6 100644 --- a/fhem/CHANGED +++ b/fhem/CHANGED @@ -1,5 +1,6 @@ # Add changes at the top of the list. Keep it in ASCII, and 80-char wide. # Do not insert empty lines here, update check depends on it. + - bugfix: 49_IPCAM: not sending events for sequential snapshots fixed - new: SYSSTAT: umstellung auf non-blocking frei konfigurierbare zusatz readings mehr siehe: https://forum.fhem.de/index.php?topic=42771 diff --git a/fhem/FHEM/49_IPCAM.pm b/fhem/FHEM/49_IPCAM.pm index 5351feb80..2f35ea3ee 100644 --- a/fhem/FHEM/49_IPCAM.pm +++ b/fhem/FHEM/49_IPCAM.pm @@ -566,8 +566,7 @@ sub RequestSnapshot_Callback { Log3 $name, 4, "IPCAM ($name) - snapshot $storage/$imageFile written."; readingsBulkUpdate($hash, "last", $lastSnapshot, 1); $hash->{STATE} = "last: $dateTime"; - $hash->{READINGS}{"snapshot$seqF"}{TIME} = $dateTime; - $hash->{READINGS}{"snapshot$seqF"}{VAL} = $imageFile; + readingsBulkUpdate($hash, "snapshot$seqF", $imageFile, 1); Log3 $name, 4, "IPCAM ($name) - image: $imageFile"; }