Skip to content

Instantly share code, notes, and snippets.

View mangrovemike's full-sized avatar

Mangrove Mike mangrovemike

View GitHub Profile
@mangrovemike
mangrovemike / mqtt_wind_speed_beaufort_leds.ino
Last active December 11, 2015 10:59
Arduino code to read MQTT data (on wind speed) and display different colours on a RGB LED. It uses a very basic RGB 'blink-em' arduino config. Thanks to Toby Jaffey and Nick O'Leary for mqtt libraries and tutorials and to Andy Piper and Andy Stafford-Clark for MQTT inspiration. Michael Barwell Jan 2013 @mangrovemike
/*
Beaufort Scale LED Display
This is a Beaufort Scale LED display using MQTT Server to determine wind speed. It is written to use
the Wind Speed data collected from my weather station but can be adapted to any other MQTT
service (even COSM data).
It uses a very basic RGB 'blink-em' arduino config.
Thanks to Toby Jaffey and Nick O'Leary for mqtt libraries and tutorials and to Andy Piper and
@mangrovemike
mangrovemike / create_tide_events.py
Created December 10, 2012 22:52
XTIDE to MQTT Bridge
#!/usr/bin/python
#
# MangroveMike (www.merewether.com.au)
#
# Get tides, moonrise, moonset, sunrise and sut set from XTIDE and publish to local MQTT server.
# We publish when the actual event occurs to the /now/ topic and the next 6 hours worth of activity to the /future/ topic.
#
# 10/12/2012 Initially created.
#
#
@mangrovemike
mangrovemike / mqtt_local_sub_cosm_pub.py
Created November 30, 2012 02:44
Mosquitto to COSM Bridge
#!/usr/bin/python
#
# MangroveMike
#
# Read the local MQTT channels and publish to my COSM channels
#
#
# Based upon great code from:
# Andy Piper