Activating the API
The parameter “APIPORT” : <somePortNumer> controls the activation of the lolMiner API. When a
port numer > 0 is set the miner will try to open the selected port and the mining rig will be able to
accept connections on this port.
When connecting, lolMiner returns current mining statistics in JSON format. For example:
{
"Software": "lolMiner 0.4",
"Startup": "2018-07-22 22:08:37 ",
"Coin": "MinexCoin (MNX)",
"Algorithm": "Equihash 96.5",
"LastUpdate(5s)": "22:33:46 ",
"LastUpdate(60s)": "22:32:55 ",
"GPU0": {
"Name": "AMD Radeon (TM) RX 480 Graphics",
"Speed(5s)": "13468.8252",
"Speed(60s)": "13429.5117"
},
"GPU1": {
"Name": "Radeon RX 580 Series",
"Speed(5s)": "11253.1973",
"Speed(60s)": "11262.5537"
}
}
Trouble-Shooting:
If lolMiner is not allowed to open the port there will be a hint “access denied” on startup. The
mining process itself is not affected by this, but the API will not work. We recomment trying an
other port, best in the 4 digit range.
Modify the Statistics Output
All parameters described in this section can be seen in the EXAMPLE_BTG profile in the shipped
user_config.json.
With the parameters “SHORTSTATS” : <number> and “LONGSTATS” : <number> you can modify
the two statistic interval length. The number should be an integer and the values will be handled as
seconds. Setting one or both values to 0 will deactivate the corresponding statistics print as well in
console as in the API.
The parameter “DIGITS” : <number> can be used to fix the sol/s output of a GPU to a fixed number
of digits after the decimal delimiter. For example “DIGITS” : 0 will chop of all digits after the decimal
delimiter. The default for this parameter is 1.
The parameter “TIMEPRINT”:1 or -timeprint=1 will activate the current daytime to be printed in the
command-line console at each statistics output.
The parameter “SHORTACCEPT”:1 or -shotaccept=1 will replace the “submitting share / share
accepted” message pair by * symbols at the short statistics interval output. Every star stands for an
accepted share.
Chosing new locations for the config file and the kernel directiory
A new config file name can only be chosen by command line parameter -usercfg=<pathToFile>,
replacing the ./user_config.json. The path can be absolute or relative to the current execution
directory.