Immutable Page History Attachments

Diff for "lolstripe"

Page name: Diff for "lolstripe"
Differences between revisions 3 and 4
Revision 3 as of 2015-01-07 16:20:07
Size: 1179
Editor: TomK32
Comment: update IPs
Revision 4 as of 2015-01-07 16:30:59
Size: 1288
Editor: TomK32
Comment: link to a bash script
Deletions are marked like this. Additions are marked like this.
Line 17: Line 17:
mosquitto_pub  -h 192.168.7.2 -t led -m <message> [[http://mosquitto.org/man/mosquitto_pub-1.html|mosquitto_pub]] -h 192.168.7.2 -t led -m <message>
Line 29: Line 29:
# 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
# [[https://gist.github.com/TomK32/c310dae6af77e2d8e39a|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