Immutable Page History Attachments

Diff for "lolstripe"

Page name: Diff for "lolstripe"
Differences between revisions 2 and 3
Revision 2 as of 2014-08-14 20:07:23
Size: 951
Editor: mik
Comment:
Revision 3 as of 2015-01-07 16:20:07
Size: 1179
Editor: TomK32
Comment: update IPs
Deletions are marked like this. Additions are marked like this.
Line 17: Line 17:
mosquitto_pub -h 192.168.1.2 -t led -m <message> mosquitto_pub -h 192.168.7.2 -t led -m <message>
Line 27: Line 27:
mosquitto_pub -h 192.168.1.2 -t led -m xRGBRGBRGBRGBRGBRGB mosquitto_pub -h 192.168.7.2 -t led -m xRGBRGBRGBRGBRGBRGB

# poor man's red alert
for i in {1..10} ;do mosquitto_pub -h 192.168.7.2 -t led -m RRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRR; echo 'DANGER!'; sleep 1; mosquitto_pub -h 192.168.7.2 -t led -m X; sleep 1; done

/dev/lolstripe

Buntes Licht im Hauptraum

Description

Ein hippes buntes Licht, steuerbar über Netzwerk

Ein RGB-Streifen mit 60 Leds hängt über einen Arduino auf dem WLAN-Router. Auf dem WLAN-Router läuft ein lua-script welches über MQTT auf /led-Topic subscribed ist und messages über die serielle Schnittstelle auf den Arduino schiebt.

Wird eine Weile nichts gesendet aktiviert sich der Bildschirmschoner

Funktionen

mosquitto_pub -h 192.168.7.2 -t led -m <message>

Wobei <message>

x oder X löscht den Streifen r g b füllt den ganzen Streifen d delay ~50ms R G B schiebt um eins weiter und fügt R G oder B hinzu 0 Bildschirmschoner

mosquitto_pub -h 192.168.7.2 -t led -m xRGBRGBRGBRGBRGBRGB

# poor man's red alert for i in {1..10} ;do mosquitto_pub -h 192.168.7.2 -t led -m RRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRR; echo 'DANGER!'; sleep 1; mosquitto_pub -h 192.168.7.2 -t led -m X; sleep 1; done

Software

coming soon to a git near the internet


CategoryDevProject CategoryProjects CategoryCurrentProject TagLocation TagHardware