Bitcoin Forum

Alternate cryptocurrencies => Mining (Altcoins) => Topic started by: Toxicable on May 19, 2017, 10:02:02 PM



Title: How to send commands/get data from Claymore's miner over local network?
Post by: Toxicable on May 19, 2017, 10:02:02 PM
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.


Title: Re: How to send commands/get data from Claymore's miner over local network?
Post by: JaredKaragen on May 20, 2017, 08:23:02 AM
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.


Title: Re: How to send commands/get data from Claymore's miner over local network?
Post by: felixbrucker on May 20, 2017, 08:35:33 AM
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"}'


Title: Re: How to send commands/get data from Claymore's miner over local network?
Post by: Toxicable on May 20, 2017, 08:49:55 AM
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


Title: Re: How to send commands/get data from Claymore's miner over local network?
Post by: toptek on May 20, 2017, 08:59:47 AM
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 .


Title: Re: How to send commands/get data from Claymore's miner over local network?
Post by: Toxicable on May 20, 2017, 09:03:38 AM
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


Title: Re: How to send commands/get data from Claymore's miner over local network?
Post by: felixbrucker on May 20, 2017, 09:44:45 AM
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 :P


Title: Re: How to send commands/get data from Claymore's miner over local network?
Post by: Toxicable on May 20, 2017, 10:46:47 AM
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 :P
Thanks, that's helpful seeing an example


Title: Re: How to send commands/get data from Claymore's miner over local network?
Post by: reb0rn21 on September 17, 2019, 03:06:02 PM
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


Title: Re: How to send commands/get data from Claymore's miner over local network?
Post by: JaredKaragen on September 17, 2019, 11:51:55 PM
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 (https://gist.github.com/ivy/bba124115affcd596448616a5ac13fed)