Last active
August 29, 2015 14:13
-
-
Save TomK32/c310dae6af77e2d8e39a to your computer and use it in GitHub Desktop.
poor mam's red alert for devlol lolstripe
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
cmd='mosquitto_pub -h 192.168.7.2 -t led'; | |
times=$1 || 10; | |
for i in `seq 1 $times` | |
do | |
$cmd -m RRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRR | |
echo 'DANGER!' | |
sleep 1 | |
$cmd -m X | |
sleep 1 | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment