area / CryptoSwitcher

A script to switch between mining Bitcoin and any of the other cryptocoins as profitability dictates.
94 stars 45 forks source link

Instead of restarting cgminer use the API calls to add/remove pools? #8

Closed vias79 closed 11 years ago

vias79 commented 11 years ago

Restarting cgminer is botchy at best. Most systems can't handle it without crashing.

So I'd suggest you add the option to add/stop/remove pools via API to a currently running cgminer.

The code for this could perhaps be borrowed from psheps ANUBIS project: https://github.com/pshep/ANUBIS

CatmanIX commented 11 years ago

Cryptoswitcher is designed to be miner-agnostic. Miner operation is supposed to be entirely up to the user, cryptoswitcher's interaction stops where it runs the script that the user told it too.

vias79 commented 11 years ago

Ok, fail from my part then.

Could you perhaps add a API script example for cgminer?

2013/6/25 Jack Fenderson notifications@github.com

Cryptoswitcher is designed to be miner-agnostic. Miner operation is supposed to be entirely up to the user, cryptoswitcher's interaction stops where it runs the script that the user told it too.

— Reply to this email directly or view it on GitHubhttps://github.com/area/CryptoSwitcher/issues/8#issuecomment-19985606 .

romdr commented 11 years ago

I wrote cgminer-monitor in python, it's a simple script that does various things. One of them is to restart cgminer from the API, if something is wrong. Hope it helps. https://github.com/shazbits/cgminer-monitor

On Tue, Jun 25, 2013 at 4:16 PM, vias79 notifications@github.com wrote:

Ok, fail from my part then.

Could you perhaps add a API script example for cgminer?

2013/6/25 Jack Fenderson notifications@github.com

Cryptoswitcher is designed to be miner-agnostic. Miner operation is supposed to be entirely up to the user, cryptoswitcher's interaction stops where it runs the script that the user told it too.

— Reply to this email directly or view it on GitHub< https://github.com/area/CryptoSwitcher/issues/8#issuecomment-19985606> .

— Reply to this email directly or view it on GitHubhttps://github.com/area/CryptoSwitcher/issues/8#issuecomment-20003865 .

vias79 commented 11 years ago

Thank you, will check into that :)

2013/6/25 Romain Dura notifications@github.com

I wrote cgminer-monitor in python, it's a simple script that does various things. One of them is to restart cgminer from the API, if something is wrong. Hope it helps. https://github.com/shazbits/cgminer-monitor

On Tue, Jun 25, 2013 at 4:16 PM, vias79 notifications@github.com wrote:

Ok, fail from my part then.

Could you perhaps add a API script example for cgminer?

2013/6/25 Jack Fenderson notifications@github.com

Cryptoswitcher is designed to be miner-agnostic. Miner operation is supposed to be entirely up to the user, cryptoswitcher's interaction stops where it runs the script that the user told it too.

— Reply to this email directly or view it on GitHub< https://github.com/area/CryptoSwitcher/issues/8#issuecomment-19985606> .

— Reply to this email directly or view it on GitHub< https://github.com/area/CryptoSwitcher/issues/8#issuecomment-20003865> .

— Reply to this email directly or view it on GitHubhttps://github.com/area/CryptoSwitcher/issues/8#issuecomment-20004435 .