diff --git a/hdhrstatus.sh b/hdhrstatus.sh new file mode 100755 index 0000000..0ac709d --- /dev/null +++ b/hdhrstatus.sh @@ -0,0 +1,19 @@ +#!/bin/bash + +HDHRIP='192.168.9.100' +tunerCount="3" # tuner count minus 1 since tuners start at 0 + +printdata () { +IFS=$'\n' +echo "Tuner Number, Virtual Channel, Frequency, Program Number, Modulation Lock, Signal Strength, Signal Quality, Symbol Quality, Streaming Rate, Resource Lock" +for f in $(seq 0 $tunerCount); do +#for f in 0 1 2 3; do + printf "Tuner $f, "; + for p in $(curl -s "http://${HDHRIP}/tuners.html?page=tuner$f" | egrep "Virtual Channel|Frequency|Program Number|Modulation Lock|Signal Strength|Signal Quality|Symbol Quality|Streaming Rate|Resource Lock" | sed 's/