Author

Topic: How to send commands/get data from Claymore's miner over local network? (Read 1162 times)

legendary
Activity: 1848
Merit: 1166
My AR-15 ID's itself as a toaster. Want breakfast?
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
legendary
Activity: 1901
Merit: 1024
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
newbie
Activity: 53
Merit: 0
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
hero member
Activity: 700
Merit: 500
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
newbie
Activity: 53
Merit: 0
This is one way ...
https://bitcointalksearch.org/topic/awesome-miner-powerful-windows-gui-to-manage-and-monitor-up-to-200000-miners-676942
you can see all most everything the GPUs are doing sense the last update...With Claymore .
Im not asking for a mining manager suggestions
legendary
Activity: 1274
Merit: 1000
This is one way ...

https://bitcointalksearch.org/topic/awesome-miner-powerful-windows-gui-to-manage-and-monitor-up-to-200000-miners-676942

you can see all most everything the GPUs are doing sense the last update...With Claymore .
newbie
Activity: 53
Merit: 0
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
hero member
Activity: 700
Merit: 500
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"}'
legendary
Activity: 1848
Merit: 1166
My AR-15 ID's itself as a toaster. Want breakfast?
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.
newbie
Activity: 53
Merit: 0
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.
Jump to: