Pages:
Author

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

legendary
Activity: 1372
Merit: 1014
This is way too much trouble

I can't understand why there are so many pools, and compare sites, why is there not a pool that simply collects SHA256 and Scrypt cycles, and does all the magic in the background, and pays you in a destination crypto?  Huh
full member
Activity: 201
Merit: 100
Well I just gave up getting this to work entirely as it was never really designed for windows in the first place.  If you are on windows and are still looking for a profitability switching program MultiMiner from https://bitcointalksearch.org/topic/multiminer-any-miner-any-where-on-any-device-free-open-source-cross-platform-248173 works flawlessly with a few less options and only takes about 5 mins to setup on windows. 
member
Activity: 66
Merit: 10
It seems Cryptsy is moving some coins to secondary exchage (I imagine that is coin/LTC) so that would mean CS wouldn't support them, right?

If so, here are some of the coins they're listing, to give a heads up:

    DBL/LTC
    DVC/LTC
    EZC/LTC
    GLD/LTC
    JKC/LTC
    MEM/LTC
    RYC/LTC

Here's the message that appears when I try to exchange, let's say, MEM:

MemeCoin market will be moving from Primary to Secondary. For the next few days, both markets will be open, then MEM/BTC market will close
full member
Activity: 201
Merit: 100
Hey guys I have been trying to get this running for a few hours now and I can't for the life of me figure out what I am missing here.  I keep getting this error message:

Microsoft Windows [Version 6.2.9200]
(c) 2012 Microsoft Corporation. All rights reserved.

What version of Windows is this...Windows 8?  Windows 7 SP1 is 6.1.7601.

Quote
C:\WINDOWS\system32>cd c:\cryptoswitcher

I had a bunch of problems migrating from WinXP to Win7 with the way Win7 screws with file permissions.  I've never used Win8, but I wouldn't be surprised to find it's broken in the same way.  Directories created in the root directory are created with permissions for nobody.  Try this:

1) Open an Explorer window to C:\. Create a new directory.
2) Open a Cygwin shell prompt. Type this:
Code:
cd /cygdrive/c/ && ls -l | grep foo

Permissions should look something like "drwxr-xr-x+" if it had been properly created.  Instead, you'll probably see "d---------+", which means nobody can access it (or files within it).  Check permissions on the files in your CryptoSwitcher directory...I wouldn't be surprised if
Code:
ls -l /cygdrive/c/cryptoswitcher
reveals that none of the files are readable. When CryptoSwitcher then tries to load its config file, it's told it can't, which is why you're getting that error.

I'd recommend running CryptoSwitcher (and your miner) from "C:\Program Files (x86)" (or "C:\Program Files" on a 32-bit system).  Open a Cygwin administrator prompt (find the Cygwin Terminal shortcut in the start menu, right-click it, and click "Run as administrator") and use this to move it and (hopefully) fix permissions to something useful:

