How can I grab from monero pool my own hashrate speed? its dynamic page so I need some help:) I would like to create my own chart for my speed of hashrate when is up or down. Any idea?
2 Answers
Go to your pools config file ../config.js i.e. moneropool.com/config.js
Get the your pools api variable: var api="https://api.moneropool.com" i.e. api.moneropool.com
to get pool stats add "/stats" to the api url i.e. api.moneropool.com/stats
to get your stats add "/stats_address" and send parameters longpool and address i.e. https://api.moneropool.com/stats_address?longpool=false&address=YOURADDRESS
- 21
- 2
If you are mining on a pool that uses the node-cryptonote-pool software, the pool uses a publicly available API. So you could do the same. Here's where the call happens: https://github.com/zone117x/node-cryptonote-pool/blob/da62fd8393434baa74260c6f085456730073444d/website_example/pages/home.html#L374
You would need to set api and address to your pool and address. Most pools have a config.js file like this one: https://moneropool.com/config.js. That file shows your pool's api address.
- 3,747
- 1
- 11
- 30