More
referral
Increase your income with Hive. Invite your friends and earn real cryptocurrency!

Autoswitch for NiceHash|Автосвитчер/автопереключатель для NiceHash

Нет не получилось. Сделал нового воркера и с нуля все настроил - то же самое, не работает ничего. При этом команда stat работает, доходность показывает

Автообновление до v. 3.3.5

  • Исправлен баг совместимости с релизом 0.6-150 HiveOS

Autoupdate to v. 3.3.5

  • Fix bug with latest HiveOS 0.6-150 release

На новом релизе все заработало

I have a similar error. thanks

There is an error connection to HiveOS API. My token and farm id is ok but there is error like this

Autoswitch: Authentication Token is wrong or HiveOS API has problems. Repeat in a 2 minute

Anyone can fix this problem?

Update to version 3.3.10

HiveOS API is not working correctly.
Authorization check does not work.
Added a temporary stub to solve the problem.

There will be no auto-update.
only manual update

curl https://raw.githubusercontent.com/lexandr0s/autoswitch/master/as-setup.sh | bash

Thanks for developing this, I’ve just installed it on my rig and its working great!

Just curious, what will happen post ETH merge if it can’t find a profitable algo? Does it stop mining on the rig? and then resume when something becomes profitable?

Thanks, it should be a great help after the merge.

for anyone setting it up, one of the things that took a while was setting up all the flightsheets :frowning:

Hive allows you to export and import flightsheets. This is a zip with all of mine to make it easier to get up and running. You need to replace the 0000000 value with the id for the niceshash wallet from hive (not your nicehash id)

You can change the miners to suit you better. Most of the miners are just placeholders since I need to fine-tune them and oc, but should work. I have both amd and nvidia, so some fs might have two miners. Some fs don’t have the correct setup for amd.

At least it should save you from setting all the fs from scratch

virus total review

There seems to be a problem with the way the electricity cost is calculated

----------------------------------------------------------------------------------------------------------                                    
          |          |          Revenue             |        | Pow cost|             Profit               |                                    
Algo      |   HR     |------------------------------| Pow (W)|         |----------------------------------|                                    
          |          | BTC/day | USD/day|  RUB/day  |        | BTC/day |   BTC/day  | USD/day |  RUB/day  |                                    
-----------------------------------------------------------------------------------------------------------                                    
Zelhash   |   366.00 | 0.00010 |   1.99 |    120.52 |   1150 | 0.00006 |    0.00004 |    0.79 |     48.21 |                                    
-----------------------------------------------------------------------------------------------------------                                    
Octopus   |   357.00 | 0.00009 |   1.79 |    108.47 |   1150 | 0.00006 |    0.00004 |    0.79 |     48.21 |                                    
-----------------------------------------------------------------------------------------------------------                                    
BeamV3    |   240.00 | 0.00010 |   1.99 |    120.52 |   1100 | 0.00005 |    0.00004 |    0.79 |     48.21 |                                    
-----------------------------------------------------------------------------------------------------------                                    
KawPow    |   209.00 | 0.00010 |   1.99 |    120.52 |   1275 | 0.00006 |    0.00004 |    0.79 |     48.21 |

Doing it by hand I find

|coing|electric cost|profit|
|BeamV3|1.056|0.934|
|KawPow|1.224|0.766|
|Octopus|1.104|0.686|
|Zelhash|1.104|0.886|

Guess using btc to calulate the numbers has too much rounding error for the current values

@lexandros

sorry for the flood lol thanks for all the effort in making this tool

The miner (not the rig) restarted a couple of times for no reason. It didn’t change algorithm. Seems the there was a command sent (ctrl-c), but couldn’t find anything that created that request.

Any ideas?

autoswitch log

20-09-2022 19:47:18 Switch to "KawPow" 

miner logs

[2022-09-20 20:11:59] Pool kawpow.auto.nicehash.com set new extranonce.                                                                                      
[2022-09-20 20:11:59] Pool kawpow.auto.nicehash.com received new job. (job_id: 0000000045230bd5, diff 0.113 / 486 MH)                                        
[2022-09-20 20:12:01] Ctrl-C pressed, exiting miner.
[2022-09-20 20:12:01] Shutting down...                                                                                                                       
[2022-09-20 20:12:01] Watchdog thread exiting.                                                                                                               
[2022-09-20 20:12:01] Watchdog script executor thread exiting.                                                                                               
[2022-09-20 20:12:01] GPU 0 thread exiting.                                                                                                                  
[2022-09-20 20:12:01] Successful clean shutdown.                                                                                                             


                                                                                                                                                             
20220920 20:11:59 Extranonce is set to: e25f5f                                                                                                               
20220920 20:11:59 New target is set to: 1.08 G                                                                                                               
20220920 20:11:59 kawpow epoch: 328, block: 2461281, period: 820427, diff: 1.08 G                                                                            
20220920 20:12:01 WARN: shutdown t-rex, signal [2] received                                                                                                  
20220920 20:12:01 Main loop finished. Cleaning up resources...                                                                                               
20220920 20:12:01 ApiServer: stopped listening on 127.0.0.1:4059                                                                                             
20220920 20:12:02 GPU #0: generating DAG 3.56 GB for epoch 328 ...                                                                                           
20220920 20:12:02 GPU #2: generating DAG 3.56 GB for epoch 328 ...                                                                                           
20220920 20:12:02 GPU #1: generating DAG 3.56 GB for epoch 328 ...                                                                                           
20220920 20:12:02 GPU #4: generating DAG 3.56 GB for epoch 328 ...                                                                                           
20220920 20:12:02 GPU #6: generating DAG 3.56 GB for epoch 328 ...                                                                                           
20220920 20:12:02 GPU #7: generating DAG 3.56 GB for epoch 328 ...                                                                                           
20220920 20:12:02 GPU #5: generating DAG 3.56 GB for epoch 328 ...                                                                                           
20220920 20:12:02 GPU #3: generating DAG 3.56 GB for epoch 328 ...                                                                                           
20220920 20:12:11 T-Rex finished.                                                                                                                            



I have the same problem. Miner restart after few minutes.

@lexandros

Are you switching the wallet for a dev fee? I noticed my wallet changing to something weird and might be a nicehash wallet

However, if it is you, you need to only switch the nicehash wallet and not all the wallets in /hive-config/wallet.conf

### FLIGHT SHEET "Autoswitch Zhash" ###                                                                                                  
                                                                                                                                         
# Miner miniz                                                                                                                            
MINIZ_ALGO="144,5"                                                                                                                       
MINIZ_TEMPLATE="34TJQUdMYzyV5GNLVFRpRRdFAbgLmVwJ3v.2842067"                                                                              
MINIZ_URL="zhash.auto.nicehash.com:9200"                                                                                                 
MINIZ_PASS="x"                                                                                                                           
MINIZ_TLS=""                                                                                                                             
MINIZ_USER_CONFIG='--pers auto                                                                                                           
-cd 3 4 5 6 7'                                                                                                                           
MINIZ_VER=""                                                                                                                             
                                                                                                                                         
# Miner teamredminer                                                                                                                     
TEAMREDMINER_ALGO="kawpow"                                                                                                               
TEAMREDMINER_ALGO2=""                                                                                                                    
TEAMREDMINER_TEMPLATE="34TJQUdMYzyV5GNLVFRpRRdFAbgLmVwJ3v.2842067"                                                                       
TEAMREDMINER_TEMPLATE2=""                                                                                                                
TEAMREDMINER_WORKER=""                                                                                                                   
TEAMREDMINER_WORKER2=""                                                                                                                  
TEAMREDMINER_URL="stratum+tcp://americas.kawpow.mining-dutch.nl:9985                                                                     
stratum+tcp://kawpow.mining-dutch.nl:9985"                                                                                               
TEAMREDMINER_URL2=""                                                                                                                     
TEAMREDMINER_PASS="d=188"                                                                                                                
TEAMREDMINER_PASS2=""                                                                                                                    
TEAMREDMINER_USER_CONFIG='--kernel_vm_mode=RR                                                                                            
--prog_hash_report                                                                                                                       
-d 0'                                                                                                                                    
TEAMREDMINER_USER_CONFIG2=''                                                                                                             
TEAMREDMINER_TLS=""                                                                                                                      
TEAMREDMINER_TLS2=""                                                                                                                     
TEAMREDMINER_VER=""                                                                                                                      
TEAMREDMINER_INTENSITY=""                                                                                                                
                                                                                                                                         
# Miner gminer                                                                                                                           
GMINER_ALGO="kawpow"                                                                                                                     
GMINER_TEMPLATE="34TJQUdMYzyV5GNLVFRpRRdFAbgLmVwJ3v.2842067"                                                                             
GMINER_HOST="americas.kawpow.mining-dutch.nl                                                                                             
kawpow.mining-dutch.nl"
GMINER_PORT="9985
9985"                                                                                                                                    
GMINER_PASS="d=188"                                                                                                                      
GMINER_TLS=""                                                                                                                            
GMINER_ALGO2=""                                                                                                                          
GMINER_TEMPLATE2=""                                                                                                                      
GMINER_HOST2=""                                                                                                                          
GMINER_PORT2=""                                                                                                                          
GMINER_PASS2=""                                                                                                                          
GMINER_TLS2=""                                                                                                                           
GMINER_INTENSITY=""                                                                                                                      
GMINER_USER_CONFIG='--devices 1'                                                                                                         
GMINER_VER=""                                                                                                                            
                                                                                                                                         
# Miner lolminer                                                                                                                         
LOLMINER_ALGO="ZEL"                                                                                                                      
LOLMINER_ALGO2=""                                                                                                                        
LOLMINER_TEMPLATE="34TJQUdMYzyV5GNLVFRpRRdFAbgLmVwJ3v.2842067"                                                                           
LOLMINER_TEMPLATE2=""                                                                                                                    
LOLMINER_WORKER=""                                                                                                                       
LOLMINER_WORKER2=""                                                                                                                      
LOLMINER_SERVER="us-flux.fluxpools.net                                                                                                   
eu-flux.fluxpools.net"                                                                                                                   
LOLMINER_SERVER2=""                                                                                                                      
LOLMINER_PORT="7001                                                                                                                      
7001"                                                                                                                                    
LOLMINER_PORT2=""                                                                                                                        
LOLMINER_PASS="x"                                                                                                                    
LOLMINER_PASS2=""                                                                                                                        
LOLMINER_TLS=""                                                                                                                          
LOLMINER_TLS2=""                                                                                                                         
LOLMINER_USER_CONFIG='--devices 2'                                                                                                       
LOLMINER_VER=""                                                                                                                          
                                                                                                                                         
# Miner bzminer                                                                                                                          
BZMINER_ALGO="kaspa"                                                                                                                     
BZMINER_ALGO2=""                                                                                                                         
BZMINER_TEMPLATE="34TJQUdMYzyV5GNLVFRpRRdFAbgLmVwJ3v.2842067"                                                                            
BZMINER_TEMPLATE2=""
BZMINER_WORKER=""                                                                                                                        
BZMINER_WORKER2=""                                                                                                                       
BZMINER_URL="us.acc-pool.pw:16061                                                                                                        
ca.acc-pool.pw:16061                                                                                                                     
eu1.acc-pool.pw:16061                                                                                                                    
eu2.acc-pool.pw:16061"                                                                                                                   
BZMINER_URL2=""                                                                                                                          
BZMINER_PASS=""                                                                                                                          
BZMINER_PASS2=""                                                                                                                         
BZMINER_DISABLE_GPUS="0-2,4-8"                                                                                                           
BZMINER_TLS="0"                                                                                                                          
BZMINER_TLS2=""                                                                                                                          
BZMINER_LHR=""                                                                                                                           
BZMINER_LHR2=""                                                                                                                          
BZMINER_INTENSITY=""                                                                                                                     
BZMINER_USER_CONFIG='"clear_log_file": false                                                                                             
"log_file_verbosity": 3                                                                                                                  
"hung_gpu_restart_bzminer": true                                                                                                         
"oc_lock_memory_clock": [810]'                                                                                                           
BZMINER_VER=""                                                                                                                           
                                                                                                                                                                                                                                                                                  
# Miner srbminer                                                                                                                         
SRBMINER_ALGO="randomepic"                                                                                                               
SRBMINER_TEMPLATE="34TJQUdMYzyV5GNLVFRpRRdFAbgLmVwJ3v.2842067"                                                                           
SRBMINER_WORKER=""                                                                                                                       
SRBMINER_URL="epic.ca.hashrate.to:4000                                                                                                   
epic.hashrate.to:4000"                                                                                                                   
SRBMINER_PASS="x"                                                                                                     
SRBMINER_TLS=""                                                                                                                          
SRBMINER_USER_CONFIG='--disable-gpu                                                                                                      
--cpu-threads 3                                                                                                                          
--keepalive true'                                                                                                                        
SRBMINER_ALGO2=""                                                                                                                        
SRBMINER_TEMPLATE2=""                                                                                                                    
SRBMINER_WORKER2=""                                                                                                                      
SRBMINER_URL2=""                                                                                                                         
SRBMINER_PASS2=""
SRBMINER_TLS2=""                                                                                                                         
SRBMINER_USER_CONFIG2=''                                                                                                                 
SRBMINER_VER=""                                                                                                                          
                                                                                                                                         
META='{"miniz":{"coin":"Nicehash-Zhash"},"teamredminer":{"coin":"RVN"},"gminer":{"coin":"RVN"},"lolminer":{"coin":"FLUX"},"bzminer":{"coi
n":"KAS"},"srbminer":{"coin":"EPIC"}}'                                                                                                   

@lexandros

Found out that 34TJQUdMYzyV5GNLVFRpRRdFAbgLmVwJ3v is indeed your wallet

$wald_new$walde_new | openssl enc -base64 -d)

Could you not switch to the fee wallet when mining etchash or ethash. Those algorithms only happen for a few minutes, and switching when doing these is no good for anyone. You just ramp the rig to start mining those and redo the same for the fee. So there is a lot of waste. Would be better if you could try to catch the rig when switching algorithms for you to start mining for the fee, even if earlier than 1800s

Also please don’t change the wallets for gpus not doing nicehash. It is very wasteful to have cards doing nothing for 2 minutes every half hour

Also, am I correct that you switch to the fee mining every 1800 seconds for 120s? That is 6.67% of fees.


Выяснил, что 34TJQUdMYzyV5GNLVFRpRRdFAbgLmVwJ3v действительно ваш кошелек

   $wald_new$walde_new | openssl enc -base64 -d)

Пожалуйста, не переключайтесь на комиссионный кошелек при майнинге etchash или ethash. Эти алгоритмы работают всего несколько минут, и никому не нужно переключаться во время их работы. Вы просто запускаете буровую установку, чтобы начать их добычу, и повторяете то же самое за определенную плату. Так что отходов много. Было бы лучше, если бы вы могли попробовать поймать ферму при переключении алгоритмов, чтобы начать майнить на платной основе, даже если до 1800-х годов

Также, пожалуйста, не меняйте кошельки GPU, которые не используют nicehash. Очень расточительно заставлять карты ничего не делать по 2 минуты каждые полчаса.

Кроме того, я прав, что вы переключаетесь на платный майнинг каждые 1800 секунд в течение 120 секунд? Это 6,67% сборов.


извините, гугл переводчик, лол

This is fantastic! The manager made it very simple as I already had flight sheets and overlocking profiles prepared for all my HiveOS rigs. Does anyone know a similar program or a way for it to run on a Windows PC? I’d like to keep using T-rex miner on my desktop but still have NiceHash profit switching between different algorithms. Right now I have .bat files that I manually run after looking up current profitability. Ideally something that simple that just selects between those batch files.

@lexandros thanks, just saw you updated the github to include some of the newer algos

Is there a problem with Autoswitch? I install today and input FARM_ID and TOKEN, but i get this message.
Autoswitch: Wrong answer from HiveOS API. Check FARM_ID and TOKEN variable in autoswitch.conf. Exit

Are you on a free account or paid?

I have two rigs and it is free. Is it the same as a free account?

API access is only available to paid tier accounts, you can enable this in the billing tab → paid features toggle.

You’ll be charged the standard rate based on how many gpus you have explained here: Prices and Packages