Pushsafer: fix not working "device" & "urlText" modifier. Added "key" modifier (Forum: #59004)
git-svn-id: https://svn.fhem.de/fhem/trunk@12366 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
@@ -40,7 +40,9 @@ my %Pushsaver_Params = (
|
|||||||
"vibration" => "v",
|
"vibration" => "v",
|
||||||
"icon" => "i",
|
"icon" => "i",
|
||||||
"url" => "u",
|
"url" => "u",
|
||||||
"urlTitle" => "ut",
|
"device" => "d",
|
||||||
|
"key" => "k",
|
||||||
|
"urlText" => "ut",
|
||||||
"message" => "m"
|
"message" => "m"
|
||||||
);
|
);
|
||||||
|
|
||||||
@@ -150,7 +152,7 @@ sub Pushsafer_createBody($$)
|
|||||||
my @urlParts;
|
my @urlParts;
|
||||||
my @errs;
|
my @errs;
|
||||||
|
|
||||||
push @urlParts, "k=".$hash->{PrivateKey};
|
push @urlParts, "k=".$hash->{PrivateKey} unless(exists($args->{k}) and exists($args->{key}));
|
||||||
|
|
||||||
foreach my $item (keys %{$args})
|
foreach my $item (keys %{$args})
|
||||||
{
|
{
|
||||||
@@ -312,6 +314,7 @@ sub Pushsafer_Callback($$$)
|
|||||||
<code><b>vibration</b></code> - short: <code>v </code> - type: number - The number of times the device should vibrate upon reception (maximum: 3 times; iOS/Android only). If not set, the default behavior of the device is used.<br>
|
<code><b>vibration</b></code> - short: <code>v </code> - type: number - The number of times the device should vibrate upon reception (maximum: 3 times; iOS/Android only). If not set, the default behavior of the device is used.<br>
|
||||||
<code><b>url</b> </code> - short: <code>u </code> - type: text - A URL that should be included in the message. This can be regular http:// URL's but also specific app schemas. See <a href="https://www.pushsafer.com/en/url_schemes" target="_new">Pushsafer.com</a> for a complete list of supported URL schemas.<br>
|
<code><b>url</b> </code> - short: <code>u </code> - type: text - A URL that should be included in the message. This can be regular http:// URL's but also specific app schemas. See <a href="https://www.pushsafer.com/en/url_schemes" target="_new">Pushsafer.com</a> for a complete list of supported URL schemas.<br>
|
||||||
<code><b>urlText</b> </code> - short: <code>ut</code> - type: text - A text that should be used to display a URL from the "url" option.<br>
|
<code><b>urlText</b> </code> - short: <code>ut</code> - type: text - A text that should be used to display a URL from the "url" option.<br>
|
||||||
|
<code><b>key</b> </code> - short: <code>k </code>- type: text - Overrides the private key given in the define statement. Also an alias key can be used.<br>
|
||||||
<br>
|
<br>
|
||||||
Examples:<br>
|
Examples:<br>
|
||||||
<br>
|
<br>
|
||||||
@@ -401,6 +404,7 @@ sub Pushsafer_Callback($$$)
|
|||||||
<code><b>vibration</b></code> - Kurzform: <code>v </code> - Typ: Ganzzahl - Die Anzahl, wie oft das Zielgerät vibrieren soll beim Empfang der Nachricht (maximal 3 mal; nur für iOS-/Android-Geräte nutzbar). Falls nicht benutzt, wird die geräteinterne Einstellung verwendet.<br>
|
<code><b>vibration</b></code> - Kurzform: <code>v </code> - Typ: Ganzzahl - Die Anzahl, wie oft das Zielgerät vibrieren soll beim Empfang der Nachricht (maximal 3 mal; nur für iOS-/Android-Geräte nutzbar). Falls nicht benutzt, wird die geräteinterne Einstellung verwendet.<br>
|
||||||
<code><b>url</b> </code> - Kurzform: <code>u </code> - Typ: Text - Eine URL welche der Nachricht angehangen werden soll. Dies kann eine normale http:// bzw. https:// URL sein, es sind jedoch auch weitere spezielle Schemas möglich. Eine Liste aller möglichen URL-Schemas gibt es unter <a href="https://www.pushsafer.com/de/url_schemes" target="_new">pushsafer.com</a> .<br>
|
<code><b>url</b> </code> - Kurzform: <code>u </code> - Typ: Text - Eine URL welche der Nachricht angehangen werden soll. Dies kann eine normale http:// bzw. https:// URL sein, es sind jedoch auch weitere spezielle Schemas möglich. Eine Liste aller möglichen URL-Schemas gibt es unter <a href="https://www.pushsafer.com/de/url_schemes" target="_new">pushsafer.com</a> .<br>
|
||||||
<code><b>urlText</b> </code> - Kurzform: <code>ut</code> - Typ: Text - Der Text, welcher zum Anzeigen der URL benutzt werden soll anstatt der Zieladresse.<br>
|
<code><b>urlText</b> </code> - Kurzform: <code>ut</code> - Typ: Text - Der Text, welcher zum Anzeigen der URL benutzt werden soll anstatt der Zieladresse.<br>
|
||||||
|
<code><b>key</b> </code> - Kurzform: <code>k </code> - Typ: Text - Übersteuert den zu nutzenden Schlüssel zur Identifikation aus dem define-Kommando. Es kann hierbei auch ein Email-Alias-Schlüssel benutzt werden.<br>
|
||||||
<br>
|
<br>
|
||||||
Beispiele:<br>
|
Beispiele:<br>
|
||||||
<br>
|
<br>
|
||||||
|
|||||||
Reference in New Issue
Block a user