#acl Known:read,write,admin, All:read
== /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 mainstripe/light/mainstripe_rgb/ --(--(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 mqtt.devlol.org -t mainstripe/light/mainstripe_rgb/command -m '{"state": "OFF"}'

mosquitto_pub -h mqtt.devlol.org -t mainstripe/light/mainstripe_rgb/command -m '{"state": "ON", "color": {"r": 100, "g": 100, "b": 100}}'

--(--(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 )--)--

# [[https://gist.github.com/TomK32/c310dae6af77e2d8e39a|poor man's red alert]]

 . for i in {1..10} ;do mosquitto_pub -h mqtt.devlol.org -t mainstripe/light/mainstripe_rgb/command -m '{"state": "ON", "color": {"r": 250, "g": 0, "b":  0}}'; echo 'DANGER!'; sleep 1; mosquitto_pub -h mqtt.devlol.org -t mainstripe/light/mainstripe_rgb/command -m '{"state": "OFF"}'; 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 )--)-- )--

=== Software ===
coming soon to a git near the internet

----
CategoryDevProject CategoryProjects CategoryCurrentProject TagLocation TagHardware