Bitcoin Forum
September 26, 2018, 09:40:37 AM *
News: ♦♦ New info! Bitcoin Core users absolutely must upgrade to previously-announced 0.16.3 [Torrent]. All Bitcoin users should temporarily trust confirmations slightly less. More info.
 
   Home   Help Search Donate Login Register  
Pages: [1]
  Print  
Author Topic: Troubles Getting Temperature/Other Stats with CGMiner API  (Read 78 times)
omegalulz
Newbie
*
Offline Offline

Activity: 7
Merit: 0


View Profile
June 22, 2018, 11:33:42 PM
 #1

Hi there, I'm currently working on an Arduino script to pull data from my Antminer s9i's.

So far, I have been able to play around with the included PHP script (https://github.com/ckolivas/cgminer/blob/7ffd24607c385be643a013e9f9615b84dbdce4ac/miner.php) and get the "Summary" page to return just fine.
Although, when I attempt to get the temperatures provided by the 'devs' (https://github.com/ckolivas/cgminer/blob/master/API-README#L167) command, I simply get an array with the status message being "Error" and the Message being "No"
Therefore, I am assuming I need to modify some sort of permissions to access this part of the API.
I thought I had read somewhere that all devices on the local network would be included, though that could be outdated information.

I have looked around and I still am unsure where I can modify the permissions for accessing these features in the API.
I would greatly appreciate it if someone can share the information with me Smiley

Thanks!! (PS: I apologize if this does not make complete sense, I am still trying to figure out how CGMiner works on Antminers)
1537954837
Hero Member
*
Offline Offline

Posts: 1537954837

View Profile Personal Message (Offline)

Ignore
1537954837
Reply with quote  #2

1537954837
Report to moderator
1537954837
Hero Member
*
Offline Offline

Posts: 1537954837

View Profile Personal Message (Offline)

Ignore
1537954837
Reply with quote  #2

1537954837
Report to moderator
1537954837
Hero Member
*
Offline Offline

Posts: 1537954837

View Profile Personal Message (Offline)

Ignore
1537954837
Reply with quote  #2

1537954837
Report to moderator
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction. Advertise here.
1537954837
Hero Member
*
Offline Offline

Posts: 1537954837

View Profile Personal Message (Offline)

Ignore
1537954837
Reply with quote  #2

1537954837
Report to moderator
tim-bc
Member
**
Offline Offline

Activity: 168
Merit: 21


View Profile
June 23, 2018, 01:11:30 AM
Merited by suchmoon (4)
 #2

Antminers use a modified version of cgminer. I think that the 'stats' command will give you what you are looking for. temp_6 temp_7 temp_8 are your pcb/local temps and then temp2_6 temp2_7 temp2_8 are your chip temps. chain6 is rightmost board, chain8 is left.

Ignore scammers on Skype, Telegram, etc. I will only ever contact you via forum PMs. See profile for fingerprint.
omegalulz
Newbie
*
Offline Offline

Activity: 7
Merit: 0


View Profile
June 23, 2018, 02:53:31 AM
 #3

Antminers use a modified version of cgminer. I think that the 'stats' command will give you what you are looking for. temp_6 temp_7 temp_8 are your pcb/local temps and then temp2_6 temp2_7 temp2_8 are your chip temps. chain6 is rightmost board, chain8 is left.

Aha, you're right. Thank you!!!
tim-bc
Member
**
Offline Offline

Activity: 168
Merit: 21


View Profile
June 23, 2018, 11:41:06 AM
 #4

Aha, you're right. Thank you!!!
Glad I could help! Let me know if you are ever looking for any other stats.

Ignore scammers on Skype, Telegram, etc. I will only ever contact you via forum PMs. See profile for fingerprint.
Pages: [1]
  Print  
 
Jump to:  

Sponsored by , a Bitcoin-accepting VPN.
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!