Immutable Page History Attachments

Diff for "lolstripe"

Page name: Diff for "lolstripe"
Differences between revisions 7 and 8
Revision 7 as of 2015-03-29 17:24:15
Size: 1292
Editor: mik
Comment:
Revision 8 as of 2015-04-02 18:07:53
Size: 1395
Editor: mik
Comment:
Deletions are marked like this. Additions are marked like this.
Line 11: Line 11:
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. 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 devlol/h19/mainroom/lolstripe-Topic subscribed ist und messages über die serielle Schnittstelle auf den Arduino schiebt.
Line 17: Line 17:
[[http://mosquitto.org/man/mosquitto_pub-1.html|mosquitto_pub]] -h 192.168.8.2 -t led -m <message> [[http://mosquitto.org/man/mosquitto_pub-1.html|mosquitto_pub]] -h 192.168.8.2 -t devlol/h19/mainroom/lolstripe -m <message>
Line 27: Line 27:
mosquitto_pub -h 192.168.8.2 -t led -m xRGBRGBRGBRGBRGBRGB mosquitto_pub -h 192.168.8.2 -t devlol/h19/mainroom/lolstripe -m xRGBRGBRGBRGBRGBRGB
Line 30: Line 30:
    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.8.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.8.2 -t devlol/h19/mainroom/lolstripe -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 devlol/h19/mainroom/lolstripe-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 devlol/h19/mainroom/lolstripe -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 devlol/h19/mainroom/lolstripe -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.8.2 -t devlol/h19/mainroom/lolstripe -m X; sleep 1; done

Software

coming soon to a git near the internet


CategoryDevProject CategoryProjects CategoryCurrentProject TagLocation TagHardware