Let me preface this by saying I have very little powershell experience....
I would like to be able to execute a .bat file whenever nemo launches a new Algo... In an ideal world this .bat would be specific to each algo, not necessarily the miner. IE skunk starts running and I would like skunk.bat to also execute at the same time.
I've managed this by copying the files in /miners and only having one miner commented per miner file, then appened the top of .ps file to launch the respective batch file. This all works and I can launch the .bat file this way and the miner runs. But it seems to break the benchmarking function -- Which isn't a huge deal. I could fill out the information manually into the hashrate.txt files. The larger issue is it seems to break the algo-switching which leaves me dead in the water... For example of the ps script for the miner...
C:\Users\***\Desktop\test\NemosMiner-v2.4.1\OC\blake2s.bat
.\Include.ps1
$Path = ".\Bin\NVIDIA-TPruvot\ccminer.exe"
$Uri = "https://github.com/nemosminer/tpruvot-ccminer/releases/download/v2.2-tpruvot/ccminer-x86-2.2.7z"
$Commands = [PSCustomObject]@{
#"bitcore" = " -d $SelGPUCC --api-remote" #Bitcore
#"jha" = " -d $SelGPUCC" #Jha
"blake2s" = " -d $SelGPUCC" #Blake2s
#"blakecoin" = " -d $SelGPUCC" #Blakecoin
#"vanilla" = "" #BlakeVanilla
#"cryptonight" = " -d $SelGPUCC" #Cryptonight
#"decred" = "" #Decred
#"equihash" = "" #Equihash
#"ethash" = "" #Ethash
#"groestl" = "" #Groestl
#"hmq1725" = " -d $SelGPUCC" #hmq1725
#"keccak" = "" #Keccak
#"lbry" = " -d $SelGPUCC --api-remote" #Lbry
#"lyra2v2" = "" #Lyra2RE2
#"lyra2z" = " -d $SelGPUCC" #Lyra2z
#"myr-gr" = "" #MyriadGroestl
#"neoscrypt" = " -d $SelGPUCC" #NeoScrypt
#"nist5" = "" #Nist5
#"pascal" = "" #Pascal
#"qubit" = "" #Qubit
#"scrypt" = "" #Scrypt
#"sia" = "" #Sia
#"sib" = "" #Sib
#"skein" = "" #Skein
#"skunk" = " -i 23.4 -d $SelGPUCC --api-remote" #Skunk
#"timetravel" = " -d $SelGPUCC" #Timetravel
#"tribus" = " -d $SelGPUCC" #Tribus
#"x11" = "" #X11
#"veltor" = "" #Veltor
#"x11evo" = " -d $SelGPUCC" #X11evo
#"x17" = " -d $SelGPUCC" #X17
#"yescrypt" = "" #Yescrypt
}
$Name = (Get-Item $script:MyInvocation.MyCommand.Path).BaseName
$Commands | Get-Member -MemberType NoteProperty | Select -ExpandProperty Name | ForEach {
[PSCustomObject]@{
Type = "NVIDIA"
Path = $Path
Arguments = "-a $_ -o stratum+tcp://$($Pools.(Get-Algorithm($_)).Host):$($Pools.(Get-Algorithm($_)).Port) -u $($Pools.(Get-Algorithm($_)).User) -p $($Pools.(Get-Algorithm($_)).Pass)$($Commands.$_)"
HashRates = [PSCustomObject]@{(Get-Algorithm($_)) = $Stats."$($Name)_$(Get-Algorithm($_))_HashRate".Week}
API = "Ccminer"
Port = 4068
Wrap = $false
URI = $Uri
}
}
In the log it points to...
Loading miners..
PS>TerminatingError(Compare-Object): "Cannot bind argument to parameter 'DifferenceObject' because it is null."
Compare-Object : Cannot bind argument to parameter 'DifferenceObject' because it is null.
At C:\Users\***\Desktop\test\NemosMiner-v2.4.1\NemosMiner-v2.4.1.ps1:110 char:53
+ Where {$Type.Count -eq 0 -or (Compare $Type $_.Type -IncludeE ...
+ ~~~~~~~
+ CategoryInfo : InvalidData: (:) [Compare-Object], ParameterBindingValidationException
+ FullyQualifiedErrorId :
ParameterArgumentValidationErrorNullNotAllowed,Microsoft.PowerShell.Commands.CompareObjectCommand
Compare-Object : Cannot bind argument to parameter 'DifferenceObject' because it is null.
At C:\Users\***\Desktop\test\NemosMiner-v2.4.1\NemosMiner-v2.4.1.ps1:110 char:53
+ Where {$Type.Count -eq 0 -or (Compare $Type $_.Type -IncludeE ...
+ ~~~~~~~
+ CategoryInfo : InvalidData: (:) [Compare-Object], ParameterBindingValidationException
+ FullyQualifiedErrorId : ParameterArgumentValidationErrorNullNotAllowed,Microsoft.PowerShell.Commands.CompareObje
ctCommand
PS>TerminatingError(Compare-Object): "Cannot bind argument to parameter 'DifferenceObject' because it is null."
Compare-Object : Cannot bind argument to parameter 'DifferenceObject' because it is null.
At C:\Users\***\Desktop\test\NemosMiner-v2.4.1\NemosMiner-v2.4.1.ps1:110 char:53
+ Where {$Type.Count -eq 0 -or (Compare $Type $_.Type -IncludeE ...
+ ~~~~~~~
+ CategoryInfo : InvalidData: (:) [Compare-Object], ParameterBindingValidationException
+ FullyQualifiedErrorId :
ParameterArgumentValidationErrorNullNotAllowed,Microsoft.PowerShell.Commands.CompareObjectCommand
Compare-Object : Cannot bind argument to parameter 'DifferenceObject' because it is null.
At C:\Users\***\Desktop\test\NemosMiner-v2.4.1\NemosMiner-v2.4.1.ps1:110 char:53
+ Where {$Type.Count -eq 0 -or (Compare $Type $_.Type -IncludeE ...
+ ~~~~~~~
+ CategoryInfo : InvalidData: (:) [Compare-Object], ParameterBindingValidationException
+ FullyQualifiedErrorId : ParameterArgumentValidationErrorNullNotAllowed,Microsoft.PowerShell.Commands.CompareObje
ctCommand
Any guidance that could be given would be greatly appreciated.. Thanks!