All Projects → jpmens → mqtt-osx-notifier

jpmens / mqtt-osx-notifier

Licence: other
Notify OSX from topics published on OSX (see mqttwarn)

Programming Languages

python
139335 projects - #7 most used programming language

MQTT-OSX-NOTIFIER

** 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 ...)

OSX notifier

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.

Requirements

  • Mosquitto Python
  • pync which uses the binary terminal-notifier created by Eloy Durán. Note: upon first launch, pync will download and extract https://github.com/downloads/alloy/terminal-notifier/terminal-notifier_1.4.2.zip into a directory vendor/.
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].