diff --git a/fhem/CHANGED b/fhem/CHANGED index 8782de870..a2543c891 100644 --- a/fhem/CHANGED +++ b/fhem/CHANGED @@ -1,5 +1,7 @@ # 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. + - feature 49_SSCAM: Reading "CamLastRec" added which contains Path/name + of last recording - feature: FB_CALLLIST: new attribute "expire-calls-after" to automatically delete call entries after a certain time frame. See commandref for details and syntax. diff --git a/fhem/FHEM/49_SSCam.pm b/fhem/FHEM/49_SSCam.pm index 7cddd9054..5ded065d5 100644 --- a/fhem/FHEM/49_SSCam.pm +++ b/fhem/FHEM/49_SSCam.pm @@ -27,6 +27,8 @@ ########################################################################################################## # Versions History: # +# 1.19.2 06.03.2016 Reading "CamLastRec" added which contains Path/name +# of last recording # 1.19.1 28.02.2016 enhanced command runView by option "link_open" to # open a streamlink immediately # 1.19 25.02.2016 functions for cam-livestream added @@ -3033,10 +3035,12 @@ sub camret_nonbl ($) { elsif ($OpMode eq "geteventlist") { my $eventnum = $data->{'data'}{'total'}; + my $lastrecord = $data->{'data'}{'events'}[0]{name}; # Setreading readingsBeginUpdate($hash); readingsBulkUpdate($hash,"CamEventNum",$eventnum); + readingsBulkUpdate($hash,"CamLastRec",$lastrecord); readingsBulkUpdate($hash,"Errorcode","none"); readingsBulkUpdate($hash,"Error","none"); readingsEndUpdate($hash, 1); @@ -3995,7 +3999,8 @@ return; With command "get <name> caminfoall" dependend of the type of Camera (e.g. Fix- or PTZ-Camera) the available properties will be retrieved and provided as Readings.
For example the Reading "Availability" will be set to "disconnected" if the Camera would be disconnected from Synology Surveillance Station and can be used for further processing like creating events.
- By command "get <name> eventlist" the Reading "CamEventNum" will be refreshed which containes the total number of in SVS registered camera events. + By command "get <name> eventlist" the Reading "CamEventNum" and "CamLastRecord" will be refreshed which containes the total number of in SVS + registered camera events and the path / name of the last recording.. This command will be implicit executed when "get ... caminfoall" is running.
Using "get <name> snapfileinfo" the filename of the last snapshot will be retrieved. This command will be executed with "get <name> snap" automatically.
The command "get <name> svsinfo" is not really dependend on a camera, but rather a command to determine common informations about the installed SVS-version and other properties.
@@ -4071,6 +4076,7 @@ return;
  • CamExposureControl
  • - indicating type of exposure control
  • CamExposureMode
  • - current exposure mode (Day, Night, Auto, Schedule, Unknown)
  • CamIP
  • - IP-Address of Camera +
  • CamLastRec
  • - Path / name of the last recording
  • CamLiveMode
  • - Source of Live-View (DS, Camera)
  • CamModel
  • - Model of camera
  • CamMotDetSc
  • - state of motion detection source (disabled, by camera, by SVS) @@ -4570,7 +4576,8 @@ return; Mit dem Befehl "get <name> caminfoall" werden abhängig von der Art der Kamera (z.B. Fix- oder PTZ-Kamera) die verfügbaren Eigenschaften ermittelt und als Readings zur Verfügung gestellt.
    So wird zum Beispiel das Reading "Availability" auf "disconnected" gesetzt falls die Kamera von der Surveillance Station getrennt wird und kann für weitere Verarbeitungen genutzt werden.
    - Durch "get <name> eventlist" wird das Reading "CamEventNum" aktualisiert, welches die Gesamtanzahl der registrierten Kameraevents enthält. + Durch "get <name> eventlist" wird das Reading "CamEventNum" und "CamLastRec" aktualisiert, welches die Gesamtanzahl der + registrierten Kameraevents und den Pfad / Namen der letzten Aufnahme enthält. Dieser Befehl wird implizit mit "get ... caminfoall" ausgeführt.
    Mit "get <name> snapfileinfo" wird der Filename des letzten Schnapschusses ermittelt. Der Befehl wird implizit mit "get <name> snap" ausgeführt.
    @@ -4649,6 +4656,7 @@ return;
  • CamExposureControl
  • - zeigt den aktuell eingestellten Typ der Belichtungssteuerung
  • CamExposureMode
  • - aktueller Belichtungsmodus (Day, Night, Auto, Schedule, Unknown)
  • CamIP
  • - IP-Adresse der Kamera +
  • CamLastRec
  • - Pfad / Name der letzten Aufnahme
  • CamLiveMode
  • - Quelle für Live-Ansicht (DS, Camera)
  • CamModel
  • - Kameramodell
  • CamMotDetSc
  • - Status der Bewegungserkennung (disabled, durch Kamera, durch SVS)