Abonniere MQTT-Themen (mit Wildcards) und lass dich benachrichtigen
Wie versende ich Push-Benachrichtigungen aus MQTT mit mqttwarn und Pushsafer
Download & Setup
https://github.com/jpmens/mqttwarn
Konfiguration
https://github.com/jpmens/mqttwarn/blob/main/HANDBOOK.md#pushsafer
[config:pushsafer] ; https://www.pushsafer.com/en/pushapi ; https://www.pushsafer.com/en/pushapi_ext targets = { 'basic': { 'private_key': '3SAz1a2iTYsh19eXIMiO' }, 'nagios': { 'private_key': '3SAz1a2iTYsh19eXIMiO', 'device': '52|65|78', 'icon': 64, 'sound': 2, 'vibration': 1, 'url': 'http://example.org', 'url_title': 'Example Org', 'time_to_live': 60, 'priority': 2, 'retry': 60, 'expire': 600, 'answer': 1, 'answeroptions': 'yes|no|maybe', 'answerforce': 1, 'confirm': 10, }, 'tracking': { 'private_key': '3SAz1a2iTYsh19eXIMiO', 'device': 'gs23', 'icon': 18, }, 'extraphone': { 'private_key': 'aliaskey2', 'time_to_live': 60, 'priority': 2, 'retry': 60, 'expire': 600, 'answer': 0 }, 'warnme': { 'private_key': 'aliaskey3', 'time_to_live': 60, 'priority': 1, 'answer': 1, 'answerforce': 1, 'confirm': 10 }, }
MQTT topic options
Topic option | M/O | Description |
---|---|---|
title |
O | application title (dflt: pushsafer dflt) |
Notes
Retry with Expire: For configuring delivery retries, you must set both parameters.
The legacy configuration layout, based on a list for the addrs slot, is still supported.
Weitere Informationen zum Ersetzten von Werten (Titel, Nachricht, Sound, Icon, Vibration) in deiner Push-Benachrichtigung, findest du in unserer API Beschreibung!