Skip to content

Instantly share code, notes, and snippets.

@TomK32
Last active August 29, 2015 14:13
Show Gist options
  • Save TomK32/c310dae6af77e2d8e39a to your computer and use it in GitHub Desktop.
Save TomK32/c310dae6af77e2d8e39a to your computer and use it in GitHub Desktop.
poor mam's red alert for devlol lolstripe
#!/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