Bitcoin Forum
November 15, 2024, 11:13:54 AM *
News: Latest Bitcoin Core release: 28.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: « 1 2 3 4 5 6 7 8 9 10 11 [12]  All
  Print  
Author Topic: [ANN] CryptoSwitcher - Automatically mine the best coin.  (Read 95408 times)
RicRock
Sr. Member
****
Offline Offline

Activity: 290
Merit: 250



View Profile
January 25, 2014, 08:00:09 PM
 #221

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
bananahunter67
Sr. Member
****
Offline Offline

Activity: 392
Merit: 265


View Profile WWW
January 26, 2014, 07:01:22 AM
 #222

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?

Cryptostats.es
RicRock
Sr. Member
****
Offline Offline

Activity: 290
Merit: 250



View Profile
January 27, 2014, 04:59:01 PM
 #223

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.
Helium3
Newbie
*
Offline Offline

Activity: 2
Merit: 0


View Profile
February 03, 2014, 11:58:15 PM
 #224

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

Activity: 651
Merit: 501


My PGP Key: 92C7689C


View Profile WWW
February 04, 2014, 09:32:12 PM
 #225

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.

Tipjars: BTC 1TipsGocnz2N5qgAm9f7JLrsMqkb3oXe2 LTC LTipsVC7XaFy9M6Zaf1aGGe8w8xVUeWFvR | My Bitcoin Note Generator | Pool Auto-Switchers: zpool MiningPoolHub NiceHash
Bitgem Resources: Pool Explorer Paper Wallet
tfbpa
Newbie
*
Offline Offline

Activity: 47
Merit: 0


View Profile
February 09, 2014, 05:03:58 AM
 #226

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.
Wayne187
Newbie
*
Offline Offline

Activity: 14
Merit: 0


View Profile
March 12, 2014, 03:00:30 AM
Last edit: March 13, 2014, 07:18:20 PM by Wayne187
 #227

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

Activity: 98
Merit: 10


View Profile
March 25, 2014, 09:09:29 PM
 #228

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
jmlindn
Newbie
*
Offline Offline

Activity: 28
Merit: 0


View Profile
March 29, 2014, 10:37:54 AM
 #229

Looks neat, will try whenever I get home.
_Crash_
Full Member
***
Offline Offline

Activity: 133
Merit: 100


View Profile
March 31, 2014, 04:55:24 PM
 #230

I tried but it says the config file' syntax is old or outdated then immediately closes.

MiningSpace.net - MULTI-COIN / MULTI-POOL :: Miners Paid TX Fees! :: Europe :: Most Profitable Pool! :: Gigabit Connectivity :: 0% Fee!
salfter
Hero Member
*****
Offline Offline

Activity: 651
Merit: 501


My PGP Key: 92C7689C


View Profile WWW
April 01, 2014, 10:39:21 PM
 #231

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

Tipjars: BTC 1TipsGocnz2N5qgAm9f7JLrsMqkb3oXe2 LTC LTipsVC7XaFy9M6Zaf1aGGe8w8xVUeWFvR | My Bitcoin Note Generator | Pool Auto-Switchers: zpool MiningPoolHub NiceHash
Bitgem Resources: Pool Explorer Paper Wallet
mhkso2
Member
**
Offline Offline

Activity: 98
Merit: 10


View Profile
April 14, 2014, 02:10:19 PM
 #232

so cryptoswitcher is like multipool but locally? What advantages does that have
Report to moderator 

nocroom
Sr. Member
****
Offline Offline

Activity: 280
Merit: 250


View Profile
September 13, 2014, 04:20:14 AM
 #233

any self hosted php/mysql script auto switcher i can use?

Check out this blog if you want free bitcoins https://bitcoinvest.cc/how-to-get-free-bitcoins-fast
geometric_series
Member
**
Offline Offline

Activity: 60
Merit: 10


View Profile
September 14, 2014, 06:08:13 PM
 #234

Can it mine coins that are not listed on exchange?

lakala
Member
**
Offline Offline

Activity: 98
Merit: 10


View Profile
September 27, 2014, 11:06:19 PM
 #235

Cryptsy changes the URL for their API.  I wonder if that needs to change.

BitNet(VPNCOIN)第二论赠币:VikSbFcj3ogVByPajAYzvuAEoWir9shYNZ
Pages: « 1 2 3 4 5 6 7 8 9 10 11 [12]  All
  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!