Immutable Page History Attachments

Diff for "lolstripe"

Page name: Diff for "lolstripe"
Differences between revisions 5 and 6
Revision 5 as of 2015-03-15 17:33:38
Size: 1292
Editor: mik
Comment:
Revision 6 as of 2015-03-29 17:23:25
Size: 1292
Editor: mik
Comment:
Deletions are marked like this. Additions are marked like this.
Line 17: Line 17:
[[http://mosquitto.org/man/mosquitto_pub-1.html|mosquitto_pub]] -h 192.168.7.2 -t led -m <message> [[http://mosquitto.org/man/mosquitto_pub-1.html|mosquitto_pub]] -h 192.168.8.2 -t led -m <message>
Line 27: Line 27:
mosquitto_pub -h 192.168.7.2 -t led -m xRGBRGBRGBRGBRGBRGB mosquitto_pub -h 192.168.8.2 -t led -m xRGBRGBRGBRGBRGBRGB
Line 30: Line 30:
    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     for i in {1..10} ;do mosquitto_pub -h 192.168.8.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.8.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.8.2 -t led -m xRGBRGBRGBRGBRGBRGB

# poor man's red alert

  • for i in {1..10} ;do mosquitto_pub -h 192.168.8.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