Post
Topic
Board Mining (Altcoins)
Re: NEW VERSION - RIG-MONITOR v2.0
by
iLLNiSS
on 15/05/2018, 00:05:00 UTC
I need a few more days. Unlike claymore the output from PhoenixMiner is not consistent e.g. most of the last paragraph does not include all the info. So I have to modified the regexs and logic.

Yeah the output on refresh doesn't list current reported hashrate at the end (refresh is the equivalent of hitting 's' in the console of the miner). However, the reported GPU hashrate and shares do show in the log every 5 seconds. If you pull the data at an interval greater than 5 seconds you should be able to grep the gpu reported hashrate and shares 10 or so lines up.

Alternatively, JSONRPC works if you script it into your code. It is universal between Phoenix and Claymore so it should keep your code small as there would be no need to have different code for each miner. This can be achieved with netcat:

Code:
echo '{"id":0,"jsonrpc":"2.0","method":"miner_getstat1","psw":"remote_monitor_password"}' | netcat MINERIP MINERPORT

If no password is used in the remote miner, you can remove the password and leave the psw in:
Code:
echo '{"id":0,"jsonrpc":"2.0","method":"miner_getstat1","psw":""}' | netcat MINERIP MINERPORT

And the result from PhoenixMiner is:
Code:
{"id":0,"jsonrpc":"2.0","result":["PM 2.9e - ETH", "210", "61831;75;0", "31883;29948", "0;0;0", "off;off", "65;0;60;39", "eth-us-east1.nanopool.org:9999", "0;0;0;0"]}

A legend of what the data is:
Code:
"PM 2.9e - ETH" miner version.
""210" running time, in minutes.
"61831;75;0" total ETH hashrate in H/s, number of ETH shares, number of ETH rejected shares.
"31883;29948" detailed ETH hashrate for all GPUs. (there are 2 on this output)
"0;0;0" total DCR hashrate in H/s, number of DCR shares, number of DCR rejected shares.
"off;off" detailed DCR hashrate for all GPUs.
"65;0;60;39" Temperature and Fan speed(%) pairs for all GPUs.
"eth-us-east1.nanopool.org:9999" current mining pool. For dual mode, there will be two pools here.
"0;0;0;0" number of ETH invalid shares, number of ETH pool switches, number of DCR invalid shares, number of DCR pool switches.