** This program is obsolete: see mqttwarn for a much more capable program **
Subscribes to any number of MQTT topics and notifies to the OSX notification area (whatever that may be called officially ...)
Configuration is expected in the mqtt-osx-notifier.ini
file (a sample template is
provided, which has to be renamed):
[notifier]
application=MQTT
[mqtt]
broker=localhost
port=1883
[topics]
topic1 = test/one
topic2 = twitter/emergency
topic3 = jp/#
You can specify any number of topics in the [topics]
section; the key name
is ignored.
mqtt-osx-notifier
connects to the specified MQTT broker and subscribes to the list
of topics. For each message received on a topic, mqtt-osx-notifier
will notify
your OSX desktop.
Publish a test message to your broker, specifying one of the topics mqtt-osx-notifier
is
subscribed to:
mosquitto_pub -t test/one -m 'Introducing mqtt-osx-notifier. :-)'
After a few seconds, you should see the result on the top-right of your OSX machine.
- Mosquitto Python
- pync which uses the binary terminal-notifier created by Eloy Durán. Note:
upon first launch,
pync
will download and extracthttps://github.com/downloads/alloy/terminal-notifier/terminal-notifier_1.4.2.zip
into a directoryvendor/
.