mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-03-10 09:16:53 +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 ($hash->{helper}{VideoDurationDoorbell} > 0){
|
||||
### If the attribute VideoDuration has been set and therefore an video shall be recorded
|
||||
if (($event =~ m/doorbell/ ) && ($hash->{helper}{VideoDurationDoorbell} > 0)){
|
||||
### Call sub for Videorecording
|
||||
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;
|
||||
}
|
||||
####END####### Define Subfunction for LAST EVENT IMAGE REQUEST #################################################END#####
|
||||
|
Loading…
x
Reference in New Issue
Block a user