diff --git a/mystrom-on.sh b/mystrom-on.sh new file mode 100755 index 0000000..7019f8f --- /dev/null +++ b/mystrom-on.sh @@ -0,0 +1,17 @@ +#!/bin/sh +# 2020-12-07, Nico Schottelius + +if [ $# -lt 1 ]; then + echo "$0 hostname [hostname...]" + echo " hostname: which mystrom to turn on" + exit 1 +fi + +while [ $# -ge 1 ]; do + hostname=$1; shift + + curl --location \ + --request GET \ + "http://${hostname}/relay?state=1" + +done