Skip to content
This repository has been archived by the owner on Jun 22, 2020. It is now read-only.
/ mqtt2win10notify Public archive

Subscribes to a topic and then displays mqtt messages in Windows systray

Notifications You must be signed in to change notification settings

matbor/mqtt2win10notify

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 

Repository files navigation

mqtt2win10notify

Quick example, proof of concept for displaying mqtt messages in windows.

Based on example from; https://github.com/jithurjacob/Windows-10-Toast-Notifications and inspired by mqtt-tools/mqttwarn#160

Requires a json message formatted like this {"sub":"subject","txt":"text"}

To be sent to the topic, however it will fall back to displaying just the message if no json message is found.

Can be run in the background if needed, just use pythonw.exe mqtt_notification.py

Works on Windows 10 with Python 2.7. Requires;

Example; mosquitto_pub -h mosquitto.org -t 'test/messages' -m '{"sub": "7NewsMelbourne", "txt": "RT @BrendanDonohoe7: Ambulance Vic hopes to move 100,000 patients to other care providers. Filter out non urgent cases."}'

balloon

center

About

Subscribes to a topic and then displays mqtt messages in Windows systray

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages