Subscribe to MQTT topics (with wildcards) and notifiy pluggable services
How to send push-notifications out of MQTT with mqttwarn and Pushsafer
Download & Setup
https://github.com/jpmens/mqttwarn
Configuration
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.
For more information about replacing values (title, message, icon, icon color, sound, vibration) in your push notification, check out our API description!