Title: Claymore miners API Post by: Ambros on May 12, 2017, 08:46:38 AM Hi Guys.
In a couple weeks I will have some free time and I would like to give my first contribution to the mining community. I would like to develop and opensource a module able to monitor multiple claymore miner, show their stats and send telegram notifications when needed. I'm aware that there are many of these software around, but at best of my knowledge they are not opensource. Finally my real question: Does anyone have a documentation of Claymore miner API? I would like to re invent the wheel and spend time sniffing them if someone did that yet. Title: Re: Claymore miners API Post by: felixbrucker on May 12, 2017, 08:52:01 AM Hi Guys. In a couple weeks I will have some free time and I would like to give my first contribution to the mining community. I would like to develop and opensource a module able to monitor multiple claymore miner, show their stats and send telegram notifications when needed. I'm aware that there are many of these software around, but at best of my knowledge they are not opensource. Finally my real question: Does anyone have a documentation of Claymore miner API? I would like to re invent the wheel and spend time sniffing them if someone did that yet. i used this: https://github.com/osnwt/ethmon/blob/master/app.js#L161 as a base for my own program, where you can start here: https://github.com/felixbrucker/miner-manager/blob/master/api/controllers/miningController.js#L723 (forgive the crappy code :P) the syntax is basically always the same: write '{"id":0,"jsonrpc":"2.0","method":"miner_getstat1"}\n' via socket and you get the stats data, i suggest looking at the raw data once to get a feel of what you are getting Title: Re: Claymore miners API Post by: Ambros on May 12, 2017, 08:55:32 AM I was not aware of your code! Thank you for reaching out!
I am not a big js fan, but I will consider to try to contribute to your project instead of starting a new one ;D Title: Re: Claymore miners API Post by: felixbrucker on May 12, 2017, 09:07:02 AM I was not aware of your code! Thank you for reaching out! I am not a big js fan, but I will consider to try to contribute to your project instead of starting a new one ;D haha nah, the base is so crappy, it would require a complete rewrite for it to be socially acceptable, better start your own, i might use it later as a native binding (if written in c/c++) :P Title: Re: Claymore miners API Post by: Ambros on May 12, 2017, 09:57:04 AM I was not aware of your code! Thank you for reaching out! I am not a big js fan, but I will consider to try to contribute to your project instead of starting a new one ;D haha nah, the base is so crappy, it would require a complete rewrite for it to be socially acceptable, better start your own, i might use it later as a native binding (if written in c/c++) :P A miner monitor written in c/c++ ;D ;D I think it's overkilling, I think I'll go for something fast (to develop) as python Title: Re: Claymore miners API Post by: felixbrucker on May 12, 2017, 10:50:55 AM I was not aware of your code! Thank you for reaching out! I am not a big js fan, but I will consider to try to contribute to your project instead of starting a new one ;D haha nah, the base is so crappy, it would require a complete rewrite for it to be socially acceptable, better start your own, i might use it later as a native binding (if written in c/c++) :P A miner monitor written in c/c++ ;D ;D I think it's overkilling, I think I'll go for something fast (to develop) as python sure why not Title: Re: Claymore miners API Post by: stibog on May 22, 2017, 08:17:37 PM I am developing a miner monitor in C++ using Qt framework! :) Call it overkill if you want, but it uses virtually no resources. I've added support for EWBF api just a few minutes ago. (not yet on github, will add tonight or tomorrow.) And I'm looking into Claymore api now, so I'll start by looking at your JS :D
It's still early development, but it works. My program is here: https://bitcointalk.org/index.php?topic=1905294 |