Skip to content
This repository has been archived by the owner on Mar 6, 2020. It is now read-only.

jpmens/mqtt-osx-notifier

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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/.

About

Notify OSX from topics published on OSX (see mqttwarn)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages