Village:Königlich Bayerisches Amtsvillage/Lightcontroller

From SHA2017 Wiki
< Village:Königlich Bayerisches Amtsvillage
Revision as of 18:33, 29 July 2017 by Casandro (talk | contribs) (Created page with "Somewhere at the Königlich Bayrisches Amtsvillage, there will be a 5 meter RGB LED strip. You can control it via UDP. Just send packets with the red, green and blue values a...")

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Somewhere at the Königlich Bayrisches Amtsvillage, there will be a 5 meter RGB LED strip.

You can control it via UDP. Just send packets with the red, green and blue values as ASCII-Text separated by a space. The IP-Address will be published as soon as the device is online

#!/bin/bash
# Set to yellow
echo "0.5 0.25 0" > /dev/udp/someaddress/8888
sleep 1
#set to purple
echo "0.5 0 0.5" > /dev/udp/someaddress/8888