Bitcoin Forum
December 07, 2016, 08:39:27 AM *
News: To be able to use the next phase of the beta forum software, please ensure that your email address is correct/functional.
 
   Home   Help Search Donate Login Register  
Pages: [1]
  Print  
Author Topic: What is this data?  (Read 849 times)
check_status
Full Member
***
Offline Offline

Activity: 196


Web Dev, Db Admin, Computer Technician


View Profile
June 03, 2012, 02:47:17 PM
 #1

I retrieved data from here: http://p2pool.info/stats
Feel free to answer any questions or correct any incorrect assumptions.

What is this format known as?
{"rates":[[1312037400000,2],[Lots more stuff],[1338722700000,196]],"maxRate":468.2700000000,"maxUsers":244}

The red highlighted item below is the title of this data.
{"rates":[[1312037400000,2],[Lots more stuff],[1338722700000,196]],"maxRate":468.2700000000,"maxUsers":244}

These red highlighted items are start and end brackets that contain all of the data.
{"rates":[[1312037400000,2],[Lots more stuff],[1338722700000,196]],"maxRate":468.2700000000,"maxUsers":244}

What is the red data below? Hashrate? Users?
{"rates":[[1312037400000,2],[Lots more stuff],[1338722700000,196]],"maxRate":468.2700000000,"maxUsers":244}

What is the red data below? Date/timestamp?
{"rates":[[1312037400000,2],[Lots more stuff],[1338722700000,196]],"maxRate":468.2700000000,"maxUsers":244}

For Bitcoin to be a true global currency the value of BTC needs always to rise.
If BTC became the global currency & money supply = 100 Trillion then ⊅1.00 BTC = $4,761,904.76.
P2Pool Server List | How To's and Guides Mega List |  1EndfedSryGUZK9sPrdvxHntYzv2EBexGA
1481099967
Hero Member
*
Offline Offline

Posts: 1481099967

View Profile Personal Message (Offline)

Ignore
1481099967
Reply with quote  #2

1481099967
Report to moderator
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction. Advertise here.
1481099967
Hero Member
*
Offline Offline

Posts: 1481099967

View Profile Personal Message (Offline)

Ignore
1481099967
Reply with quote  #2

1481099967
Report to moderator
1481099967
Hero Member
*
Offline Offline

Posts: 1481099967

View Profile Personal Message (Offline)

Ignore
1481099967
Reply with quote  #2

1481099967
Report to moderator
1481099967
Hero Member
*
Offline Offline

Posts: 1481099967

View Profile Personal Message (Offline)

Ignore
1481099967
Reply with quote  #2

1481099967
Report to moderator
yogi
Legendary
*
Offline Offline

Activity: 947


Hamster ate my bitcoin


View Profile
June 03, 2012, 03:39:41 PM
 #2

http://www.json.org/

check_status
Full Member
***
Offline Offline

Activity: 196


Web Dev, Db Admin, Computer Technician


View Profile
June 03, 2012, 05:31:24 PM
 #3

Quote from: yogi

That was the first place I went to. The site is OK if you already have some kowledge, but the site sucks if you don't know any terms or structure, you don't know where to look to develop understanding.

http://www.youtube.com/watch?v=rncW-74VL7U
This video is 10x better when you don't have a clue.

What is this format known as?
{"rates":[[1312037400000,2],[Lots more stuff],[1338722700000,196]],"maxRate":468.2700000000,"maxUsers":244}

This is a JSON Object with an Array.

The red highlighted item below is the title of this data.
{"rates":[[1312037400000,2],[Lots more stuff],[1338722700000,196]],"maxRate":468.2700000000,"maxUsers":244}

This is a property; It's used to locate specific data you're interested in calling up.

These red highlighted items are start and end brackets that contain all of the data.
{"rates":[[1312037400000,2],[Lots more stuff],[1338722700000,196]],"maxRate":468.2700000000,"maxUsers":244}

Correct. (Yay me!)

What is the red data below? Hashrate? Users?
{"rates":[[1312037400000,2],[Lots more stuff],[1338722700000,196]],"maxRate":468.2700000000,"maxUsers":244}

