From c081ec49e08ece7e7669b1adcd8439b828aae463 Mon Sep 17 00:00:00 2001 From: nasseeder1 Date: Sat, 2 Feb 2019 12:41:28 +0000 Subject: [PATCH] 49_SSCam: contrib 8.8.0 git-svn-id: https://svn.fhem.de/fhem/trunk@18484 2b470e98-0d58-463d-a4d8-8e2adae1ed80 --- fhem/contrib/DS_Starter/49_SSCam.pm | 150 +++++++++++++++++++++------- 1 file changed, 113 insertions(+), 37 deletions(-) diff --git a/fhem/contrib/DS_Starter/49_SSCam.pm b/fhem/contrib/DS_Starter/49_SSCam.pm index a9a3ba9bb..c46190153 100644 --- a/fhem/contrib/DS_Starter/49_SSCam.pm +++ b/fhem/contrib/DS_Starter/49_SSCam.pm @@ -9068,6 +9068,7 @@ attr <name> genericStrmHtmlTag <video $HTMLATTR controls autoplay> (for further information execute "get <name> versionNotes 7")
Alternatively you can activate the Email-shipping one-time when you specify the "recEmailTxt:"-tag in the "on"-command. In this case the tag-text is used for creating the Email instead the text specified in "recEmailTxt"-attribute. + (the tag syntax is identical to the "recEmailTxt" attribute)

Examples:

@@ -9530,18 +9531,14 @@ http(s)://<hostname><port>/webapi/entry.cgi?api=SYNO.SurveillanceSta @@ -9557,10 +9554,22 @@ http(s)://<hostname><port>/webapi/entry.cgi?api=SYNO.SurveillanceSta
- For further information please see description of the attributes.
- -

+ For further information please see description of the attributes.

+ Description of the placeholders:

+ +
snapEmailTxt - Activates the Email shipping of snapshots. This attribute has the format:
- subject => <subject text>, body => <message text>
- The placeholder $CAM, $DATE and $TIME can be used. $CAM is - replaced by the device name, device alias or the name of camera in SVS if alias is not - defined. $DATE and $TIME are replaced with the current date and time. + subject => <subject text>, body => <message text>
+ The placeholder $CAM, $DATE and $TIME can be used.
Optionally you can specify the "snapEmailTxt:"-tag when trigger snap shot with the "snap"-command. In this case the Email shipping is activated one-time for the snapshot or the tag-text is used instead of the text defined in the "snapEmailTxt"-attribute.
recEmailTxt - Activates the Email shipping of recordings. This attribute has the format:
- subject => <subject text>, body => <message text>
- The placeholder $CAM, $DATE and $TIME can be used. $CAM is - replaced by the device name, device alias or the name of camera in SVS if alias is not - defined. $DATE and $TIME are replaced with the current date and time. + subject => <subject text>, body => <message text>
+ The placeholder $CAM, $DATE and $TIME can be used.
Optionally you can specify the "recEmailTxt:"-tag when start recording with the "on"-command. In this case the Email shipping is activated one-time for the started recording or the tag-text is used instead of the text defined in the "recEmailTxt"-attribute.
+ + + + + + +
$CAM - Device alias respectively the name of the camera in SVS if the device alias isn't set
$DATE - current date
$TIME - current time
$FILE - name of the snapshot file
$CTIME - creation time of the snapshot
+ +
+

Polling of Camera/SVS-Properties

@@ -9790,10 +9799,18 @@ attr <name> genericStrmHtmlTag <video $HTMLATTR controls autoplay>
  • recEmailTxt subject => <subject text>, body => <message text>
    Activates the Email shipping of recordings after whose creation.
    - The attribute has to be definied in the form as described. You can use the placeholder variables $CAM, $DATE and $TIME. - The variable $CAM is replaced by the device alias or the name of the camera in SVS if the device alias isn't available. - $DATE and $TIME are replaced with the current date and time. -

    + The attribute has to be definied in the form as described.
    + You can use the placeholder in "subject" and "body".

    + + +
    +

    +
  • + + +
  • snapTelegramTxt tbot => <TelegramBot device>, peers => [<peer1 peer2 ...>], subject => [<subject text>]
    + Activates the permanent shipping of snapshots by TelegramBot after their creation. If several snapshots were triggert, + they will be sequentially delivered.
    + The attribute has to be definied in the form as described. With key "tbot" the TelegramBot device is specified, which is + used for shipping the data. Of course, the TelegramBot device + must be available and has to be running well.
    + The setting of "peers" and "subject" is optional, but the keys must (empty) specified. + If "peer" is empty, teh default peer of the TelegramBot is used.
    + You can use the placeholder in "subject".

    + + +
    + +
    -
  • +
  • snapGalleryBoost
    @@ -10694,8 +10745,8 @@ attr <name> genericStrmHtmlTag <video $HTMLATTR controls autoplay> Ein Email-Versand der letzten Aufnahme kann durch Setzen des Attributs "recEmailTxt" aktiviert werden. Zuvor ist der Email-Versand, wie im Abschnitt Einstellung Email-Versand beschrieben, einzustellen. (Für weitere Informationen "get <name> versionNotes 7" ausführen)
    - Alternativ kann durch Verwendung des optionalen "snapEmailTxt:"-Tags der Email-Versand der gestarteten Aufnahme nach deren - Beendigung aktiviert werden. Sollte das Attribut "recEmailTxt" bereits gesetzt sein, wird der Text des "snapEmailTxt:"-Tags + Alternativ kann durch Verwendung des optionalen "recEmailTxt:"-Tags der Email-Versand der gestarteten Aufnahme nach deren + Beendigung aktiviert werden. Sollte das Attribut "recEmailTxt" bereits gesetzt sein, wird der Text des "recEmailTxt:"-Tags anstatt des Attribut-Textes verwendet.

    Beispiele :

    @@ -10867,7 +10918,7 @@ attr <name> genericStrmHtmlTag <video $HTMLATTR controls autoplay>



    @@ -11197,10 +11257,7 @@ http(s)://<hostname><port>/webapi/entry.cgi?api=SYNO.SurveillanceSta - Es können die Platzhalter $CAM, $DATE und $TIME verwendet werden. $CAM wird - durch den Device-Namen, 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.
    + Es können die Platzhalter $CAM, $DATE und $TIME verwendet werden.
    Der Email-Versand des letzten Schnappschusses wird einmalig aktiviert falls der "recEmailTxt:"-Tag beim "snap"-Kommando verwendet wird bzw. der in diesem Tag definierte Text statt des Textes im Attribut "recEmailTxt" verwendet. @@ -11210,10 +11267,7 @@ http(s)://<hostname><port>/webapi/entry.cgi?api=SYNO.SurveillanceSta - Es können die Platzhalter $CAM, $DATE und $TIME verwendet werden. $CAM wird - durch den Device-Namen, 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.
    + Es können die Platzhalter $CAM, $DATE und $TIME verwendet werden.
    Der Email-Versand der letzten Aufnahme wird einamlig aktiviert falls der "recEmailTxt:"-Tag beim "on"-Kommando verwendet wird bzw. der in diesem Tag definierte Text statt des Textes im Attribut "recEmailTxt" verwendet. @@ -11230,8 +11284,21 @@ http(s)://<hostname><port>/webapi/entry.cgi?api=SYNO.SurveillanceSta
    - Zur näheren Erläuterung siehe Beschreibung der Attribute.
    - + Zur näheren Erläuterung siehe Beschreibung der Attribute.

    + + Erläuterung der Platzhalter:

    + + +


    @@ -11470,9 +11537,18 @@ attr <name> genericStrmHtmlTag <video $HTMLATTR controls autoplay>
  • recEmailTxt subject => <Betreff-Text>, body => <Mitteilung-Text>
    Aktiviert den Emailversand von Aufnahmen nach deren Erstellung.
    - Das Attribut muß in der angegebenen Form definiert werden. 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 vorhanden - ist. $DATE und $TIME werden durch das aktuelle Datum und Zeit ersetzt.

    + Das Attribut muß in der angegebenen Form definiert werden.
    + Es können die Platzhalter im subject und body verwendet werden.

    + + +