Hi to All
I have made sgminer integration as custom miner everything work ok except miner statistic in HiveOS.
Miner show only total Mh/s but no separate GPU statistic !!!
h-stats.sh file:
#!/usr/bin/env bash
. /hive-config/wallet.conf
API_TIMEOUT="15"
stats_raw=`echo '{"command":"summary+devs"}' | nc -w $API_TIMEOUT localhost 4028`
if [[ $? -ne 0 || -z $stats_raw ]]; then
echo -e "${YELLOW}Failed to read $miner from localhost:4028${NOCOLOR}"
else
khs=`echo $stats_raw | jq '.["summary"][0]["SUMMARY"][0]["KHS 5s"]'`
stats=`echo $stats_raw | jq '{khs: [.devs[0].DEVS[]."KHS 5s"], temp: [.devs[0].DEVS[].Temperature], \
fan: [.devs[0].DEVS[]."Fan Percent"], uptime: .summary[0].SUMMARY[0].Elapsed, algo: "'$CUSTOM_ALGO'"}'`
fi
[[ -z $khs ]] && khs=0
[[ -z $stats ]] && stats="null"
HiveOS command: agent-screen show statistic, but in RIG page only total Mh/s:
Wed Oct 10 13:48:59 EEST 2018
Hashrate custom 51940 kH/s
{"method":"stats","jsonrpc":"2.0","id":0,"params":{"rig_id":"*****","passwd":"*******","miner":"custom","meta":{"custom":{"coin":"GEEK"}},"miner_stats":{"khs":[8616,8594,9213,8693,8578,8686],"temp":[62,61,62,62,62,62],"fan":[65,80,100,80,61,85],"uptime":92128,"algo":"geek"},"total_khs":"51940","temp":["62","61","62","62","62","62"],"fan":["65","80","100","80","61","85"],"power":["111","117","132","107","105","107"],"df":"429G","mem":[3897,733],"cpuavg":[0.14,0.1,0.09]}}
OK
Wthat I do wrong ???
Link to custom sgminer GeekCash custom miner for HiveOS 2.0