nicehash / excavator

NiceHash's proprietary low-level CUDA miner
https://www.nicehash.com
53 stars 19 forks source link

How to edit commands when running NiceHash Miner? #288

Closed kugaevsky closed 3 years ago

kugaevsky commented 3 years ago

cmd_1.json resets and drops any changes when Excavator starts from Nicehash application. How could I apply all my API commands without using HTTP API?

nicehashdev commented 3 years ago

Unfortunately you cannot adjust commands NHM is giving Excavator (yet). I suggest you open this ticket in NHM repo.

Alternatively, if you restrict yourself to daggerhashimoto mining only, you may try out following experimental wrapper: https://github.com/nicehash/excavator/tree/master/experimental

It has watchdog (restarts Excavator if it crashes...) and Windows autostart service. Additionally, you may apply overclocks and no 3rd party tool is needed to take care of it. It is a pretty solid mining solution that takes care of everything.

kugaevsky commented 3 years ago

Thanks for the great advice, but I've solved this issue another way. Probably someone will find it useful.

I've put the file with custom commands to Excavator directory in Nicehash plugins and added custom arguments to Extra launch parameters in Benchmark tab of Nicehash application. With -c commands.json -wp 18000 parameters Excavator started from Nicehash loads my OC profile and perfectly tunes with octune.html.

kugaevsky commented 3 years ago

I believe that moving custom command-line arguments for miners/plugins to a more obvious place will make Nicehash UI more user friendly.

nicehashdev commented 3 years ago

Okay great! I will leave this issue open for others, if anyone wants to do the same.

ben1628 commented 3 years ago

-c commands.json -wp 18000 <

How does your commands.json looks like?

{"time":10,"commands":[ {"id":1,"method":"device.set.oc_profile","params":["0","-150","1300","130","50"]}, {"id":1,"method":"worker.reset","params":["0"]} ]}

Try to add this but I cannot get passed

=========================== www.nicehash.com ========================= Excavator v1.6.2a GPU Miner for NiceHash. Copyright (C) 2021 NiceHash. All rights reserved. =========================== www.nicehash.com =========================

Build number: 514 Provided startup commandline: -p 4000 -c cmd_1.json -m -qx -c commands.json

[16:50:19][0x00001c18][info] Log started, build v514 [16:50:19][0x00001c18][info] core | Found (0) CUDA device: GeForce RTX 3060 Ti [16:50:19][0x00001c18][info] api | Listening on 127.0.0.1:4000 [16:50:19][0x00001c18][info] core | Initialized!

ben1628 commented 3 years ago

okay, looks like I can generate the commands.json from the octune.html.

ben1628 commented 3 years ago

still get a problem, when I add -c command.json, it just freeze at core initialized.