use GET for mystrom on http
This commit is contained in:
parent
a2894395ac
commit
4e7596a774
2 changed files with 19 additions and 1 deletions
|
@ -10,6 +10,6 @@ fi
|
||||||
while [ $# -ge 1 ]; do
|
while [ $# -ge 1 ]; do
|
||||||
hostname=$1; shift
|
hostname=$1; shift
|
||||||
|
|
||||||
http --json "http://${hostname}/report"
|
http --json GET "http://${hostname}/report"
|
||||||
|
|
||||||
done
|
done
|
||||||
|
|
18
mystrom-toggle.sh
Executable file
18
mystrom-toggle.sh
Executable file
|
@ -0,0 +1,18 @@
|
||||||
|
#!/bin/sh
|
||||||
|
# 2020-12-07, Nico Schottelius
|
||||||
|
|
||||||
|
set -x
|
||||||
|
exec >>/tmp/foo
|
||||||
|
exec 2>&1
|
||||||
|
|
||||||
|
if [ $# -lt 1 ]; then
|
||||||
|
echo "$0 hostname [hostname...]"
|
||||||
|
echo " hostname: which mystrom to connect to"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
while [ $# -ge 1 ]; do
|
||||||
|
hostname=$1; shift
|
||||||
|
|
||||||
|
http --json GET "http://${hostname}/toggle"
|
||||||
|
done
|
Loading…
Reference in a new issue