This script can be used within a GTK desktop environment to display notifications whenever specific messages appear on the firehose.
The following libraries are needed:
The embedded icons come from https://prothemedesign.com/tools/circular-icons/ (released under the GPL).
From a virtualenv:
python sf_desktop_notifications.py -c /path/to/config.yaml
If installed:
SFDesktopNotifications -c /path/to/config.yaml
host and port refer to the Firehose host and port to connect to.
Basic filtering can be set in the config file:
filters: filter_name: topic: firehose_topic key_from_the_message: regexp_value icon: heart_red
Possible icon values: