WeatherCat to MQTT Bridge
Categories: Linux Code | Weather Station
I've just written a WeatherCat to MQTT bridge using the excellent WeatherCat Applescript interface.
MQTT allows lightweight publish and subscribe functionality and is used for process control, Arduino projects and lots of other fun things. The bridge I've written uses the open source MQTT tool Mosquitto (http://mosquitto.org) to publish the WeatherCat data.
It is pretty straightforward and can be found at GitHub (https://github.com/mangrovemike/WeatherCatMosquittoBridge).
The code was based upon the Applescript in the WeatherCat docs and can be customised to replace the call to the 'mosquitto_pub' to any OSX shell script or command.
What is MQTT? (from http://mqtt.org)
Beautiful coding. Love this kind of stuff. Keep up the good work Mike. ___ ___ ¦ ¦ ¦ ¦ ¦ ¦ ¦ ¦ ¦ ¦ ¯¯¯¯¯¯¯¯¯
Posted by Kyle, 29/04/2014 8:03:36 pm