czpechy / claymore-api
Get your miner stats from Claymore Dual Miner
Installs: 96
Dependents: 0
Suggesters: 0
Security: 0
Stars: 9
Watchers: 1
Forks: 1
Open Issues: 3
pkg:composer/czpechy/claymore-api
Requires
- php: >=5.4.0
Requires (Dev)
- phpunit/phpunit: ~4.0
- tracy/tracy: v2.3.12
README
ClaymoreJsonPHP
Get JSON stats from Claymore Dual Miner
Install with composer
$ composer require czpechy/claymore-api
How to use
$host = '192.168.1.1:3333'; // IP address & port for your miner (black console claymore response) $client = new \czPechy\Claymore\Client($host); echo $client->getJson(); // or $client->getData() for object
Result
{
"version": "10.0 - ETH",
"runtime": {
"minutes": 1332,
"start": "2018-01-16 20:49:41"
},
"eth": {
"hashrate": 115156,
"shares": {
"accepted": 873,
"rejected": 0
}
},
"dcr": {
"hashrate": 0,
"shares": {
"accepted": 0,
"rejected": 0
}
},
"pool": "eth-eu1.nanopool.org:9999",
"gpus": [
{
"title":"GPU0",
"name":"GeForce GTX 1070 Ti, 8192 MB available, 19 compute units, capability: 6.1",
"hashrate": {
"eth": 28735,
"dcr": null
},
"temp": 66,
"fan": 77,
"shares": 30
},
{
"title": "GPU1",
"name":"GeForce GTX 1070 Ti, 8192 MB available, 19 compute units, capability: 6.1",
"hashrate": {
"eth": 28814,
"dcr": null
},
"temp": 77,
"fan": 60,
"shares": 30
},
{
"title": "GPU2",
"name":"GeForce GTX 1070 Ti, 8192 MB available, 19 compute units, capability: 6.1",
"hashrate": {
"eth": 28816,
"dcr": null
},
"temp": 60,
"fan": 71,
"shares": 30
},
{
"title": "GPU3",
"name":"GeForce GTX 1070 Ti, 8192 MB available, 19 compute units, capability: 6.1",
"hashrate": {
"eth": 28790,
"dcr": null
},
"temp": 71,
"fan": 45,
"shares": 30
}
]
}
Donate me <3
ETH: 0x7D771A56735500f76af15F589155BDC91613D4aB
UBIQ: 0xAC08C7B9F06EFb42a603d7222c359e0fF54e0a13