Code:
cd c:
mv cryptoswitcher Program\ Files\ \(x86\)/CryptoSwitcher
chmod 755 Program\ Files\ \(x86\)/CryptoSwitcher
chmod 644 Program\ Files\ \(x86\)/CryptoSwitcher/*



After I tried your steps and it still didnt work on my windows 8 machine I decided to start from scratch on a fresh windows 7 install on another machine.  All went great until I got to the part of starting cryptoswitcher and guess what... I got the same error.  Now i really have no idea what's going on since it should not be permission issues since I am using a fresh install of windows 7 and it comes up with the exact same error.  I am basically giving up on the hope that I will be able to get this to work.  It does seem like an awesome idea but it looks like i'll be sticking to just switching all my miners over manually  Cry
newbie
Activity: 20
Merit: 0
stupid question but you have the .conf file in the same directory as the .py file right? Also make sure the extension is .conf and not .config

I thought the extension was .config, not .conf.
full member
Activity: 201
Merit: 100
It is windows 8, upgraded from 7.  It was like you guessed, the permissions were not readable.  I did all the steps that you listed and it did move the file but I am still getting the same error.  I have been trying to modify that line of text you had me try to show the permissions of the cryptoswitcher folder to check if the permissions were changed when it was moved but I can't get it right.
hero member
Activity: 651
Merit: 501
My PGP Key: 92C7689C
Hey guys I have been trying to get this running for a few hours now and I can't for the life of me figure out what I am missing here.  I keep getting this error message:

Microsoft Windows [Version 6.2.9200]
(c) 2012 Microsoft Corporation. All rights reserved.

What version of Windows is this...Windows 8?  Windows 7 SP1 is 6.1.7601.

Quote
C:\WINDOWS\system32>cd c:\cryptoswitcher

I had a bunch of problems migrating from WinXP to Win7 with the way Win7 screws with file permissions.  I've never used Win8, but I wouldn't be surprised to find it's broken in the same way.  Directories created in the root directory are created with permissions for nobody.  Try this:

1) Open an Explorer window to C:\. Create a new directory.
2) Open a Cygwin shell prompt. Type this:
Code:
cd /cygdrive/c/ && ls -l | grep foo

Permissions should look something like "drwxr-xr-x+" if it had been properly created.  Instead, you'll probably see "d---------+", which means nobody can access it (or files within it).  Check permissions on the files in your CryptoSwitcher directory...I wouldn't be surprised if
Code:
ls -l /cygdrive/c/cryptoswitcher
reveals that none of the files are readable. When CryptoSwitcher then tries to load its config file, it's told it can't, which is why you're getting that error.

I'd recommend running CryptoSwitcher (and your miner) from "C:\Program Files (x86)" (or "C:\Program Files" on a 32-bit system).  Open a Cygwin administrator prompt (find the Cygwin Terminal shortcut in the start menu, right-click it, and click "Run as administrator") and use this to move it and (hopefully) fix permissions to something useful:

Code:
cd c:
mv cryptoswitcher Program\ Files\ \(x86\)/CryptoSwitcher
chmod 755 Program\ Files\ \(x86\)/CryptoSwitcher
chmod 644 Program\ Files\ \(x86\)/CryptoSwitcher/*

full member
Activity: 201
Merit: 100
newbie
Activity: 19
Merit: 0
full member
Activity: 201
Merit: 100
full member
Activity: 201
Merit: 100
Hey guys I have been trying to get this running for a few hours now and I can't for the life of me figure out what I am missing here.  I keep getting this error message:

Microsoft Windows [Version 6.2.9200]
(c) 2012 Microsoft Corporation. All rights reserved.

C:\WINDOWS\system32>cd c:\cryptoswitcher

c:\CryptoSwitcher>python cryptoswitcher.py
ERROR: Cannot read source from config file.

c:\CryptoSwitcher>cryptoswitcher.py
ERROR: Cannot read source from config file.

c:\CryptoSwitcher>

I followed the steps in this thread and have everything installed correctly to my knowledge.  Here is my cryptoswitcher.config file:

Code:
# -------------------------------------------------#
# Cryptocurrency mining switcher config file       #
# TipJar (BTC): 1NhathL6LpcgofDnHELSS6Hej6kU9xrVgp #
# Author: area                                     #
# -------------------------------------------------#


################################################################################
[MineCoins]

# Enable the coins you want to mine here.
mineAMC = False
mineARG = False
mineBQC = False
mineBTB = False
mineBTC = False
mineCNC = False
mineDGC = True
mineELC = False
mineEZC = False
mineFRC = False
mineFRK = False
mineFST = False
mineFTC = True
mineHYC = False
mineLKY = True
mineLTC = True
mineMEM = True
mineMNC = False
mineNBL = False
mineNVC = False
minePPC = False
minePXC = True
mineTRC = False
mineWDC = True

# Listed against LTC only (currently unusable by CS)
mineDBL = False
mineGLD = False
mineJKC = False
mineRYC = False

# No data available from sources
mineBTE = False
minePWC = False
mineMEC = False
mineYAC = False

# BTC Merged mining coins. Will be added to Bitcoin profitibilty when enabled.
mineDVC = False
mineIXC = False
mineNMC = False

# Enable to mine vanity addresses.
mineVANITY = False


################################################################################
[Scripts]

# You should have scripts that stop all other forms of mining, set all necesary
#  environment variables, and start mining the appropriate coin.

# Examples included are 'litecoin.sh.sample' and 'bitcoin.sh.sample'.
# Any coins you aren't mining you can just leave blank.
# For Windows you can use bat-files, eg "BTCscript = bitcoin.bat".
AMCscript =
ARGscript =
BQCscript =
BTBscript =
BTCscript = bitcoin.bat
BTEscript =
CNCscript =
DBLscript =
DGCscript = dgc-ftc-skyhighmining.bat
ELCscript =
EZCscript =
FRCscript =
FRKscript =
FSTscript =
FTCscript = ftc-skyhighmining.bat
GLDscript =
HYCscript =
JKCscript =
LKYscript = lcky-ltc-skyhighmining.bat
LTCscript = ltc-skyhighmining.bat
MECscript = mec-ltc-skyhighmining.bat
MEMscript = meme-ftc-skyhighmining.bat
MNCscript =
NBLscript =
NVCscript =
PPCscript =
PWCscript =
PXCscript = phnx-ltc-skyhighmining.bat
RYCscript =
TRCscript =
WDCscript = wdc-ftc-skyhighmining.bat
YACscript =

VANITYscript =


################################################################################
[Fees]

# Set specific fees for every coin (in percent).
# The fee simply adds to the profitability before calculating the most profitable coin.
# Negative values are also allowed, they increase the profitability.
feeAMC = 0
feeARG = 0
feeBQC = 0
feeBTB = 0
feeBTC = 1.5
feeBTE = 0
feeCNC = 0
feeDBL = 0
feeDGC = 15
feeELC = 0
feeEZC = 0
feeFRC = 0
feeFRK = 0
feeFST = 0
feeFTC = 5
feeGLD = 0
feeHYC = 0
feeJKC = 0
feeLKY = 5
feeLTC = 5
feeMEC = 5
feeMEM = 5
feeMNC = 0
feeNBL = 0
feeNVC = 0
feePPC = 0
feePWC = 0
feePXC = 5
feeRYC = 0
feeTRC = 0
feeWDC = 15
feeYAC = 0


################################################################################
[Data-Source]

# Source list for determining mining profitability.
# The first entry in the source list has the highest priority and is used first.
# If the site is down or a certain coin is not found the next source is used.
# Available sources: cryptoswitcher, coinotron, coinchoose, dustcoin
source=coinchoose, coinotron, dustcoin, cryptoswitcher

# If using CryptoSwitcher as a source, list markets to source prices from.
# Difficulty is acquired from coinchoose and cryptocoinexplorer.
# Available sources: btce, bter, vircurex, cryptsy
source_cryptoswitcher=cryptsy, btce, bter, vircurex

# Hashrates used in calculations when using CryptoSwitcher as a source.
# Measured in hashes per second. Can be acquired by testmining with cgminer.
# sha256 is used by Bitcoin etc. while scrypt is used by Litecoin etc.
hashrate_sha256=5800000
hashrate_scrypt=5800000


################################################################################
[Misc]

# Idle Time (in minutes) between two checks of coin profitability.
idletime = 5

# Gigahash per second you can output doing normal BTC mining.
ghashpersec = 0.7

# Gigakeys per second you can output doing vanity address mining.
gkeypersec = 0.05

# Trade multiplier - if not 1, sells not at the highest bid, but at this
#  multiple of it. 
tradeMultiplier = 1.01


################################################################################
[Sell]

# If you want to sell your coins ASAP after mining, enable an exchange here.
# This will automatically sell flagged coins for BTC ONLY.

# BTC-e
enableBTCE = False
# You'll need to configure your API key, secret, and a nonce in "key.sample".
# Rename this file to "key".

# VirCurEx
enableVircurex = False
vircurexUsername = VCEUSERNAME
vircurexSecret = APISECRET

# Cryptsy
enableCryptsy = True
cryptsyPublicKey =
cryptsyPrivateKey =

# Enable the coins you want to sell here.
sellAMC = False
sellARG = False
sellBQC = False
sellBTB = False
sellBTE = False
sellCNC = False
sellDBL = False
sellDGC = True
sellELC = False
sellEZC = False
sellFRC = False
sellFRK = False
sellFST = False
sellFTC = False
sellGLD = False
sellHYC = False
sellJKC = False
sellLKY = True
sellLTC = False
sellMEC = True
sellMEM = True
sellMNC = False
sellNBL = False
sellNVC = False
sellPPC = False
sellPWC = False
sellPXC = True
sellRYC = False
sellTRC = False
sellWDC = True
sellYAC = False
mineDVC = False
mineIXC = False
mineNMC = False

I have all of those .bat files in my cgminer folder along with all of the cryptoswitcher items.  I am sure I am missing something simple I just can't figure it out.

If anybody has any ideas It would be greatly welcomed.
full member
Activity: 177
Merit: 100
I reckon you need to make your shell scripts executable? i.e. chmod +x pxc.sh
hero member
Activity: 651
Merit: 501
My PGP Key: 92C7689C
I am willing to pay a bounty for someone to send me an image of their BAMT miner with cryptoswitcher... PM me for more details!

The last time I looked into BAMT, wasn't it hopelessly out-of-date? It was last updated more than a year ago, and the site that hosted it is down.  You'd most likely need to update the ATI drivers and cgminer (at a minimum). If you're already doing that, it seems that starting with a newer base system and putting on the latest software would be the better way to go.

I'm somewhat partial to Gentoo. You can get a system running from a stage3 tarball fairly quickly, and about the only ebuilds you would need to add to start mining are ati-drivers and cgminer.  Portage has ati-drivers ebuilds available, and I have ebuilds for cgminer (and a bunch of other Bitcoin- and altcoin-related packages) at https://github.com/salfter/portage. (Portage also has cgminer ebuilds, but their latest is 2.7.4.  My newest is 3.3.1.)

That said, maybe there's an opportunity to start with something like the SystemRescueCD (a bootable Gentoo-based system you can put on recordable media or a USB flashstick) and make a BAMT replacement out of it.
hero member
Activity: 651
Merit: 501
My PGP Key: 92C7689C
That would be a short-term solution since my ip is dynamic as it is for most of the people, don´t think BigVern will whitelist an ip range so i can autotrade after my modem restarts and change my ip

The better long-term solution would be to remove the anti-DDoS protection from at least the API pages. Only users have access to them anyway, and if somebody is abusing the service, it should be easy to identify the perp and whack him with the banhammer. Unfortunately, there's not much I can do to work around it.
newbie
Activity: 11
Merit: 0
I've put a request in with Cryptsy support...for the time being, if you disable auto-trading with Cryptsy, CryptoSwitcher will continue to work.

BigVern asked me for my IP address so it could be whitelisted.  For those of you who are auto-trading through Cryptsy, I'd recommend sending a request to [email protected] that your public IP address be whitelisted.  Once that was done, CryptoSwitcher was back to business as usual.
That would be a short-term solution since my ip is dynamic as it is for most of the people, don´t think BigVern will whitelist an ip range so i can autotrade after my modem restarts and change my ip
hero member
Activity: 651
Merit: 501
My PGP Key: 92C7689C
I've put a request in with Cryptsy support...for the time being, if you disable auto-trading with Cryptsy, CryptoSwitcher will continue to work.

BigVern asked me for my IP address so it could be whitelisted.  For those of you who are auto-trading through Cryptsy, I'd recommend sending a request to [email protected] that your public IP address be whitelisted.  Once that was done, CryptoSwitcher was back to business as usual.
hero member
Activity: 651
Merit: 501
My PGP Key: 92C7689C
After Cryptsy DDoS i´m getting this error

  File "./PyCryptsy/PyCryptsy.py", line 106, in GetAvailableBalance
    r=self.Query("getinfo", {})
  File "./PyCryptsy/PyCryptsy.py", line 71, in Query
    raise Exception("unable to decode response")
Exception: unable to decode response

anybody else with the same problem?

When I first logged into Cryptsy after the DDoS, I was redirected to a page with a captcha. I'm guessing the same thing is happening with API access.

Yes, same problem  here

...and it's still there.  Trying to pull up Cryptsy with either Lynx or Links just comes back with an error from Incapsula.  "Protecting" an API URL with a captcha that can't be answered by services that use the API is a Bad Idea.  The mining rig running CryptoSwitcher is headless; getting a graphical browser running so I can answer the stupid captcha will entail installing NX, a window manager, and Firefox; that's going to take some time, and even after all that there's still no guarantee that CryptoSwitcher will work again.  Angry

I've put a request in with Cryptsy support:

Quote
Can Incapsula be set to not block API calls?  With the example code at https://www.cryptsy.com/pages/api, an exception is thrown:

Code:
PHP Fatal error:  Uncaught exception 'Exception' with message 'Invalid data received, please make sure connection is working and requested API exists' in /home/salfter/cryptsy-test.php:42
Stack trace:
#0 /home/salfter/cryptsy-test.php(46): api_query('getinfo')
#1 {main}
  thrown in /home/salfter/cryptsy-test.php on line 42

Fatal error: Uncaught exception 'Exception' with message 'Invalid data received, please make sure connection is working and requested API exists' in /home/salfter/cryptsy-test.php:42
Stack trace:
#0 /home/salfter/cryptsy-test.php(46): api_query('getinfo')
#1 {main}
  thrown in /home/salfter/cryptsy-test.php on line 42

This is what's being returned by Cryptsy on the API call:

Code:

It's also broken CryptoSwitcher as a consequence, if Cryptsy is enabled.

For the time being, if you disable auto-trading with Cryptsy, CryptoSwitcher will continue to work.
hero member
Activity: 490
Merit: 500
Yeah, Coinchoose just dropped over half the coins they were offering since this morning... need to pick a different provider because a lot of the coins that have even been on top the past few days, like Phenixcoin, Argentum, and others were deleted from coinchoose.

They'll come back. They get removed if the exchanges go down.

Is there a way to implement that in windows? Sorry I'm not good with creating batch files.

Also coinChoose has gotten rid of alot of coins? Can we use a different source for the data?

I am not a Windows man, I'm afraid.

Yes, it was the DDoS on the exchanges that removed the currencies as I couldn't get pricing.  All are back.
full member
Activity: 221
Merit: 100
After Cryptsy DDoS i´m getting this error

Traceback (most recent call last):
  File "C:\Mineria\CryptoSwitcher\cryptoSwitcher.py", line 600, in
    sellCoinCryptsy(abbreviation)
  File "C:\Mineria\CryptoSwitcher\cryptoSwitcher.py", line 226, in sellCoinCryptsy
    bal = acct.GetAvailableBalance(coin)
  File "./PyCryptsy/PyCryptsy.py", line 106, in GetAvailableBalance
    r=self.Query("getinfo", {})
  File "./PyCryptsy/PyCryptsy.py", line 71, in Query
    raise Exception("unable to decode response")
Exception: unable to decode response

anybody else with the same problem?

When I first logged into Cryptsy after the DDoS, I was redirected to a page with a captcha. I'm guessing the same thing is happening with API access.

Yes, same problem  here
hero member
Activity: 651
Merit: 501
My PGP Key: 92C7689C
After Cryptsy DDoS i´m getting this error

Traceback (most recent call last):
  File "C:\Mineria\CryptoSwitcher\cryptoSwitcher.py", line 600, in
    sellCoinCryptsy(abbreviation)
  File "C:\Mineria\CryptoSwitcher\cryptoSwitcher.py", line 226, in sellCoinCryptsy
    bal = acct.GetAvailableBalance(coin)
  File "./PyCryptsy/PyCryptsy.py", line 106, in GetAvailableBalance
    r=self.Query("getinfo", {})
  File "./PyCryptsy/PyCryptsy.py", line 71, in Query
    raise Exception("unable to decode response")
Exception: unable to decode response

anybody else with the same problem?

When I first logged into Cryptsy after the DDoS, I was redirected to a page with a captcha. I'm guessing the same thing is happening with API access.
Pages:
Jump to: