Open ghost opened 10 years ago
Hi,
it might not be the full API, but rather a subset. But it's not the first thing I am going to add:
https://bitcointalk.org/index.php?topic=167229.msg5436210#msg5436210
2014-03-01 22:49 GMT+01:00 Valcorb notifications@github.com:
Similar to CGMiner API. Think this is possible?
Reply to this email directly or view it on GitHubhttps://github.com/cbuchner1/CudaMiner/issues/105 .
That would be cool. I just want to be able to get my hashrate from cudaminer instead of my pool.
+1 on the cudaminer API. I run a pool that uses a script to push data out of cgminer, had several people ask if we could build out support for CUDAMiner.
+2 for a cudaminer API. CGWatcher/CGRemote is a remote-manager for mining rigs. It currently supports cgminer, sgminer, and bfgminer. If Cudaminer sent an API, it could support that as well and be included in the bunch.
The developer has expressed interest as well: http://coinmyne.proboards.com/thread/92/cudaminer-support
Is there possibly an ETA on this? I might be able to add a basic implementation after we've rolled out more features on our pool, but I wouldn't want to duplicate work that's already being done.
As a first quick solution to get cudaminer integrated into a BAMT spin-off, I will add some CSV file based logging. This would allow for some real time stats.
Adding a proper API will be looked into next week at the earliest.
Christian
2014-03-19 5:43 GMT+01:00 Isaac Cook notifications@github.com:
Is there possibly an ETA on this? I might be able to add a basic implementation after we've rolled out more features on our pool, but I wouldn't want to duplicate work that's already being done.
Reply to this email directly or view it on GitHubhttps://github.com/cbuchner1/CudaMiner/issues/105#issuecomment-38017426 .
@cbuchner1 Any ETA?
Bump - API would be greatly appreciated. Even if just command summary to start with to monitor status of mining. Create socket. Listen on the port for the summary command then return the STATUS result with stats. Wait for next.
For summary status no real need for security beyond option to specify connecting IP's would be nice but can do in firewall if needed. I get around this limitation of cudaminer with a script at the moment but would be much cleaner & more useful if built in. :) Not sure how useful some of the values are or if all needed to start but the 2 MHS ones certainly would be needed for monitoring.
Example session: {"command":"summary"} {"STATUS":[{"STATUS":"S","When":1398192231,"Code":11,"Msg":"Summary","Descrip tion":"cgminer 3.7.2"}],"SUMMARY":[{"Elapsed":8870,"MHS av":0.25,"MHS 5s":0.24," Found Blocks":0,"Getworks":909,"Accepted":927,"Rejected":30,"Hardware Errors":0, "Utility":6.27,"Discarded":1801,"Stale":135,"Get Failures":1,"Local Work":4053," Remote Failures":0,"Network Blocks":424,"Total MH":3978.8216,"Work Utility":353. 69,"Difficulty Accepted":45584.00000000,"Difficulty Rejected":1472.00000000,"Dif ficulty Stale":5136.00000000,"Best Share":54683,"Device Hardware%":0.0000,"Devic e Rejected%":2.8153,"Pool Rejected%":2.8204,"Pool Stale%":9.8406}],"id":1}
If not likely to be added any time soon I might take a crack at it. Thx Bill
Just copy API from sgminer.
This man is a genius.
lol wow utahman why didn't I think of that. Copied it to the cudaminer folder but it didn't do anything. ;)
Thanks to KiloWatts, the link posted above lead me to darkminer (fork of sgminer) which indeed works with my 750 ti's and in fact is giving similar (although higher after autotune completes) hash rates than cudaminer but darkminer uses WAY more cpu than cudaminer and makes the computer almost unusable (similar to cudaminer without -i 1). CPU wise we're talking 1% vs 25% on quad core so no comparison.
If I wanted every bit of khash & required API & how interactive was not important, seems darkminer would be the way to go ATM. On the other hand, cudaminer is the clear winner ATM in the low cpu + interactive category. Granted I'm sure both miners could be tweaked to alter hash vs interactive-ness too. (I spent maybe 1/2 hr playing with it)
So at this point I'll stick with cudaminer & wait for API but will keep an eye on darkminer and maybe play around some more to balance hash speed, CPU & interactiveness. Or I might end up with cudaminer on my desktop & darkminer on a mining rig that doesn't get used as a computer too.
Cudaminer and sgminer have similar codebase, so copying API from one to another is the Least Significant Change. Some adaptation will be required, of course.
Putting in my vote for a cudaminer api. Any updates on this?
We're hoping CudaMiner gets an API. We want to support it in https://github.com/cryptoGlance/cryptoGlance-web-app
Update to my earlier post: Not to take away from CudaMiner project but if someone needs API ASAP, I spent the time to get darkminer (fork of sgminer) built on Windows and tweaked the code to get CPU usage down (near idle now) with very good hash rates. I posted up step by step build instructions (skip past the earlier comments working thru the build issues) If someone is interested: https://github.com/jrouvier/darkminer/issues/1 The API works well & I actually replaced cgminer with darkminer for my ATI rigs as well. I control/monitor the rigs with CGWatcher & the rigs are very stable with nearly idle CPU levels.
Similar to CGMiner API. Think this is possible?