Bitcoin Forum
May 07, 2024, 06:08:19 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: What is this data?  (Read 1058 times)
check_status (OP)
Full Member
***
Offline Offline

Activity: 196
Merit: 100


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
1715105299
Hero Member
*
Offline Offline

Posts: 1715105299

View Profile Personal Message (Offline)

Ignore
1715105299
Reply with quote  #2

1715105299
Report to moderator
TalkImg was created especially for hosting images on bitcointalk.org: try it next time you want to post an image
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
yogi
Legendary
*
Offline Offline

Activity: 947
Merit: 1042


Hamster ate my bitcoin


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

http://www.json.org/

check_status (OP)
Full Member
***
Offline Offline

Activity: 196
Merit: 100


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
Legendary
*
Offline Offline

Activity: 2058
Merit: 1431



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.

Adblock for annoying signature ads | Enhanced Merit UI
check_status (OP)
Full Member
***
Offline Offline

Activity: 196
Merit: 100


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
unfinishe
Full Member
***
Offline Offline

Activity: 126
Merit: 100



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

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:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!