Author

Topic: What is this data? (Read 1073 times)

full member
Activity: 126
Merit: 100
June 03, 2012, 03: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.
full member
Activity: 196
Merit: 100
Web Dev, Db Admin, Computer Technician
June 03, 2012, 02: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
legendary
Activity: 2058
Merit: 1452
June 03, 2012, 02:40:44 PM
#4
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?
full member
Activity: 196
Merit: 100
Web Dev, Db Admin, Computer Technician
June 03, 2012, 12:31:24 PM
#3
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.
legendary
Activity: 947
Merit: 1042
Hamster ate my bitcoin
June 03, 2012, 10:39:41 AM
#2
full member
Activity: 196
Merit: 100
Web Dev, Db Admin, Computer Technician
June 03, 2012, 09:47:17 AM
#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}
Jump to: