Bitcoin Forum
April 25, 2024, 06:36:30 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Troubles Getting Temperature/Other Stats with CGMiner API  (Read 245 times)
omegalulz (OP)
Newbie
*
Offline Offline

Activity: 9
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)
1714026990
Hero Member
*
Offline Offline

Posts: 1714026990

View Profile Personal Message (Offline)

Ignore
1714026990
Reply with quote  #2

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

Posts: 1714026990

View Profile Personal Message (Offline)

Ignore
1714026990
Reply with quote  #2

1714026990
Report to moderator
1714026990
Hero Member
*
Offline Offline

Posts: 1714026990

View Profile Personal Message (Offline)

Ignore
1714026990
Reply with quote  #2

1714026990
Report to moderator
1714026990
Hero Member
*
Offline Offline

Posts: 1714026990

View Profile Personal Message (Offline)

Ignore
1714026990
Reply with quote  #2

1714026990
Report to moderator
tim-bc
Full Member
***
Offline Offline

Activity: 538
Merit: 175


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 (OP)
Newbie
*
Offline Offline

Activity: 9
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
Full Member
***
Offline Offline

Activity: 538
Merit: 175


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:  

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