Bitcoin Forum
May 06, 2024, 11:53:13 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: How to send commands/get data from Claymore's miner over local network?  (Read 1126 times)
Toxicable (OP)
Newbie
*
Offline Offline

Activity: 53
Merit: 0


View Profile
May 19, 2017, 10:02:02 PM
 #1

I've tried looking around but there is very little information on what Claymore's does over the network.
I see the output here http://localhost:3333/ but  I assume there's some other endpoint for less horribly formatted information. As for sending commands, I have no idea, i've tried sending POST requests at the same url but never get a response.
"Bitcoin: mining our own business since 2009" -- Pieter Wuille
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
JaredKaragen
Legendary
*
Offline Offline

Activity: 1848
Merit: 1165


My AR-15 ID's itself as a toaster. Want breakfast?


View Profile WWW
May 20, 2017, 08:23:02 AM
 #2

read up on the miner's "API"

This is how you interface with the miner remotely for stats and info.

typically;  the API binds automatically to some port; and you will have to look up how to interface with the API yourself if you don't use someone else's pre-configured/coded program.

Typically for a custom set of API data, you would have to write a program or script to send data to the remote (or local) port(s) and listen for a return of data to display to you....

Gonna take some research my friend to do it custom.

Link to my batch and script resources here.  

DO NOT TRUST YOBIT  -JK

Donations: 1Q8HjG8wMa3hgmDFbFHC9cADPLpm1xKHQM
felixbrucker
Hero Member
*****
Offline Offline

Activity: 700
Merit: 500


View Profile WWW
May 20, 2017, 08:35:33 AM
 #3

I've tried looking around but there is very little information on what Claymore's does over the network.
I see the output here http://localhost:3333/ but  I assume there's some other endpoint for less horribly formatted information. As for sending commands, I have no idea, i've tried sending POST requests at the same url but never get a response.


you will need to send json messages over plain sockets (and dont forget to append "\n")
here is the stats request: '{"id":0,"jsonrpc":"2.0","method":"miner_getstat1"}'
Toxicable (OP)
Newbie
*
Offline Offline

Activity: 53
Merit: 0


View Profile
May 20, 2017, 08:49:55 AM
Last edit: September 18, 2019, 09:48:12 PM by mprep
 #4

read up on the miner's "API"
There isn't anything to read up on the Miner's API, they havn't documented anything.

typically;  the API binds automatically to some port; and you will have to look up how to interface with the API yourself if you don't use someone else's pre-configured/coded program.
Typically for a custom set of API data, you would have to write a program or script to send data to the remote (or local) port(s) and listen for a return of data to display to you....
Yes I know I have to write a program, that's why i'm asking what endpoints they expose




I've tried looking around but there is very little information on what Claymore's does over the network.
I see the output here http://localhost:3333/ but  I assume there's some other endpoint for less horribly formatted information. As for sending commands, I have no idea, i've tried sending POST requests at the same url but never get a response.

you will need to send json messages over plain sockets (and dont forget to append "\n")
here is the stats request: '{"id":0,"jsonrpc":"2.0","method":"miner_getstat1"}'

I did find this one and attempt to do it with a simple Node script but the response I was getting is the same as when you send a get request at http://localhost:3333/ which responds with HTML
toptek
Legendary
*
Offline Offline

Activity: 1274
Merit: 1000


View Profile
May 20, 2017, 08:59:47 AM
 #5

This is one way ...

https://bitcointalk.org/index.php?topic=676942.0

you can see all most everything the GPUs are doing sense the last update...With Claymore .

For security, your account has been locked. Email acctcomp15@theymos.e4ward.com
Toxicable (OP)
Newbie
*
Offline Offline

Activity: 53
Merit: 0


View Profile
May 20, 2017, 09:03:38 AM
 #6

This is one way ...
https://bitcointalk.org/index.php?topic=676942.0
you can see all most everything the GPUs are doing sense the last update...With Claymore .
Im not asking for a mining manager suggestions
felixbrucker
Hero Member
*****
Offline Offline

Activity: 700
Merit: 500


View Profile WWW
May 20, 2017, 09:44:45 AM
 #7

I've tried looking around but there is very little information on what Claymore's does over the network.
I see the output here http://localhost:3333/ but  I assume there's some other endpoint for less horribly formatted information. As for sending commands, I have no idea, i've tried sending POST requests at the same url but never get a response.

you will need to send json messages over plain sockets (and dont forget to append "\n")
here is the stats request: '{"id":0,"jsonrpc":"2.0","method":"miner_getstat1"}'

I did find this one and attempt to do it with a simple Node script but the response I was getting is the same as when you send a get request at http://localhost:3333/ which responds with HTML

you can see how i did it in node, eg here: https://github.com/felixbrucker/miner-manager/blob/master/api/controllers/miningController.js#L723

and excuse the horrible code Tongue
Toxicable (OP)
Newbie
*
Offline Offline

Activity: 53
Merit: 0


View Profile
May 20, 2017, 10:46:47 AM
 #8

I've tried looking around but there is very little information on what Claymore's does over the network.
I see the output here http://localhost:3333/ but  I assume there's some other endpoint for less horribly formatted information. As for sending commands, I have no idea, i've tried sending POST requests at the same url but never get a response.

you will need to send json messages over plain sockets (and dont forget to append "\n")
here is the stats request: '{"id":0,"jsonrpc":"2.0","method":"miner_getstat1"}'

I did find this one and attempt to do it with a simple Node script but the response I was getting is the same as when you send a get request at http://localhost:3333/ which responds with HTML

