Bitcoin Forum
May 04, 2024, 05:21:25 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: CGMiner & BFGminer API testing tool in Node.js with Socket.io  (Read 1009 times)
lolkittens (OP)
Newbie
*
Offline Offline

Activity: 3
Merit: 0


View Profile
February 24, 2014, 04:59:50 AM
 #1

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.
1714800085
Hero Member
*
Offline Offline

Posts: 1714800085

View Profile Personal Message (Offline)

Ignore
1714800085
Reply with quote  #2

1714800085
Report to moderator
1714800085
Hero Member
*
Offline Offline

Posts: 1714800085

View Profile Personal Message (Offline)

Ignore
1714800085
Reply with quote  #2

1714800085
Report to moderator
1714800085
Hero Member
*
Offline Offline

Posts: 1714800085

View Profile Personal Message (Offline)

Ignore
1714800085
Reply with quote  #2

1714800085
Report to moderator
Each block is stacked on top of the previous one. Adding another block to the top makes all lower blocks more difficult to remove: there is more "weight" above each block. A transaction in a block 6 blocks deep (6 confirmations) will be very difficult to remove.
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1714800085
Hero Member
*
Offline Offline

Posts: 1714800085

View Profile Personal Message (Offline)

Ignore
1714800085
Reply with quote  #2

1714800085
Report to moderator
1714800085
Hero Member
*
Offline Offline

Posts: 1714800085

View Profile Personal Message (Offline)

Ignore
1714800085
Reply with quote  #2

1714800085
Report to moderator
lolkittens (OP)
Newbie
*
Offline Offline

Activity: 3
Merit: 0


View Profile
February 24, 2014, 07:24:41 PM
 #2

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
9inety7even
Member
**
Offline Offline

Activity: 84
Merit: 10


View Profile
February 24, 2014, 08:26:46 PM
 #3

Looks nice, can I ask which front end framework you're using? It looks like bootstrap, but I'm not sure.

lolkittens (OP)
Newbie
*
Offline Offline

Activity: 3
Merit: 0


View Profile
February 24, 2014, 08:35:28 PM
 #4

Looks nice, can I ask which front end framework you're using? It looks like bootstrap, but I'm not sure.

Yup, Bootstrap 3 Smiley

It also uses jQuery & Gauge.js
CaptEmulation
Full Member
***
Offline Offline

Activity: 134
Merit: 100


View Profile
March 21, 2014, 05:12:37 PM
 #5

Very interesting.  Followed @github.  I am working on a similar personal project.

Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!