Pages:
Author

Topic: [ANN] CryptoSwitcher - Automatically mine the best coin. (Read 95410 times)

member
Activity: 98
Merit: 10
Cryptsy changes the URL for their API.  I wonder if that needs to change.
member
Activity: 60
Merit: 10
Can it mine coins that are not listed on exchange?
sr. member
Activity: 280
Merit: 250
any self hosted php/mysql script auto switcher i can use?
member
Activity: 98
Merit: 10
so cryptoswitcher is like multipool but locally? What advantages does that have
Report to moderator 
hero member
Activity: 651
Merit: 501
My PGP Key: 92C7689C
I am guessing that the PHP script is https://github.com/area/CryptoSwitcher/blob/master/switchpool.php but I still don't understand what exactly needs to be done.

- Where to specify all pool urls's and miner name/password?
- How to call this script with "clear" parameter included on the first call in the pool-switching shell script?
- I am guessing that I have to remove line 4 and 5 from pool-switching shell script https://github.com/area/CryptoSwitcher/blob/master/litecoin.sh.sample in order to make sure cgminer isn't restarted every time. Is that correct?

Everything is passed in as arguments.  Here's what I'm using to switch over to Bitgem mining...write this to bitgem.sh:

Code:
#!/bin/bash
source miners.sh
for i in $miners
do
  php switchpool.php stratum+tcp://bitgem.dyndns.org:3333 salfter.${i} x clear ${i} 4029
done

miners.sh just declares a variable with the hosts to be switched:

Code:
#!/bin/bash
miners="miner2"

