Here is My WhatToMine Auto Switch forked from damNmad smartminer
It will check the coins you want to mine then based on your cards and your own url mine the top coin if difficulty low and profit is high
These are the files:
WTM_AUTO_SWITCH
WTM_AUTO_SWITCH.py
Put both in /home/m1/
Edit /home/m1/1bash and add :
# WTM AUTO SWITCH SETTINGS# remember to disable Parallax MODE (_Parallax_MODE="NO")
WTM_AUTO_SWITCH="YES"
WTM_AUTO_SWITCH_SYNC_INTERVAL="3" # Time to sync with WTM for best coin
#WTM_AUTO_SWITCH_URL="FOR NOW EDIT IT IN WTM_AUTO_SWITCH.py
#WTM_AUTO_SWITCH_COINS=" FOR NOW EDIT IT IN WTM_AUTO_SWITCH.py > includeTags = [ 'ZEC', 'ZEN', 'ZCL', 'SIB' , 'LBC' ]
Edit /home/m1/3main and add these lines somewhere after Maxximus007_AUTO_TEMPERATURE_CONTROL ( easier to find "SALFTER_NICEHASH_PROFIT_SWITCHING" and add before it:
if [ $WTM_AUTO_SWITCH == "YES" ]
then
HCD='/home/m1/WTM_AUTO_SWITCH'
running=$(ps -ef | awk '$NF~"WTM_AUTO_SWITCH" {print $2}')
if [ "$running" == "" ]
then
guake -n $HCD -r WTM_AUTO_SWITCH -e "bash /home/m1/WTM_AUTO_SWITCH"
running=""
fi
fi
Install requests python module with :
sudo apt install python-requests
Go to whattomine select your cards, hash rate, power.
You can also select to mine base on current, 24 hour, 3 day or a week profit and difficulty.
Dont forget to choose same for both profit and difficulty or it will give wrong results.
Click calculate, then add .json to coins at the begining of the address after you click calculate!!!
From:
https://whattomine.com/coins?utf8=✓&adapt_q_280x=0....
https://whattomine.com/coins.json?utf8=✓&adapt_q_280x=0&adapt_q_380=0&adapt_q_fury=0&adapt_q
Copy the whole address and paste it to WTM_AUTO_SWITCH.py replace the default address:
data = requests.get("https://whattomine.com/coins.json");
includeTags = [ 'ZEC', 'ZEN', 'ZCL', 'SIB' , 'LBC' ]
Now you can start wtm auto switch with
bash WTM_AUTO_SWITCH &
P.S
Need help to improve the WTM_AUTO_SWITCH.py script, if any one willing to help please let me know.
I'm excited for this!
When I run it, I'm getting an error: ValueError: No JSON object could be decoded
cat: /home/m1/top_coin: No such file or directory
screen killed (pid 15856)
screen killed (pid 15857)
It looks like it's trying to find a file that doesn't exist: TOP_COIN=$(cat /home/m1/top_coin). There is no "top_coin" file in home/m1. Is it supposed to create one?
Are you sure you put both in /home/m1/ ?
WTM_AUTO_SWITCH
WTM_AUTO_SWITCH.py
Also did you change the link and add .json to link ?
First run may gives error, let it go for 2nd cycle and it should be ok,