项目作者: czPechy

项目描述 :
Get JSON stats from Claymore Dual Miner
高级语言: PHP
项目地址: git://github.com/czPechy/ClaymoreJsonPHP.git
创建时间: 2018-01-17T17:23:32Z
项目社区:https://github.com/czPechy/ClaymoreJsonPHP

开源协议:Other

下载


GitHub version
travis-ci.com
codecov.io

ClaymoreJsonPHP

Get JSON stats from Claymore Dual Miner

Install with composer

  1. $ composer require czpechy/claymore-api

How to use

  1. $host = '192.168.1.1:3333'; // IP address & port for your miner (black console claymore response)
  2. $client = new \czPechy\Claymore\Client($host);
  3. echo $client->getJson(); // or $client->getData() for object

Result

  1. {
  2. "version": "10.0 - ETH",
  3. "runtime": {
  4. "minutes": 1332,
  5. "start": "2018-01-16 20:49:41"
  6. },
  7. "eth": {
  8. "hashrate": 115156,
  9. "shares": {
  10. "accepted": 873,
  11. "rejected": 0
  12. }
  13. },
  14. "dcr": {
  15. "hashrate": 0,
  16. "shares": {
  17. "accepted": 0,
  18. "rejected": 0
  19. }
  20. },
  21. "pool": "eth-eu1.nanopool.org:9999",
  22. "gpus": [
  23. {
  24. "title":"GPU0",
  25. "name":"GeForce GTX 1070 Ti, 8192 MB available, 19 compute units, capability: 6.1",
  26. "hashrate": {
  27. "eth": 28735,
  28. "dcr": null
  29. },
  30. "temp": 66,
  31. "fan": 77,
  32. "shares": 30
  33. },
  34. {
  35. "title": "GPU1",
  36. "name":"GeForce GTX 1070 Ti, 8192 MB available, 19 compute units, capability: 6.1",
  37. "hashrate": {
  38. "eth": 28814,
  39. "dcr": null
  40. },
  41. "temp": 77,
  42. "fan": 60,
  43. "shares": 30
  44. },
  45. {
  46. "title": "GPU2",
  47. "name":"GeForce GTX 1070 Ti, 8192 MB available, 19 compute units, capability: 6.1",
  48. "hashrate": {
  49. "eth": 28816,
  50. "dcr": null
  51. },
  52. "temp": 60,
  53. "fan": 71,
  54. "shares": 30
  55. },
  56. {
  57. "title": "GPU3",
  58. "name":"GeForce GTX 1070 Ti, 8192 MB available, 19 compute units, capability: 6.1",
  59. "hashrate": {
  60. "eth": 28790,
  61. "dcr": null
  62. },
  63. "temp": 71,
  64. "fan": 45,
  65. "shares": 30
  66. }
  67. ]
  68. }

Donate me <3

  1. ETH: 0x7D771A56735500f76af15F589155BDC91613D4aB
  2. UBIQ: 0xAC08C7B9F06EFb42a603d7222c359e0fF54e0a13