mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-04-28 05:01:57 +00:00
73_DoorBird: Bugfix - Event Video Routine
git-svn-id: https://svn.fhem.de/fhem/trunk@24242 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
dccd877fb0
commit
91dff41c48
@ -2965,11 +2965,19 @@ sub DoorBird_LastEvent_Image($$$) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
### If the attribute VideoDurationDoorbell has been set and therefore an video shall be recorded
|
### If the attribute VideoDuration has been set and therefore an video shall be recorded
|
||||||
if ($hash->{helper}{VideoDurationDoorbell} > 0){
|
if (($event =~ m/doorbell/ ) && ($hash->{helper}{VideoDurationDoorbell} > 0)){
|
||||||
### Call sub for Videorecording
|
### Call sub for Videorecording
|
||||||
DoorBird_Video_Request($hash, $hash->{helper}{VideoDurationDoorbell}, $VideoEvent, $httpHeader);
|
DoorBird_Video_Request($hash, $hash->{helper}{VideoDurationDoorbell}, $VideoEvent, $httpHeader);
|
||||||
}
|
}
|
||||||
|
elsif (($event =~ m/motion/ ) && ($hash->{helper}{VideoDurationMotion} > 0)){
|
||||||
|
### Call sub for Videorecording
|
||||||
|
DoorBird_Video_Request($hash, $hash->{helper}{VideoDurationMotion}, $VideoEvent, $httpHeader);
|
||||||
|
}
|
||||||
|
elsif (($event =~ m/keypad/ ) && ($hash->{helper}{VideoDurationKeypad} > 0)){
|
||||||
|
### Call sub for Videorecording
|
||||||
|
DoorBird_Video_Request($hash, $hash->{helper}{VideoDurationKeypad}, $VideoEvent, $httpHeader);
|
||||||
|
}
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
####END####### Define Subfunction for LAST EVENT IMAGE REQUEST #################################################END#####
|
####END####### Define Subfunction for LAST EVENT IMAGE REQUEST #################################################END#####
|
||||||
|
Loading…
x
Reference in New Issue
Block a user