Bitcoin Forum

Bitcoin => Project Development => Topic started by: lolkittens on February 24, 2014, 04:59:50 AM



Title: CGMiner & BFGminer API testing tool in Node.js with Socket.io
Post by: lolkittens on February 24, 2014, 04:59:50 AM
I'm making a mining dashboard in Node.js + Socket.io and I wanted a simple way to check responses and test commands for CGMiner so I wrote this little script.

https://github-camo.global.ssl.fastly.net/fd02eb4d0d11c1fed799d5bccdde327b7e65c974/687474703a2f2f692e696d6775722e636f6d2f6b5031726535562e706e67


I put it up on github, https://github.com/RotexDev/cgminer-api-test

Hope this helps anyone who want's to use CGMiner RPC in Node.js.


Title: Re: CGMiner & BFGminer API testing tool in Node.js with Socket.io
Post by: lolkittens on February 24, 2014, 07:24:41 PM
Here is a picture of what i'm actually making if anyone is interested.

http://screencloud.net/img/screenshots/e5b43552501d89791bfbe3b13652300c.png

I'm not that far in but the stats you see are my current hash rate and my total accepted shares, they are updated about every second live on the page.

When more gets done I will put it up on github and release it for mobile phones.

Here is how it looks for mobile, not much different but just imagine it on your phone.

http://screencloud.net/img/screenshots/21a91d9a9d8422be451cca09258575d1.png


Title: Re: CGMiner & BFGminer API testing tool in Node.js with Socket.io
Post by: 9inety7even on February 24, 2014, 08:26:46 PM
Looks nice, can I ask which front end framework you're using? It looks like bootstrap, but I'm not sure.


Title: Re: CGMiner & BFGminer API testing tool in Node.js with Socket.io
Post by: lolkittens on February 24, 2014, 08:35:28 PM
Looks nice, can I ask which front end framework you're using? It looks like bootstrap, but I'm not sure.

Yup, Bootstrap 3 :)

It also uses jQuery & Gauge.js


Title: Re: CGMiner & BFGminer API testing tool in Node.js with Socket.io
Post by: CaptEmulation on March 21, 2014, 05:12:37 PM
Very interesting.  Followed @github.  I am working on a similar personal project.