Post
Topic
Board Mining (Altcoins)
Re: Megaminer 6.0b1 - Multi pool / Multi Algo launcher
by
tutulfo
on 22/02/2018, 18:30:02 UTC
@tutulfo , is there any chance to make the script to take the api infro from WTM from http://whattomine.com/calculators.json and not from http://whattomine.com/coins.json. Cons.json are only the coins listed in the main page , on calculators.json there way more coins like lux and bsd which algos are not listed on the main page.


Test last wtm pool file from master branch  Wink

It looks the same... with coins.json . I dont think will work with manually added pool with LUX or BSD fro example...


Now is getting all active coins from http://whattomine.com/coins.json, before was 55 from main page, now are 55 from main page and 44 from coins.json.

Can you give me a hand here, I made a custom pool ps1 for GBX/Altminer based on flypool.ps1

Code:
param(
    [Parameter(Mandatory = $true)]
    [String]$Querymode = $null ,
    [Parameter(Mandatory = $false)]
    [pscustomobject]$Info
    )

#. .\..\Include.ps1

$Name = (Get-Item $script:MyInvocation.MyCommand.Path).BaseName
$ActiveOnManualMode    = $true
$ActiveOnAutomaticMode = $false
$ActiveOnAutomatic24hMode = $false
$AbbName = 'GBXA'
$WalletMode = "NONE"
$Result = @()
$RewardType='PPLS'




#****************************************************************************************************************************************************************************************
#****************************************************************************************************************************************************************************************
#****************************************************************************************************************************************************************************************

if ($Querymode -eq "info"){
    $Result = [PSCustomObject]@{
                    Disclaimer = "No registration, No autoexchange"
                    ActiveOnManualMode=$ActiveOnManualMode 
                    ActiveOnAutomaticMode=$ActiveOnAutomaticMode
                    ActiveOnAutomatic24hMode=$ActiveOnAutomatic24hMode
                    ApiData = $True
                    AbbName=$AbbName
                    WalletMode=$WalletMode
                    RewardType=$RewardType
                         }
    }




               


#****************************************************************************************************************************************************************************************
#****************************************************************************************************************************************************************************************
#****************************************************************************************************************************************************************************************
   
if (($Querymode -eq "core" ) -or ($Querymode -eq "Menu")){

        $Pools=@()
        $Pools +=[pscustomobject]@{"Symbol"="GBX"; "algo"="Neoscrypt";"port"=10000;"coin"="GBXCoin";"location"="US";"server"="eu1.altminer.net";PoolWorkers =20}
        $Pools +=[pscustomobject]@{"Symbol"="GBX"; "algo"="Neoscrypt";"port"=10000;"coin"="GBXCoin";"location"="ASIA";"server"="eu1.altminer.net"}
        $Pools +=[pscustomobject]@{"Symbol"="GBX"; "algo"="Neoscrypt";"port"=10000;"coin"="GBXCoin";"location"="EUROPE";"server"="eu1.altminer.net"}

     


        $Pools |  ForEach-Object {

                    $Flypool_Algorithm = get_algo_unified_name $_.algo
                    $Flypool_coin =  get_coin_unified_name $_.coin
                    $Flypool_symbol = $_.Symbol
               

                    $Result+=[PSCustomObject]@{
                                Algorithm     = $Flypool_Algorithm
                                Info          = $Flypool_coin
                                Price         = $null
                                Price24h      = $null
                                Protocol      = "stratum+tcp"
                                Host          = $_.server
                                Port          = $_.port
                                User          = $CoinsWallets.get_item($Flypool_symbol)
                                Pass          = "x"
                                Location      = $_.location
                                SSL           = $false
                                Symbol        = $Flypool_Symbol
                                AbbName       = $AbbName
                                ActiveOnManualMode    = $ActiveOnManualMode
                                ActiveOnAutomaticMode = $ActiveOnAutomaticMode
                                PoolWorkers   = $_.Workers
                                PoolHashRate  = $null
                                Blocks_24h    = $null
                                WalletMode    = $WalletMode
                                PoolName = $Name
                                RewardType=$RewardType
                                }
                       
               
                }

 
    }


#****************************************************************************************************************************************************************************************
#****************************************************************************************************************************************************************************************
#****************************************************************************************************************************************************************************************

    $Result |ConvertTo-Json | Set-Content $info.SharedFile
    remove-variable Result
   

I added GBX address and WHATTOMINEPOOLORDER in the config, changed the @@MINWORKERS to 0.

And when i start the bat file and choose manual i see my pool file nad it runs just fine. But when i choose Auto or Auto24 and select whattomine it says: "NO POOLS!....retry in 10 sec --- REMEMBER, IF YOUR ARE MINING ON ANONYMOUS WITHOUT AUTOEXCHANGE POOLS LIKE YIIMP, NANOPOOL, ETC. YOU MUST SET WALLET FOR AT LEAST ONE POOL COIN IN CONFIG.TXT"



Change this variables to true at start of new pool file

$ActiveOnAutomaticMode = $false
$ActiveOnAutomatic24hMode = $false

If you dont want to change @@minworkers add this

        $Pools +=[pscustomobject]@{"Symbol"="GBX"; "algo"="Neoscrypt";"port"=10000;"coin"="GBXCoin";"location"="US";"server"="eu1.altminer.net";"PoolWorkers" =20}