Bitcoin Forum
May 11, 2024, 01:55:07 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Temperature log from cgminer in Antminer s5  (Read 1597 times)
aknnig (OP)
Newbie
*
Offline Offline

Activity: 12
Merit: 0


View Profile
February 14, 2016, 06:58:14 PM
 #1

Hi.

I am running Antminer s5. It uses cgminer.

I wish to monitor the temperature as a function of time and am interested in either the temperature log file or the file containing the current temperature. Or a simple Linux command that gives me the current temperature.

I am inside the s5 through Linux so I can easily create the log myself, if I knew where the file with the current temperature is.

Any comments from you will be highly appreciated.

Best regards,
aknnig
1715435707
Hero Member
*
Offline Offline

Posts: 1715435707

View Profile Personal Message (Offline)

Ignore
1715435707
Reply with quote  #2

1715435707
Report to moderator
1715435707
Hero Member
*
Offline Offline

Posts: 1715435707

View Profile Personal Message (Offline)

Ignore
1715435707
Reply with quote  #2

1715435707
Report to moderator
1715435707
Hero Member
*
Offline Offline

Posts: 1715435707

View Profile Personal Message (Offline)

Ignore
1715435707
Reply with quote  #2

1715435707
Report to moderator
"You Asked For Change, We Gave You Coins" -- casascius
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1715435707
Hero Member
*
Offline Offline

Posts: 1715435707

View Profile Personal Message (Offline)

Ignore
1715435707
Reply with quote  #2

1715435707
Report to moderator
VirosaGITS
Legendary
*
Offline Offline

Activity: 1302
Merit: 1068



View Profile
February 14, 2016, 10:20:26 PM
 #2

Hi.

I am running Antminer s5. It uses cgminer.

I wish to monitor the temperature as a function of time and am interested in either the temperature log file or the file containing the current temperature. Or a simple Linux command that gives me the current temperature.

I am inside the s5 through Linux so I can easily create the log myself, if I knew where the file with the current temperature is.

Any comments from you will be highly appreciated.

Best regards,
aknnig


Just pull the live temp value from cgminer's api;
https://github.com/ckolivas/cgminer/blob/master/API-README


                      ▄▄█████▄▄
                    ▐████████████▄
                   ▄█▀▀▀▀▀▀▀██████▌
             █▄  ▄█▀           ▀▀█
              ▀▀▀███▄▄▄▄▄▄▄▄▄▄   █▄   ▄

               ▄▀▀         ▀▀▀▀▀▀▀██▀▀▀
         ▄▄▄▄▄█▄▄ ▄▀▀▄ ▄▄▄▄▄▄▄▄▄▄▄▄▄█▄▄▄▄
         ████▒▒███    ████▒▒████▌
    ▀█▄ ▀
███████▄ ███▒▒███      ██▒▒█████       ▀█▄
 ███████ ▀█▒▒████     ▄█▒▒█████▀         ▀█ ▄  ▄▄
  ██████  ▌▀▀█████▄▄▄███████▀▀            ███▄███▌
 █████████  █████▀▀█▀▀██████▌             ██████▀
 ▀█████████ ███▄  ███   ▐███▌ ▄██       ▄█████▀
     ▀▀    ▀▀███████████████▄▄████▄▄▄▄█▀▀▀▀▀
               ▀▀▀███▀▀▀      ██████▄
                               ▀▀▀▀▀

▄█████████████████████████████▄
███████████████████████████████
███████████████████████████████
███████████████████████████████
█████████▀▀█████████▀▀█████████
███████ ▄▀▀         ▀▀▄ ███████
██████                   ██████
█████▌     ▄▄     ▄▄     ▐█████
█████     ████   ████     █████
█████      ▀▀     ▀▀      █████
█████▄   ▀▄▄▄     ▄▄▄▀   ▄█████
████████▄▄▄█████████▄▄▄████████
███████████████████████████████
███████████████████████████████
███████████████████████████████
 ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
█ █
█ █
█ █
█ █
█ █
aknnig (OP)
Newbie
*
Offline Offline

Activity: 12
Merit: 0


View Profile
February 15, 2016, 10:25:57 PM
 #3

Thanks for the useful tip VirosaGITS.

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='

VirosaGITS
Legendary
*
Offline Offline

Activity: 1302
Merit: 1068



View Profile
February 15, 2016, 11:08:03 PM
 #4

Thanks for the useful tip VirosaGITS.

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='



Thanks, i actually had a irl friend that does Android coding that was wondering how the API handling worked (he didnt have the time to do the research) and i just showed him the past, but i hadnt looked what command to send to cgminer though SSH to get the paste.

Its good to know, just for academic purposes too.


                      ▄▄█████▄▄
                    ▐████████████▄
                   ▄█▀▀▀▀▀▀▀██████▌
             █▄  ▄█▀           ▀▀█
              ▀▀▀███▄▄▄▄▄▄▄▄▄▄   █▄   ▄

               ▄▀▀         ▀▀▀▀▀▀▀██▀▀▀
         ▄▄▄▄▄█▄▄ ▄▀▀▄ ▄▄▄▄▄▄▄▄▄▄▄▄▄█▄▄▄▄
         ████▒▒███    ████▒▒████▌
    ▀█▄ ▀
███████▄ ███▒▒███      ██▒▒█████       ▀█▄
 ███████ ▀█▒▒████     ▄█▒▒█████▀         ▀█ ▄  ▄▄
  ██████  ▌▀▀█████▄▄▄███████▀▀            ███▄███▌
 █████████  █████▀▀█▀▀██████▌             ██████▀
 ▀█████████ ███▄  ███   ▐███▌ ▄██       ▄█████▀
     ▀▀    ▀▀███████████████▄▄████▄▄▄▄█▀▀▀▀▀
               ▀▀▀███▀▀▀      ██████▄
                               ▀▀▀▀▀

▄█████████████████████████████▄
███████████████████████████████
███████████████████████████████
███████████████████████████████
█████████▀▀█████████▀▀█████████
███████ ▄▀▀         ▀▀▄ ███████
██████                   ██████
█████▌     ▄▄     ▄▄     ▐█████
█████     ████   ████     █████
█████      ▀▀     ▀▀      █████
█████▄   ▀▄▄▄     ▄▄▄▀   ▄█████
████████▄▄▄█████████▄▄▄████████
███████████████████████████████
███████████████████████████████
███████████████████████████████
 ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
█ █
█ █
█ █
█ █
█ █
leowonderful
Legendary
*
Offline Offline

Activity: 1624
Merit: 1129


Bitcoin FTW!


View Profile
February 19, 2016, 12:18:27 AM
 #5

how do you even run s5s on cgminer? i'm curious as to how; I absolutely love seeing that bestshare and share accepted message.
aarons6
Legendary
*
Offline Offline

Activity: 1736
Merit: 1006


View Profile
February 19, 2016, 09:35:11 AM
 #6

Thanks for the useful tip VirosaGITS.

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.

Code:
#!/bin/sh
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.






Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!