Hi papami,
I downloaded the new fullzero image (1-3) and applied your scripts that recently post here and I can not get your WTM_SWITCH script to run correctly.
I simply added my list of coins like this in the 1bash:
WTM_AUTO_SWITCH_COINS="[ 'ZEC', 'ETH', 'VTC', 'HUSH','ZEN', 'ZCL', 'FTC', 'KMD','ETC', ]"
changed the time between queries to 9 minutes:
WTM_AUTO_SWITCH_SYNC_INTERVAL = "9" # Time to sync with WTM for best coins
Added my URL from whattomine.com like this:
WTM_AUTO_SWITCH_URL = "https://whattomine.com/coins.json?utf8=%E2%9C%93&adapt_q_280x=0&adapt_q_380=0&adapt_q_fury=0&adapt_q_470=0&adapt_q_480=3&adapt_q_570=0&adapt_q_580=0&adapt_q_750Ti=0&adapt_q_10606=0&adapt_q_1070=2&adapt_1070=true&adapt_q_1080=0&adapt_q_1080Ti=0ð= true & factor% 5Beth_hr% 5D = 60.0 & factor% 5Beth_p% 5D = 240.0 & grof = true & factor% 5Bgro_hr% 5D = 71.0 & factor% 5Bgro_p% 5D = 260.0 & x11gf = true & factor% 5Bx11g_hr% 5D = 23.0 & factor% 5Bx11g_p% 5D = 240.0 & cn = true & factor% 5Bcn_hr% 5D = 1000.0 & factor% 5Bcn_p% 5D = 200.0 & eq = true & factor% 5Beq_hr% 5D = 860.0 & factor% 5Beq_p% 5D = 240.0 & Ist = true & factor% 5Blrev2_hr% 5D = 71000.0 & factor% 5Blrev2_p% 5D = 260.0 & ns = true & factor% 5Bns_hr% 5D = 2100.0 & factor% 5Bns_p% 5D = 310.0 & lbry = true & factor% 5Blbry_hr% 5D = 540.0 & factor% 5Blbry_p% 5D = 240.0 & bk2bf = true & factor% 5Bbk2b_hr% 5D = 3200.0 & factor% 5Bbk2b_p% 5D = 240.0 & BK14 = true & factor% 5Bbk14_hr% 5D = 5000.0 & factor% 5Bbk14_p% 5D = 250.0 & no = true & factor% 5Bpas_hr% 5D = 1880.0 & factor% 5Bpas_p% 5D = 240.0 & skh = true & factor% 5Bskh_hr% 5D = 53.0 & factor% 5Bskh_p% 5D = 240.0 & factor% 5Bl2z_hr% 5D = 420.0 & f actor% 5Bl2z_p% 5D = 300.0 & Factor% 5Bcost% 5D = 0196 & sort = Revenue & volume = 0 & back = current & Factor% 5Bexchanges% 5D% 5B% 5D = & Factor% 5Bexchanges% 5D% 5B% 5D = bittrex & Factor% 5Bexchanges% 5D% 5B% 5D = bleutrade & factor% 5Bexchanges% 5D% 5B% 5D = bter & factor% 5Bexchanges% 5D% 5B% 5D = c_cex & factor% 5Bexchanges% 5D% 5B% 5D = cryptopia & factor% 5Bexchanges% 5D% 5B% 5D = hitbtc & factor% 5Bexchanges% 5D% 5B% 5D = poloniex & 5Bexchanges factor%% 5D% 5B% 5D = & yobit dataset = Main & commit = Calculate "
Then I saw in your files 1bash-edit and 3main-edit that it was necessary to add things in these two files,
then I added this in the 1bash:
# Mininumum difference in percentage to switch too many switches
WTM_MIN_DIFFERENCE = "10"
and that in the 3rd:
if [$ PAPAMPI_WTM_AUTO_SWITCH == "YES"]
Then
Bitcoin = "theground"
# Creating a log file to record corner switch
LOG_FILE = "/ home / m1 / 8_wtmautoswitchlog"
if [-e "$ LOG_FILE"]; Then
#Limit the logfile, just keep the last 2K
LASTLOG = $ (tail -n 1K $ LOG_FILE)
echo "$ LASTLOG"
echo ""
fi
echo "LAUNCHING: PAPAMPI_WTM_AUTO_SWITCH"
echo ""
# = $ WTM_URL WTM_AUTO_SWITCH_URL
# = $ WTM_COINS WTM_AUTO_SWITCH_COINS
# = $ WTM_MIN_DIFFERENCE WTM_MIN_DIFFERENCE "
#export WTM_URL
#export WTM_COINS
#export WTM_MIN_DIFFERENCE "
cat << EOF> /home/m1/WTM.json
{
"WTM_URL": "$ WTM_AUTO_SWITCH_URL",
"WTM_COINS": "$ WTM_AUTO_SWITCH_COINS",
"WTM_MIN_DIFFERENCE": "$ WTM_MIN_DIFFERENCE"
}
EOF
HCD = '/ home / m1 / PAPAMPI_WTM'
running = $ (ps -ef | awk '$ NF ~ "PAPAMPI_WTM" {print $ 2}')
if ["$ running" == ""]
Then
guake -n $ HCD -r PAPAMPI_WTM_AUTO_SWITCH -e "bash / home / m1 / PAPAMPI_WTM"
Running = ""
fi
fi
at the location you indicate.
But first I had a line error 19 script WTM_AUTO_SWITCH, which I have corrected by going into the file wtm.json where I modified line 3 to put back the list of coins that I had already listed in 1bash:
"WTM_COINS": "ZEC; ETH; VTC; HUSH; ZEN; ZCL; FTC; KMD; ETC";
Now I still have an error at line 81 of WTM_AUTO_SWITCH:
python WTM_AUTO_SWITCH
Currently mining coin: ZEC, profit: 265
New profits
Traceback (most recent call last):
File "WTM_AUTO_SWITCH", line 81, in
if newProfits [0] [0] == topCoin [0]:
IndexError: list index out of range
and I do not understand what I see in the files WTM_top_coin and WTM_current_Profit because these selections of coins do not match mine and the scrambled does not correspond to what I can read on the site WTM
So I go back with my nvOC v19 image and mining on MPH.
Time of testing and mining loss: 3h.
can be that the stable and definitive version is not yet ready for a beginner like me ... or so I need more explanations on the operating mode, yet I thought I read your posts about this script and put the updates correctly.
So either the operating mode is too vague and then you have to reduce the number of intermediate stages so that limit the possibilities of errors, or there are still bugs in the scripts.
No doubt the last post of sharing your files updated has misled me too ... I should have done a backup before overwriting those in the image.