diff --git a/AntMinerGetAllpool b/AntMinerGetAllpool deleted file mode 100755 index 6215f39..0000000 --- a/AntMinerGetAllpool +++ /dev/null @@ -1,21 +0,0 @@ -#!/bin/bash - -up=`/usr/bin/fping -c1 -t300 $1 &> /dev/null ; echo $?` - -if [ $up = 0 ]; then - -set -o errexit -set -o nounset - -ADDRESS=$1 -PORT=$2 -TIMEOUT=0.5 - -pools_raw=`echo '{"command":"pools"}' | timeout $TIMEOUT nc $ADDRESS $PORT | tr -d '\0\n'` -pools_raw=$(sed 's/}{/\},{/' <<< "$pools_raw") -POOLS=$(jq '.POOLS' <<< "$pools_raw") - -#fan_num=$(jq -r '.[1].fan_num' <<< "$STATS") - -echo $POOLS -fi diff --git a/AntMinerGetAllstats b/AntMinerGetAllstats deleted file mode 100755 index b8193c5..0000000 --- a/AntMinerGetAllstats +++ /dev/null @@ -1,23 +0,0 @@ -#!/bin/bash - -up=`/usr/bin/fping -c1 -t300 $1 &> /dev/null ; echo $?` - -if [ $up = 0 ]; then - -set -o errexit -set -o nounset - -ADDRESS=$1 -PORT=$2 -TIMEOUT=0.5 - -stats_raw=`echo '{"command":"stats"}' | timeout $TIMEOUT nc $ADDRESS $PORT | tr -d '\0\n'` -stats_raw=$(sed 's/}{/\},{/' <<< "$stats_raw") - -STATS=$(jq '.STATS' <<< "$stats_raw") - -#fan_num=$(jq -r '.[1].fan_num' <<< "$STATS") - -echo $STATS - -fi