ethereumclassic / explorer

EthereumClassic Block Explorer
MIT License
263 stars 252 forks source link

Visualizing Stats & Data #2

Closed elaineo closed 8 years ago

elaineo commented 8 years ago

Feel free to add requests, etc

elaineo commented 8 years ago

Thread on API endpoints for mining pool data (this is more a note to myself, the server should probably fetch and store these).

https://www.reddit.com/r/EthereumClassic/comments/4w0flf/request_for_api_endpoint_info_for_etc_mining_pools/

kimisan commented 8 years ago

ok , http://www.epool.io/api/stats this api is good, I will keep push it data to my mondodb server , hour to hour. Now I start to design hash rate chart.

kimisan commented 8 years ago

Hi @elaineo , sorry for that, for the http://www.epool.io/api/stats , this is not a standard api, it wrapped with HTML... Can you give me a api about ETC hashrate ?

matthewjamesr commented 8 years ago

@kimisan @elaineo I found that Minergate (I use their pools for mining for ease of use) has a API that will provide a lot good information.

You will use the get blockchain info method by calling https://api.minergate.com/1.0/etc/status.

instantHashrate is the object containing the current hashrate for ETC at time of request. May want to use a asycnh function to dynamically call/update the frontend.

kimisan commented 8 years ago

@matthewjamesr Wow! it worked ! Thanks!

kimisan commented 8 years ago

The ETC hashrate chart is finished. Please see the index.html inside the D3 folder.

elaineo commented 8 years ago

Also I can provide this data for you, but maybe we can make it look like a graph? https://etherchain.org/statistics/miners

kimisan commented 8 years ago

no problem , ^^

elaineo commented 8 years ago

I added a link to your chart! it's under stats/hashrate.

Couple of questions -- the chart doesn't load unless I hit "reload". What function are you calling to initialize the chart? I'll move it to the controller.

Also -- can the Hashrate be displayed in GH/s? so there are not so many 000,000's ;)

kimisan commented 8 years ago

Wow, I understand why. At the first time, the chart is showed, because the bundle_hashrate.js is called, it will append D3.js chart into svg (#hashrate).

When you move/click to other pages, the D3.js chart content is cleaned. You need to recall bundle_hashrate.js again, to append D3.js chart into svg (#hashrate).

However, for future developing, now I am working on wrapped function, you can move it to the controller easily.

displayed in GH/s? --> No problem

elaineo commented 8 years ago

Sounds good!

On Sun, Aug 7, 2016 at 12:53 AM, Kimi Sian-yu Chen <notifications@github.com

wrote:

Wow, I understand why. At the first time, the chart is showed, because the bundle_hashrate.js is called, it will append D3.js chart into svg (#hashrate).

When you move/click to other pages, the D3.js chart content is cleaned. You need to recall bundle_hashrate.js again, to append D3.js chart into svg (#hashrate).

However, for future developing, now I am working on wrapped function, you can move it to the controller easily.

displayed in GH/s? --> No problem

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/ethereumproject/explorer/issues/2#issuecomment-238069175, or mute the thread https://github.com/notifications/unsubscribe-auth/ACPZr0uqVdG75ib9nouunMh_9MvBbl-Zks5qdY71gaJpZM4JcIfM .

kimisan commented 8 years ago
  1. add a new function, call_hashrate_chart() to append D3.js chart into #hashrate svg
  2. modify the 780G --> 780GH/s
kimisan commented 8 years ago

@elaineo By the way, I start a discussion at https://redd.it/4xu1ql I think the http://fork.ethstats.net/ treemap, i can make a better version for ETC , but need your api support. Another way, for World map is also a very good idea.

elaineo commented 8 years ago

@kimisan Awesome! Let me know what data you need!

matthewjamesr commented 8 years ago

@elaineo @kimisan Not sure who worked on the hashrate/difficulty component, but it's functionality is intermittent. Is this an issue for anyone else?

elaineo commented 8 years ago

@matthewjamesr thanks, i restarted the block-grabber on unforked.info. Looks like it's ok on etherhub.io -- have you seen it down on that server?

matthewjamesr commented 8 years ago

@elaineo Yes, I have and still currently see it down on both hosts.

kimisan commented 8 years ago

Production: etherhub.io

OK

Staging server: unforked.info

Failed

matthewjamesr commented 8 years ago

I confirm the same.

kimisan commented 8 years ago

For Miner hash rate distribution, now is finished. Please check #42 I will keep maintain and update new function in the future.

kimisan commented 8 years ago

@elaineo @matthewjamesr @whatisgravity Since the hash rate distribution is finished, I am considering to make a new chart. Could you please give me some advice?

elaineo commented 8 years ago

@kimisan - we could ask reddit again :) One thing people have asked for is a hashrate chart for the open-mining-pool (https://github.com/elaineo/open-ethereum-pool). It's not totally related, but we could show hashrate-per-miner

kimisan commented 8 years ago

@elaineo haha,ok! For the open-mining-pool , i am not very familiar with ember. But I can help with the d3.js charts portion like explorer, What do you think ?

elaineo commented 8 years ago

sounds good!

On Wed, Aug 31, 2016 at 8:56 AM, Kimi Sian-yu Chen <notifications@github.com

wrote:

@elaineo https://github.com/elaineo haha,ok! For the open-mining-pool , i am not very familiar with ember. But I can help with the d3.js charts portion like explorer, What do you think ?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/ethereumproject/explorer/issues/2#issuecomment-243810837, or mute the thread https://github.com/notifications/unsubscribe-auth/ACPZryg5Hdbsb9Zn4APtOy1VUKKmuhKZks5qlaQpgaJpZM4JcIfM .

kimisan commented 8 years ago

Good! Let's get started! :smile:

elaineo commented 8 years ago

Okay, I'll ask reddit too :)

edit: oh, looks like you already did. Thanks!