What is the red data below? Date/timestamp?
{"rates":[[1312037400000,2],[Lots more stuff],[1338722700000,196]],"maxRate":468.2700000000,"maxUsers":244}

This is the data you will display or use to develop other information.

For Bitcoin to be a true global currency the value of BTC needs always to rise.
If BTC became the global currency & money supply = 100 Trillion then ⊅1.00 BTC = $4,761,904.76.
P2Pool Server List | How To's and Guides Mega List |  1EndfedSryGUZK9sPrdvxHntYzv2EBexGA
grue
Global Moderator
Legendary
*
Offline Offline

Activity: 1932



View Profile
June 03, 2012, 07:40:44 PM
 #4

Quote from: yogi

That was the first place I went to. The site is OK if you already have some kowledge, but the site sucks if you don't know any terms or structure, you don't know where to look to develop understanding.

http://www.youtube.com/watch?v=rncW-74VL7U
This video is 10x better when you don't have a clue.

What is this format known as?
{"rates":[[1312037400000,2],[Lots more stuff],[1338722700000,196]],"maxRate":468.2700000000,"maxUsers":244}

This is a JSON Object with an Array.

The red highlighted item below is the title of this data.
{"rates":[[1312037400000,2],[Lots more stuff],[1338722700000,196]],"maxRate":468.2700000000,"maxUsers":244}

This is a property; It's used to locate specific data you're interested in calling up.

These red highlighted items are start and end brackets that contain all of the data.
{"rates":[[1312037400000,2],[Lots more stuff],[1338722700000,196]],"maxRate":468.2700000000,"maxUsers":244}

Correct. (Yay me!)

What is the red data below? Hashrate? Users?
{"rates":[[1312037400000,2],[Lots more stuff],[1338722700000,196]],"maxRate":468.2700000000,"maxUsers":244}

What is the red data below? Date/timestamp?
{"rates":[[1312037400000,2],[Lots more stuff],[1338722700000,196]],"maxRate":468.2700000000,"maxUsers":244}

This is the data you will display or use to develop other information.
wait what? are you answering your own questions?

It is pitch black. You are likely to be eaten by a grue.

Tired of annoying signature ads? Ad block for signatures
check_status
Full Member
***
Offline Offline

Activity: 196


Web Dev, Db Admin, Computer Technician


View Profile
June 03, 2012, 07:55:51 PM
 #5

When I asked the questions, I didn't know the answers, but had been hunting them out. I got frustrated in my search and made the post. Sharing sometimes turns on my 'Aha lightbulb'.  Cheesy
There are still some unanswered questions.  Grin

For Bitcoin to be a true global currency the value of BTC needs always to rise.
If BTC became the global currency & money supply = 100 Trillion then ⊅1.00 BTC = $4,761,904.76.
P2Pool Server List | How To's and Guides Mega List |  1EndfedSryGUZK9sPrdvxHntYzv2EBexGA
gweedo
Legendary
*
Offline Offline

Activity: 1246


Java, PHP, HTML/CSS Programmer for Hire!


View Profile WWW
June 03, 2012, 07:58:02 PM
 #6


What is this format known as?
{"rates":[[1312037400000,2],[Lots more stuff],[1338722700000,196]],"maxRate":468.2700000000,"maxUsers":244}
[/quote]

that is actually a JSON array inside a json array js

Want to earn 2500 SATOSHIS per hour? Come Chat and Chill in https://goseemybits.com/lobby
unfinishe
Full Member
***
Offline Offline

Activity: 126



View Profile
June 03, 2012, 08:49:54 PM
 #7

Ok, so I think I figured out what the data is supposed to represent. By looking at the Javascript on the page, (in http://p2pool.info/scripts/p2pool.js, starting at line 422), you can see that it's calling /stats, and then using those results to set-up the chart on the front page. Basically, it's just a historical list of hash rates.

So, for each one of the entries (say [1338722700000,196]), the first value is a UNIX timestamp including milliseconds (so 1338722700000 translates to today), and the second is the hash rate in GH/s.

Check out the results from my Bitcoin Survey Project!
https://bitcointalk.org/index.php?topic=88927.0
Pages: [1]
  Print  
 
Jump to:  

Sponsored by , a Bitcoin-accepting VPN.
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!