Skip to content

Instantly share code, notes, and snippets.

@sisomm
Created January 24, 2014 19:45
Show Gist options
  • Save sisomm/8604651 to your computer and use it in GitHub Desktop.
Save sisomm/8604651 to your computer and use it in GitHub Desktop.
Checks for Minecraft locations in a stream of MQTT topics and converts into ARDUINO commands using the payload
/251/ { print "LED, 0,", ($2=="UP") ? "0" : "1" }
/250/ { print "LED, 1,", ($2=="UP") ? "0" : "1" }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment