diff --git a/contrib/DS_Starter/49_SSCam.pm b/contrib/DS_Starter/49_SSCam.pm
index fce72e7f1..7938ed2cf 100644
--- a/contrib/DS_Starter/49_SSCam.pm
+++ b/contrib/DS_Starter/49_SSCam.pm
@@ -48,6 +48,7 @@ use Encode;
# Versions History intern
our %SSCam_vNotesIntern = (
"8.5.0" => "20.01.2019 SVS device set snapAllCams ",
+ "8.4.5" => "15.01.2019 fix event generation after request snapshots ",
"8.4.4" => "14.01.2019 change: generate event of every snapfile,id etc. if snap was called with arguments, Forum:#45671 #msg887484 ",
"8.4.3" => "11.01.2019 fix blocking Active-Token if snap was done with arguments and snapEmailTxt not set, Forum:#45671 #msg885475 ",
"8.4.2" => "10.01.2019 snapEmailTxt can use placeholders \$DATE, \$TIME ",
@@ -214,42 +215,6 @@ our %SSCam_vNotesExtern = (
"1.0.0" => "12.12.2015 initial, changed completly to HttpUtils_NonblockingGet "
);
-# Hint Hash en
-our %SSCam_vHintsExt_en = (
- "6" => "There are some Icons in directory www/images/sscam available for SSCam. Thereby the system can use the icons please do:
".
- "- in FHEMWEB device attribute iconPath complete with \"sscam\", e.g.: attr WEB iconPath default:fhemSVG:openautomation:sscam
".
- "After that execute \"rereadicons\" or restart FHEM. ",
- "5" => "Find more Informations about manage users and the appropriate privilege profiles in ".
- "Surveillance Station online help ",
- "4" => "The message Meldung \"WARNING - The current/simulated SVS-version ... may be incompatible with SSCam version...\" means that ".
- "the used SSCam version was currently not tested with the installed version of Synology Surveillance Station (Reading \"SVSversion\"). ".
- "The compatible SVS-Version is printed out in the Internal COMPATIBILITY.\n".
- "Actions: At first please update your SSCam version. If the message does appear furthermore, please inform the SSCam Maintainer. ".
- "To ignore this message temporary, you may reduce the verbose level of your SSCam device. ",
- "3" => "Link to SSCam english commandRef ",
- "2" => "You can create own PTZ-control icons with a template available in SVN which can be downloaded here: contrib/sscam/black_btn_CAM_Template.pdn.\n".
- "This template can be edited with Paint.Net for example. ",
- "1" => "Some helpful FHEM-Wiki notes"
-);
-
-# Hint Hash de
-our %SSCam_vHintsExt_de = (
- "6" => "Für SSCam wird ein Satz Icons im Verzeichnis www/images/sscam zur Verfügung gestellt. Damit das System sie findet bitte setzen:
".
- "- im FHEMWEB Device Attribut iconPath um \"sscam\" ergänzen, z.B.: attr WEB iconPath default:fhemSVG:openautomation:sscam
".
- "Danach ein \"rereadicons\" bzw. einen FHEM restart ausführen. ",
- "5" => "Informationen zum Management von Usern und entsprechenden Rechte-Profilen sind in der ".
- "Surveillance Station Online-Hilfe zu finden.",
- "4" => "Die Meldung \"WARNING - The current/simulated SVS-version ... may be incompatible with SSCam version...\" ist ein Hinweis darauf, dass ".
- "die eingesetzte SSCam Version noch nicht mit der verwendeten Version von Synology Surveillance Station (Reading \"SVSversion\") getestet ".
- "wurde. Die kompatible SVS-Version ist im Internal COMPATIBILITY ersichtlich.\n".
- "Maßnahmen: Bitte SSCam zunächst updaten. Sollte die Meldung weiterhin auftreten, bitte den SSCam Maintainer informieren. Zur ".
- "vorübergehenden Ignorierung kann der verbose Level des SSCam-Devices entsprechend reduziert werden. ",
- "3" => "Link zur deutschen SSCam commandRef ",
- "2" => "Zur Erstellung eigener PTZ-Steuericons gibt es eine Vorlage im SVN die hier contrib/sscam/black_btn_CAM_Template.pdn heruntergeladen werden kann.\n".
- "Diese Vorlage kann zum Beispiel mit Paint.Net bearbeitet werden. ",
- "1" => "Hilfreiche Hinweise zu SSCam im FHEM-Wiki"
-);
-
# getestete SVS-Version
my $compstat = "8.2";
@@ -333,7 +298,7 @@ our %SSCam_ttips_de = (
ttlsnaprun => "Wiedergabe des letzten Schnappschusses von Kamera "§NAME§".",
);
-# Standardvariablen
+# Standardvariablen und Forward-Deklaration
my $SSCam_slim = 3; # default Anzahl der abzurufenden Schnappschüsse mit snapGallery
my $SSCAM_snum = "1,2,3,4,5,6,7,8,9,10"; # mögliche Anzahl der abzurufenden Schnappschüsse mit snapGallery
@@ -343,6 +308,8 @@ use vars qw($FW_room); # currently selected room
use vars qw($FW_detail); # currently selected device for detail view
use vars qw($FW_wname); # Web instance
sub FW_pH(@); # add href
+our %SSCam_vHintsExt_en;
+our %SSCam_vHintsExt_de;
################################################################
sub SSCam_Initialize($) {
@@ -6316,7 +6283,7 @@ return($m);
}
###############################################################################
-# JSON Boolean Test und Mapping
+# JSON Boolean Test und Mapping
###############################################################################
sub SSCam_jboolmap($){
my ($bool)= @_;
@@ -6329,7 +6296,7 @@ return $bool;
}
###############################################################################
-# Schnappschußgalerie abrufen (snapGalleryBoost) o. nur Info des letzten Snaps
+# Ermittlung Anzahl und Größe der abzurufenden Schnappschußdaten
###############################################################################
sub SSCam_snaplimsize ($) {
my ($hash)= @_;
@@ -6348,12 +6315,14 @@ sub SSCam_snaplimsize ($) {
if($hash->{HELPER}{CANSENDSNAP}) {
# Versand Schnappschuß darf erfolgen falls gewünscht
- $hash->{HELPER}{GETSNAPGALLERY} = 1; # Steuerbit für Snap-Galerie
$ssize = 2; # Full Size für EMail-Versand
}
- $slim = delete $hash->{HELPER}{SNAPNUM} if($hash->{HELPER}{SNAPNUM}); # enthält die Anzahl der ausgelösten Schnappschüsse
-
+ if($hash->{HELPER}{SNAPNUM}) {
+ $slim = delete $hash->{HELPER}{SNAPNUM}; # enthält die Anzahl der ausgelösten Schnappschüsse
+ $hash->{HELPER}{GETSNAPGALLERY} = 1; # Steuerbit für Snap-Galerie bzw. Daten mehrerer Schnappschüsse abrufen
+ }
+
return ($slim,$ssize);
}
@@ -7824,6 +7793,92 @@ sub SSCam_trim ($) {
return ($str);
}
+#############################################################################################
+# Hint Hash EN
+#############################################################################################
+%SSCam_vHintsExt_en = (
+ "6" => "There are some Icons in directory www/images/sscam available for SSCam. Thereby the system can use the icons please do:
".
+ "- in FHEMWEB device attribute iconPath complete with \"sscam\", e.g.: attr WEB iconPath default:fhemSVG:openautomation:sscam
".
+ "After that execute \"rereadicons\" or restart FHEM. ".
+ "
",
+ "5" => "Find more Informations about manage users and the appropriate privilege profiles in ".
+ "Surveillance Station online help ".
+ "
",
+ "4" => "The message Meldung \"WARNING - The current/simulated SVS-version ... may be incompatible with SSCam version...\" means that ".
+ "the used SSCam version was currently not tested with the installed version of Synology Surveillance Station (Reading \"SVSversion\"). ".
+ "The compatible SVS-Version is printed out in the Internal COMPATIBILITY.\n".
+ "Actions: At first please update your SSCam version. If the message does appear furthermore, please inform the SSCam Maintainer. ".
+ "To ignore this message temporary, you may reduce the verbose level of your SSCam device. ".
+ "
",
+ "3" => "Link to SSCam english commandRef ".
+ "
",
+ "2" => "You can create own PTZ-control icons with a template available in SVN which can be downloaded here: contrib/sscam/black_btn_CAM_Template.pdn.\n".
+ "This template can be edited with Paint.Net for example. ".
+ "
",
+ "1" => "Some helpful FHEM-Wiki notes".
+ "
",
+);
+
+#############################################################################################
+# Hint Hash DE
+#############################################################################################
+%SSCam_vHintsExt_de = (
+ "7" => "Einstellung Email-Versand
".
+ "=========================
".
+ "Schnappschüsse können nach der Erstellung per Email gemeinsam versendet werden. Dazu enthält das Modul einen
".
+ "eigenen Email-Client.
".
+ "Zur Verwendung dieser Funktion muss das Perl-Modul MIME::Lite installiert sein. Auf Debian-Systemen kann ".
+ "es mit".
+ "
snapEmailTxt | - Aktiviert den Email-Versand. Die Eingabe hat die Form: - subject => <Betreff-Text>, body => <Mitteilung-Text> - Es können die Platzhalter $CAM, $DATE und $TIME verwendet werden. $CAM wird - durch den Device-Alias bzw. den Namen der Kamera in der SVS - ersetzt falls der Device-Alias nicht gesetzt ist. - $DATE und $TIME werden durch das aktuelle Datum und Zeit ersetzt. |
smtpHost | - Hostname oder IP-Adresse des Postausgangsservers (z.B. securesmtp.t-online.de) |
smtpFrom | - Absenderadresse (<name>@<domain>) |
smtpTo | - Empfängeradresse(n) (<name>@<domain>) |
smtpPort | - (optional) Port des Postausgangsservers (default: 25) |
smtpCc | - (optional) Carbon-Copy Empfängeradresse(n) (<name>@<domain>) |
smtpNoUseSSL | - (optional) "1" wenn kein SSL beim Email-Versand verwendet werden soll (default: 0) |
smtpSSLPort | - (optional) SSL-Port des Postausgangsservers (default: 465) |
smtpDebug | - (optional) zum Debugging der SMTP-Verbindung setzen |
snapEmailTxt | - Aktiviert den Email-Versand. Die Eingabe hat die Form: - subject => <Betreff-Text>, body => <Mitteilung-Text> - Es können die Platzhalter $CAM, $DATE und $TIME verwendet werden. $CAM wird - durch den Device-Alias bzw. den Device-Namen des SVS-Devices ersetzt. - $DATE und $TIME werden durch das aktuelle Datum und Zeit ersetzt. |
smtpHost | - Hostname oder IP-Adresse des Postausgangsservers (z.B. securesmtp.t-online.de) |
smtpFrom | - Absenderadresse (<name>@<domain>) |
smtpTo | - Empfängeradresse(n) (<name>@<domain>) |
smtpPort | - (optional) Port des Postausgangsservers (default: 25) |
smtpCc | - (optional) Carbon-Copy Empfängeradresse(n) (<name>@<domain>) |
smtpNoUseSSL | - (optional) "1" wenn kein SSL beim Email-Versand verwendet werden soll (default: 0) |
smtpSSLPort | - (optional) SSL-Port des Postausgangsservers (default: 465) |
smtpDebug | - (optional) zum Debugging der SMTP-Verbindung setzen |
snapEmailTxt | - Aktiviert den Email-Versand. Das Attribut hat das Format: +
subject => <Betreff-Text>, body => <Mitteilung-Text> + |
smtpHost | - Hostname oder IP-Adresse des Postausgangsservers (z.B. securesmtp.t-online.de) |
smtpFrom | - Absenderadresse (<name>@<domain>) |
smtpTo | - Empfängeradresse(n) (<name>@<domain>) |
smtpPort | - (optional) Port des Postausgangsservers (default: 25) |
smtpCc | - (optional) Carbon-Copy Empfängeradresse(n) (<name>@<domain>) |
smtpNoUseSSL | - (optional) "1" wenn kein SSL beim Email-Versand verwendet werden soll (default: 0) |
smtpSSLPort | - (optional) SSL-Port des Postausgangsservers (default: 465) |
smtpDebug | - (optional) zum Debugging der SMTP-Verbindung setzen |