Merewether Weather, Merewether Tides and Solar Power Monitoring for Merewether, NSW, Australia - Newcastle Weather

Twitter Contact Login Search

Main

WeatherCat to MQTT Bridge

Date:
By Mangrove Mike

Hi folks,

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.

Have fun,

Mangrove Mike

 

 

What is MQTT? (from http://mqtt.org
MQTT stands for MQ Telemetry Transport. It is a publish/subscribe, extremely simple and lightweight messaging protocol, designed for constrained devices and low-bandwidth, high-latency or unreliable networks. The design principles are to minimise network bandwidth and device resource requirements whilst also attempting to ensure reliability and some degree of assurance of delivery. These principles also turn out to make the protocol ideal of the emerging “machine-to-machine” (M2M) or “Internet of Things” world of connected devices, and for mobile applications where bandwidth and battery power are at a premium.

 

1 comment

Beautiful coding. Love this kind of stuff. Keep up the good work Mike. ___ ___ ¦ ¦ ¦ ¦ ¦ ¦ ¦ ¦ ¦ ¦ ¯¯¯¯¯¯¯¯¯

Posted by Kyle, 29/04/2014 8:03:36 pm