Push Message NTFY With this function block, push notifications can be sent via the NTFY app. In the app, a topic must be subscribed to in order to receive messages. The serial number of the controller is used as the topic, as it is unique.
The app can be installed from the app stores, name of the app NTFY.
iOS app Download
Android app Download
Inputs |
||
| TR |
Trigger |
Trigger at which the message is
sent. See parameter Trigger. |
| WT / W1..W8 |
Value |
Optional values. Values can be
linked here that are inserted into the topic or the message. The
placeholder %1 in the topic or message is replaced by the value of
the first value input, %2 by the second one and so on. The number
of value inputs is set via the parameter Input
count. The formatting depends on the data type of the
linked address (integer, floating point number or string); if no
address is linked, floating point is used. The older placeholders
%d, %f and %s are still supported and refer to the first value
input. |
Outputs |
||
| FE |
Error |
Number of errors. |
| AZ |
Count
|
Number of messages still to be sent. |
| FT |
Filter |
Remaining filter time in seconds. After a message has been sent, this output counts down from the time set in the Filter parameter to 0. As long as the value is greater than 0, no further messages are sent. |
Parameters |
||
| Trigger |
|
|
| Topic |
Optional topic. The topic consists of the serial number of the controller and this parameter. If this parameter is empty, the topic is for example "8805-ca65-51f9-47e1-b5a6-60a9-344c-0597", otherwise "8805-ca65-51f9-47e1-b5a6-60a9-344c-0597-xy" xy = topic from this parameter. | |
| Message | Message that is sent. |
|
| E-mail |
Optional e-mail address. If this parameter is filled in, the same message is also sent as an e-mail to this address in parallel to the push notification. Several addresses can be entered separated by semicolons. The SMTP server from the project's mail server configuration is used. If the parameter is left empty, no e-mail is sent. | |
| Filter |
Waiting time in seconds until the next message is sent (default 300 seconds). After a message has been sent, further messages are discarded for this time. The output FT Filter shows the remaining time. | |
| Input count |
Number of value inputs (1 to 8, default 1) for the placeholders %1 to %8. | |