Going back to switchpool.php, the arguments passed to it are as follows:

  • pool URL
  • pool worker name
  • pool password
  • "clear" (to remove all other pools from the current config) or "" (to not do that, if you're using multiple pools for a coin)
  • cgminer/bfgminer hostname
  • cgminer/bfgminer RPC port number
full member
Activity: 133
Merit: 100
I tried but it says the config file' syntax is old or outdated then immediately closes.
newbie
Activity: 28
Merit: 0
Looks neat, will try whenever I get home.
member
Activity: 98
Merit: 10
veeeeery nice tool  Grin thank you very much indeed!

After hours of configuration it works very well.
But can somebody tell me how to add more sites like coinchoose?

I've tried the last hours to code it by myself but all was only worst of time.

API:
http://sancrypto.info/api/json/15/

Code:
# sancrypto
        if x=='sancrypto':
            try:
                fullstr = prestr + "sancrypto"
                print fullstr + (79-len(fullstr))*" " + "\r",
                req = urllib2.Request("http://sancrypto.info/api/json/15/")
                opener_sc = urllib2.build_opener()
                opener_sc.addheaders = [('User-agent', 'CryptoSwitcher')]
                f = opener_sc.open(req, timeout = 5)
                data_sc = simplejson.load(f)
            except:
                pass

Code:
            if x=='sancrypto':
                try:
                    for item in data_sc:
                        if item['symbol'].lower()==abbreviation:
                            coins[item['symbol'].lower()].ratio = float(item['ratio'])
                            coins[item['symbol'].lower()].source = 'sc'
   success = 1
   break
                except:
print "ERROR"
continue

I dont know what the problem is. So, if anyone could - please help Wink


EDIT:
Got it, thanks anyway. I did it by myself with a detour. python export now the json into a txt file, add a few thinks like "CoinTag" and it works very well.

what about sharing result? Tongue
newbie
Activity: 14
Merit: 0
veeeeery nice tool  Grin thank you very much indeed!

After hours of configuration it works very well.
But can somebody tell me how to add more sites like coinchoose?

I've tried the last hours to code it by myself but all was only worst of time.

API:
http://sancrypto.info/api/json/15/

Code:
# sancrypto
        if x=='sancrypto':
            try:
                fullstr = prestr + "sancrypto"
                print fullstr + (79-len(fullstr))*" " + "\r",
                req = urllib2.Request("http://sancrypto.info/api/json/15/")
                opener_sc = urllib2.build_opener()
                opener_sc.addheaders = [('User-agent', 'CryptoSwitcher')]
                f = opener_sc.open(req, timeout = 5)
                data_sc = simplejson.load(f)
            except:
                pass

Code:
            if x=='sancrypto':
                try:
                    for item in data_sc:
                        if item['symbol'].lower()==abbreviation:
                            coins[item['symbol'].lower()].ratio = float(item['ratio'])
                            coins[item['symbol'].lower()].source = 'sc'
   success = 1
   break
                except:
print "ERROR"
continue

I dont know what the problem is. So, if anyone could - please help Wink


EDIT:
Got it, thanks anyway. I did it by myself with a detour. python export now the json into a txt file, add a few thinks like "CoinTag" and it works very well.
newbie
Activity: 47
Merit: 0
A couple of days or so ago, I merged some pull requests that had been sitting around a while.  I also included a PHP script that uses the cgminer API to switch pools.  Others have posted about using just one cgminer.conf with every pool and issuing a switchpool call.  My script takes a pool URL, miner name, and password, adds them to the current list of pools, and (optionally) removes all of the other pools.  In your pool-switching shell script, you then call my script once for each pool you want to use for a coin, with the "clear" parameter included on the first call. This allows you to have multiple pools configured for a coin as a backup.

Thanks for the script, much appreciated.

At the moment the regular setup is working, but I would like to make sure cgminer doesn't need to restart when switching pools by using the above method, but unfortunately I don't understand what exactly needs to be done.

I am guessing that the PHP script is https://github.com/area/CryptoSwitcher/blob/master/switchpool.php but I still don't understand what exactly needs to be done.

- Where to specify all pool urls's and miner name/password?
- How to call this script with "clear" parameter included on the first call in the pool-switching shell script?
- I am guessing that I have to remove line 4 and 5 from pool-switching shell script https://github.com/area/CryptoSwitcher/blob/master/litecoin.sh.sample in order to make sure cgminer isn't restarted every time. Is that correct?

Any help is appreciated, thanks.
hero member
Activity: 651
Merit: 501
My PGP Key: 92C7689C
I got CryptoSwitcher running over the weekend on a test machine. Is there a simple way to add Dogecoin (which seems the most profitable atm)?

It's been a while since I've touched the code, but there are (IIRC) three places that you'd need to edit to add a coin.  It should be fairly obvious, as each is a block of mostly-similar statements that describe the coins that are already supported.
newbie
Activity: 2
Merit: 0
Ola all.

I got CryptoSwitcher running over the weekend on a test machine. Is there a simple way to add Dogecoin (which seems the most profitable atm)?

He3
sr. member
Activity: 290
Merit: 250
No, that's the point, it is forbidden as funds come from address 0, you need to forward them at least once trough another address. So how is this supposed to happen?

Not sure what you mean.

As long as you are not mining at a P2Pool, you can use a cryptsy address.

I've been doing it for quite some time.
sr. member
Activity: 392
Merit: 265
No, that's the point, it is forbidden as funds come from address 0, you need to forward them at least once trough another address. So how is this supposed to happen?
sr. member
Activity: 290
Merit: 250
The money must appear in some way on Cryptsy, right?
So only one possibility I see for this without enetring wallet addresses in script, is to enter criptsy's deposit wallet addresses directly in the pools and mine to them. But this is forbidden.
So... ?  Huh

Mining at a "normal" pool, you are able to use a cryptsy address for payout
sr. member
Activity: 392
Merit: 265
The money must appear in some way on Cryptsy, right?
So only one possibility I see for this without enetring wallet addresses in script, is to enter criptsy's deposit wallet addresses directly in the pools and mine to them. But this is forbidden.
So... ?  Huh
sr. member
Activity: 392
Merit: 265
 
However what I do not understand is how do I set this up on Linux and where to insert the wallets the script is supposed to deposit from.

Sounds like you might want to spend sometime getting basic mining setup.

This script really has nothing to do with your wallets for various coins.

It will auto-trade on various exchanges, but you don't enter wallet addresses in this script.

OK, so where does the script take my coins from so it can trade with them?
sr. member
Activity: 290
Merit: 250
 
However what I do not understand is how do I set this up on Linux and where to insert the wallets the script is supposed to deposit from.

Sounds like you might want to spend sometime getting basic mining setup.

This script really has nothing to do with your wallets for various coins.

It will auto-trade on various exchanges, but you don't enter wallet addresses in this script.
sr. member
Activity: 392
Merit: 265
 
Hello!

I am about to start using this great software. But one thing I don't understand. So I have to find a good pool for every currency. Got it. But, where do I have to send the payouts to? Since this software is managing the trading as well...

Thanks!
I think as far as you insert your cryptsy API you get all deposited there and finally the sold BTCs there. Then you have to withdraw from there.
However what I do not understand is how do I set this up on Linux and where to insert the wallets the script is supposed to deposit from.
sr. member
Activity: 392
Merit: 265
Hi,

I just downloaded it. However as I can see some currencies are missing, and I want to ask is there any way they to be added?
For example, currently all curencies which are more profitable over Bitcoin are not available in the config file.

And also where do you input your wallets addresses to mine to?
Pages:
Jump to: