Pages:
Author

Topic: COMPLETED: Request for an RPC capable fork of cgminer (155 BTC pledged and paid) (Read 19433 times)

full member
Activity: 210
Merit: 100
If you never heard of netcat, you'll be glad to learn about cryptcat Kano.

Cryptcat uses Bruce Schneier's Twofish encryption algorithm to secure the connection. Sweet.
If you forget to provide a passphrase, the hard-coded default is "metallica". How can one NOT love open source software?
legendary
Activity: 4634
Merit: 1851
Linux since 1997 RedHat 4
So I realized it was going to be way too much work to write a full monitoring/notification center for cgminer.

Instead I am just going to write a simple plugin for Zabbix and let it handle all the graphs and what-not.

Also, this works quite well.
Code:
echo "version|" | nc ip.addr.of.miner 4028
Hmm, I didn't know about nc.
Ah the joy of simple sockets Smiley
hero member
Activity: 742
Merit: 500
So I realized it was going to be way too much work to write a full monitoring/notification center for cgminer.

Instead I am just going to write a simple plugin for Zabbix and let it handle all the graphs and what-not.

Also, this works quite well.
Code:
echo "version|" | nc ip.addr.of.miner 4028
legendary
Activity: 4634
Merit: 1851
Linux since 1997 RedHat 4
Sorry for cross-posting, but this would seem to be relevant to both the main cgminer and this API thread.

I hacked together a workalike version of api-example in Perl leveraging the JSON parlance of the API supported by Kano's wonderful enhancements.

Details are here.
It's part of the core cgminer now - so you can post about it in the cgminer thread Smiley
full member
Activity: 133
Merit: 100
Sorry for cross-posting, but this would seem to be relevant to both the main cgminer and this API thread.

I hacked together a workalike version of api-example in Perl leveraging the JSON parlance of the API supported by Kano's wonderful enhancements.

Details are here.
sr. member
Activity: 349
Merit: 250
Thanks very much!

Those who gave me alternative payments in case chefnet didn't pay out, please PM me your address and I'll send it back if you like.

No, you can have it (at least my share :p) Smiley Consider it an extra donation Smiley
-ck
legendary
Activity: 4088
Merit: 1631
Ruu \o/
Thanks very much!

Those who gave me alternative payments in case chefnet didn't pay out, please PM me your address and I'll send it back if you like.
donator
Activity: 1218
Merit: 1079
Gerald Davis
sorry I was without Inet here are my 15 BTC to 148KkS2vgVi4VzUi4JcKzM2PMaMVPi3nnq

YEAH!  Chefnet is back.  What a happy resolution to this project.
Yes your pledge can be paid to 148KkS2vgVi4VzUi4JcKzM2PMaMVPi3nnq
hero member
Activity: 686
Merit: 500
sorry I was without Inet here are my 15 BTC to 148KkS2vgVi4VzUi4JcKzM2PMaMVPi3nnq
hero member
Activity: 742
Merit: 500
I'm making progress on my mining stats page.

http://mining-stats.stitthappens.com/

Right now, it is set to watch my miner, but I'll add a form to let you connect to any IP or port.  Everything under /api/ can already connect to anywhere (as long as the destination's firewall is open) so it won't take much work. I still need to see what happens when this points to a CPU miner

I'm planning on building some simple images out of these stats.  I might take the "api description" and turn it into a QR code (kind of like my avatar) with the MH/s underneath.

Would it be possible to get pool info via the RPC?  It would be nice to tell if a pool is down.  I was expecting that everything available via the current command line interface would also be available via the RPC but we just have "summary" and "devs"
"pools" ... (that and the rest are documented in the README file)

Dunno how I missed that.  Thanks.
legendary
Activity: 4634
Merit: 1851
Linux since 1997 RedHat 4
Hi!

 I just sent 5 Bitcoins to Kano!

Thanks!
Thiago
5 Received! Thanks Thiago - that's the final one for me.

Now just to sort out what happened to Chefnet for ckolivas' last payment.
I also sent Chefnet a PM a couple of days ago.
But that was a day after his last login and he hasn't logged in since.
legendary
Activity: 4634
Merit: 1851
Linux since 1997 RedHat 4
I'm making progress on my mining stats page.

http://mining-stats.stitthappens.com/

Right now, it is set to watch my miner, but I'll add a form to let you connect to any IP or port.  Everything under /api/ can already connect to anywhere (as long as the destination's firewall is open) so it won't take much work. I still need to see what happens when this points to a CPU miner

I'm planning on building some simple images out of these stats.  I might take the "api description" and turn it into a QR code (kind of like my avatar) with the MH/s underneath.

Would it be possible to get pool info via the RPC?  It would be nice to tell if a pool is down.  I was expecting that everything available via the current command line interface would also be available via the RPC but we just have "summary" and "devs"
"pools" ... (that and the rest are documented in the README file)
hero member
Activity: 742
Merit: 500
I'm making progress on my mining stats page.

http://mining-stats.stitthappens.com/

Right now, it is set to watch my miner, but I'll add a form to let you connect to any IP or port.  Everything under /api/ can already connect to anywhere (as long as the destination's firewall is open) so it won't take much work. I still need to see what happens when this points to a CPU miner

I'm planning on building some simple images out of these stats.  I might take the "api description" and turn it into a QR code (kind of like my avatar) with the MH/s underneath.

Would it be possible to get pool info via the RPC?  It would be nice to tell if a pool is down.  I was expecting that everything available via the current command line interface would also be available via the RPC but we just have "summary" and "devs"
legendary
Activity: 1204
Merit: 1000
฿itcoin: Currency of Resistance!
Hi!

 I just sent 5 Bitcoins to Kano!

Thanks!
Thiago
sr. member
Activity: 349
Merit: 250
I will donate 5 BTC extra in 2 days to Con for his work on integrating this into mainline. (Can't access my wallet for the next 2 days ;-))

5 BTC donated last night, thanks again Con!
legendary
Activity: 980
Merit: 1008
I feel bad. Sad  Developers deserve compensation, especially promised compensation. If anyone feels this project (now integrated into mainline) has merit and it is wrong that ckolivas hasn't been compensated for all his hard work then please make a donation to his donation address and post in this thread.  I am sure in the cgminer userbase we can find 15 people to donate 1 (or more) BTC each to make up the deficit.
1 BTC sent.
sr. member
Activity: 349
Merit: 250
I will donate 5 BTC extra in 2 days to Con for his work on integrating this into mainline. (Can't access my wallet for the next 2 days ;-))
hero member
Activity: 956
Merit: 1001
Theres so many projects that I want to help out!  Bitcoiners are still coming up with great ideas.

I'll pledge 10 BTC.  I'll pledge 5 more if I ckolivas pulls the code into his main branch (even if he codes it).  I think this would help us by keeping bugs to a minimum.  Multiple versions of cgminer are sure to only complicate things and slow features down.
agree +1.

add 15BTC by me if it will be mainline.

I think we should provide him 1 week to either comment or pay up.  Otherwise he should be treated as something of a scammer. I take pledging BTC for development work as a contract. 
legendary
Activity: 4634
Merit: 1851
Linux since 1997 RedHat 4
... and I will add ...
If anyone is looking for me to ask questions about it - I'm usually in the #cgminer thread as 'kanoi'
... lately mostly chatting to ckolivas (conman) about Zelda Smiley
I leave IRC on 24/7 but of course I'm not always in front of my PC Tongue
I reset my home network at 1am UTC+11 Sydney time, so I sometimes lose connection from then until I wake up if I forgot to auto reconnect my PC and went to sleep before 1am
legendary
Activity: 4634
Merit: 1851
Linux since 1997 RedHat 4
I wish javascript could talk over plain TCP Sockets... Sad

A simple web client cannot query cgminer on 4028 directly.  This is too bad.  I was really hoping that I could write a simple index.html that could query any cgminer instance without having to add anything to the server running cgminer.

For now it looks like I will use my python script to proxy calls so that an ajax request can get them.

Minor adjustment of what you said: You need to add to the server running the web page.

If the web page is on the miner - then you can add php as easily as you added the web server.
(and if you didn't install the web server, but someone else did - ask them why they forgot php)

A simple web server that serves just html is way lighter weight than installing PHP. My miner doesn't have the space for much at all since its running off a USB stick. It barely had the space for the tiny python site I made.

I was planning on using phonegap to make a monitor app.  This creates an app that is just an html and javascript page running right on the smartphone. I wanted the phonegap app to directly query the cgminer instance.

Instead, I am querying a small website that is running on the miner.  I've setup my site so it can run anywhere though.  It also has some basic caching and can add authentication or any number of things pretty easily. This is probably better than querying cgminer directly anyways.

Quote

I'll likely move this over to my actual webserver and set --api-network since litecoin mining is making the site sometimes unresponsive. I'll also get it running on port 80.

Right now the site is super minimal.  I'm probably going to use backbone and jquery mobile to make a really easy to use page.  Maybe even play around with image generation to make sigs (although we can't use images here anymore Sad )
As given here: https://bitcointalksearch.org/topic/m.642914
Yes I have apache and php installed on my USB.
As stated it's only an extra approximately 50Mb on my USB for both apache and php.
Pages:
Jump to: