Immutable Page History Attachments

Diff for "lolstripe"

Page name: Diff for "lolstripe"
Differences between revisions 8 and 9
Revision 8 as of 2015-04-02 18:07:53
Size: 1395
Editor: mik
Comment:
Revision 9 as of 2022-01-31 11:21:27
Size: 1995
Editor: hue
Comment:
Deletions are marked like this. Additions are marked like this.
Line 2: Line 2:
Line 4: Line 3:
Line 8: Line 6:
Line 11: Line 8:
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. 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.
Line 16: Line 13:
mosquitto_pub -h mqtt.devlol.org -t mainstripe/light/mainstripe_rgb/command -m '{"state": "OFF"}'
Line 17: Line 15:
[[http://mosquitto.org/man/mosquitto_pub-1.html|mosquitto_pub]] -h 192.168.8.2 -t devlol/h19/mainroom/lolstripe -m <message> mosquitto_pub -h mqtt.devlol.org -t mainstripe/light/mainstripe_rgb/command -m '{"state": "ON", "color": {"r": 100, "g": 100, "b": 100}}'
Line 19: Line 17:
Wobei <message> --(--(mosquitto_pub -h 192.168.8.2 -t devlol/h19/mainroom/lolstripe -m <message> )--)--
Line 21: Line 19:
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
--(--(Wobei <message> )--)--
Line 27: Line 21:
mosquitto_pub -h 192.168.8.2 -t devlol/h19/mainroom/lolstripe -m xRGBRGBRGBRGBRGBRGB --(--(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 )--)--
Line 30: Line 26:
    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
 . 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 )--)-- )--
Line 33: Line 33:
coming soon to a git near the internet
Line 34: Line 35:
coming soon to a git near the internet

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

# 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