you can see how i did it in node, eg here: https://github.com/felixbrucker/miner-manager/blob/master/api/controllers/miningController.js#L723

and excuse the horrible code Tongue
Thanks, that's helpful seeing an example
reb0rn21
Legendary
*
Offline Offline

Activity: 1898
Merit: 1024


View Profile
September 17, 2019, 03:06:02 PM
 #9

I try to send API call to claymore to disable all GPU but nothing happens, I set  -mpsw xxx, and I try with telnet:

{"id":0,"jsonrpc":"2.0", "psw":"xxx", "method":"control_gpu", "params":[-1, 0]}

msg is received by claymore do nothing

command '{"id":0,"jsonrpc":"2.0","psw":"xxx","method":"miner_getstat1"}
is wrorking

              ▄▄▄ ▀▀▀▀▀▀▀▀▀ ▄▄▄
           ▄▀▀    ▄▄▄▄▄▄▄▄▄    ▀▀▄
        ▄▀▀  ▄▄▀█          ▀█▀▄▄  ▀▀▄
      ▄▀▀ ▄▄▀    ▀▀▄▄▄▄▄▄▄▀▀    ▀▄▄ ▀▀▄
     █   █            ▀            █   █
   ▄▀ █  ▀▄▄                     ▄█▀  █ ▀▄
  ▄▀ ▄▀ █▄ ▀▀▀██▄▄▄       ▄▄▄██▀▀  ██ ▀▄ ▀▄
  ▀▄▀▀▄ ██ ▄▄▄▄▄▄  ▀▄   ▄▀  ▄▄▄▄▄▄ ██ ▄▀▀▄▀
 ██   █ ██ ▀▄    ▀▄ █   █ ▄▀    ▄▀ ██ █  ▀██
 █  ▄█  ▀█  ▀▀▀▀▀▀▀ █   █ ▀▀▀▀▀▀▀  █   █▄  █
█▀ █  █  █          █   █          █  █  █ ▀▀
 █▀  ▄▀  █▀▄        █   █        ▄▀█  ▀▄  ▀█
 ▄  █▀   █ ▀█▄      ▀   ▀      ▄█▀ █  ▄▀█  ▄
 █▄▀  █  █                         █  █  ▀▄█
 ▀▄  █   ▀█        ▄▄▀▄▀▄▄        █▀   █  ▄
  ▀▄▀▀  █▄ █     ▀█  ▀▀▀  █▀     █ ▄█ ▄▀▀▄▀
   ▀ ▄  ██ █▀▄     ▀▀▄▄▄▀▀     ▄▀█ ██ ▀▄ ▀
    ▀█  ██ █ █▀▄    ▄▄▄▄▄    ▄▀█ █ ██  █▀
      ▀▄ ▀ █ █ ██▄         ▄██ █ █ ▀ ▄▀
        ▀▄ █ █ █ ▀█▄     ▄█▀ █ █ █ ▄▀
          ▀▀▄█ █    ▀▀▀▀▀    █ █▄▀▀
              ▀▀ ▄▄▄▄▄▄▄▄▄▄▄ ▀▀
   
..I  D  E  N  A..
   
Proof-of-Person Blockchain

Join the mining of the first human-centric
cryptocurrency
 



 
▲    2 3 2 2

..N  O  D  E  S..
   
                ██
                ██
                ██
                ██
                ██
         ▄      ██      ▄
         ███▄   ██   ▄███
          ▀███▄ ██ ▄███▀
            ▀████████▀
              ▀████▀
                ▀▀
██▄                            ▄██
███                            ███
███                            ███
███                            ███
 ███▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄███
  ▀▀██████████████████████████▀▀
   
D O W N L O A D

Idena node

   
   
▄▄▄██████▄▄▄
▄▄████████████████▄▄
▄█████▀▀        ▀▀█████▄
████▀                ▀████
███▀    ▄▄▄▄▄▄▄▄▄       ▀███
███      █   ▄▄ █▀▄        ███
██▀      █  ███ █  ▀▄      ▀██
███       █   ▀▀ ▀▀▀▀█       ███
███       █  ▄▄▄▄▄▄  █       ███
███       █  ▄▄▄▄▄▄  █       ███
██▄      █  ▄▄▄▄▄▄  █      ▄██
███      █          █      ███
███▄    ▀▀▀▀▀▀▀▀▀▀▀▀    ▄███
████▄                ▄████
▀█████▄▄        ▄▄█████▀
▀▀████████████████▀▀
▀▀▀██████▀▀▀
   
    .REQUEST INVITATION.
JaredKaragen
Legendary
*
Offline Offline

Activity: 1848
Merit: 1165


My AR-15 ID's itself as a toaster. Want breakfast?


View Profile WWW
September 17, 2019, 11:51:55 PM
 #10

read up on the miner's "API"
There isn't anything to read up on the Miner's API, they havn't documented anything.

typically;  the API binds automatically to some port; and you will have to look up how to interface with the API yourself if you don't use someone else's pre-configured/coded program.
Typically for a custom set of API data, you would have to write a program or script to send data to the remote (or local) port(s) and listen for a return of data to display to you....
Yes I know I have to write a program, that's why i'm asking what endpoints they expose


https://www.google.com/search?q=claymore+miner+API

documeted plenty of places, that's where there's soo many different miner managers that can interface with its API.... search my friend.  Answers are out there.

Example is: one of the top results from that search was this https://gist.github.com/ivy/bba124115affcd596448616a5ac13fed

Link to my batch and script resources here.  

DO NOT TRUST YOBIT  -JK

Donations: 1Q8HjG8wMa3hgmDFbFHC9cADPLpm1xKHQM
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!