In more details for the other newbies. For Antminer s5, use
cgminer-api -o stats
to get all status data. temp1 can then be extracted using for example
cgminer-api -o stats | sed 's/,/\n/g' | grep 'temp1='
you have to run it every time you start the s5 but here is a way you can keep a log..
on the s5 the only folder that has write access is /config
making a small script.. something like this.
echo $(date) "| temp monitor started" > /www/pages/temperature.txt
echo $(date) "| temp monitor started" > /config/temperature.txt
while true
do
var_avg=$( cgminer-api stats | grep "^ *\[temp_avg]")
var_max=$( cgminer-api stats | grep "^ *\[temp_max]")
echo $(date) "| normal operation: " AVG $var_avg MAX $var_max >> /www/pages/temperature.txt
echo $(date) "| normal operation: " $var_avg $var_max >> /config/temperature.txt
sleep 60
done
save it as temp.sh in the /config folder
chmod +x
./temp.sh &
what this wil do is create a txt file in /config and one in www/pages
so you can view it www.IP/temperature.txt
when you restart the s5 you have to ssh in and run /config/temp.sh & again
feel free to modify it as you need.