ungleich-tools/mystrom/mystrom-temperature.sh

16 lines
264 B
Bash
Raw Normal View History

2020-12-07 12:47:34 +00:00
#!/bin/sh
# 2020-12-07, Nico Schottelius
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 "http://${hostname}/temp"
done