Population Statistics Website

Forum for off topic and general discussion.

Population Statistics Website

Postby Darkside » Thu Jun 06, 2013 6:12 pm

Greetings,

I am creating a new dedicated thread for my web site which handles the gathering and compiling of population data from the 3 Salem servers as well as HnH and displays the data in graphs.

So, what's it do exactly?

I have a cron job on my web host which runs every 15 minutes and scrapes the server stats off the Salem server status page and the HnH portal page and records them to a MySQL database.

Then I write sql scripts which pull the data in desired format and pass the compiled data to the php jp graph library to create nice looking graphs

Currently I run the sql and compile the graph per request but I plan to produce images on those 15 minute intervals when I scrape the data instead to reduce the unnecessary repeated processing.

Okay, show me some graphs!

Here is a main page showing the three main graphs for Salem:

http://www.webatrocity.com/salem/poptrack.php

The first graph shows population in the last 24 hours across all 3 servers where the data collected from every 15-minute interval scrape is plotted. The right side of the graph is the most recent data collected. The number on the x-axis is the hour in 24-hour format of the Greenwich Meantime timezone.

The second graph shows population in the last week, where each hour of data is averaged and plotted on the graph. The data flows from oldest on the left to newest on the right.

The third graph shows population in the last month, where all the data from a full day is averaged to a single number and then plotted to the graph. Such a daily average will be most indicative of any long term trend in the population of the server.

Anything for HnH or comparing Salem to HnH?

Yes, I have a few HnH graphs available separately for now:

http://www.webatrocity.com/salem/hnh_24hour.php
This one is the past 24 hour data graph and has the same exact setup as the 24-hour salem graph described above

http://www.webatrocity.com/salem/hnh_1week.php
This is the past week data graph for HnH and has the same exact setup as the past week salem graph described above

http://www.webatrocity.com/salem/hnh_1month.php
This is the past month data graph for HnH and has the same exact setup as the past month salem graph described above

http://www.webatrocity.com/salem/hnh_vs ... 24hour.php
This one takes the total of Salem's server pop from all 3 servers and compares it to the pop of HnH's single server, in the last 24 hours.

Your feedback

Feel free to ask any questions on these graphs or how I compile the data or to offer up any suggestions in this thread.

Please refrain from going into debates on Salem vs. HnH in this thread, try to keep it to discussion about the gathering, compiling and display of the data or the web site in general.

Thanks!
Last edited by Darkside on Wed Jun 12, 2013 8:40 pm, edited 3 times in total.
User avatar
Darkside
 
Posts: 501
Joined: Sun Mar 03, 2013 5:29 pm
Location: Roanoke, NY

Re: Population Statistics Website

Postby sabinati » Thu Jun 06, 2013 6:36 pm

can you do week and month graphs for haven and haven vs salem, or do you not have enough datapoints yet?
Admin for Salem Wiki • Make suggestions or complaints in the Wiki Suggestion thread
User avatar
sabinati
 
Posts: 1135
Joined: Wed Aug 01, 2012 1:48 am

Re: Population Statistics Website

Postby Darkside » Thu Jun 06, 2013 6:39 pm

sabinati wrote:can you do week and month graphs for haven and haven vs salem, or do you not have enough datapoints yet?


I do have enough for a week for sure, will work on that next
User avatar
Darkside
 
Posts: 501
Joined: Sun Mar 03, 2013 5:29 pm
Location: Roanoke, NY

Re: Population Statistics Website

Postby Greb » Thu Jun 06, 2013 7:04 pm

Very nice graphs, great job! :)
User avatar
Greb
 
Posts: 259
Joined: Thu Dec 20, 2012 5:56 pm
Location: Estland

Re: Population Statistics Website

Postby colesie » Thu Jun 06, 2013 7:19 pm

Sticky
Beep Boop Bop
My builds (Under Occupation)
Image
Have you given haven a try? ◕‿◕
User avatar
colesie
 
Posts: 4753
Joined: Thu Oct 04, 2012 6:20 pm
Location: Ontario, Canada

Re: Population Statistics Website

Postby Mereni » Thu Jun 06, 2013 8:05 pm

It'll be interesting to see how the populations change now with the way things are changing in development.
User avatar
Mereni
 
Posts: 1839
Joined: Fri Dec 14, 2012 8:26 am

Re: Population Statistics Website

Postby uncleseano » Thu Jun 06, 2013 8:25 pm

ah effin dirty nerd *****, fantastic work
User avatar
uncleseano
 
Posts: 260
Joined: Tue Dec 11, 2012 6:04 pm

Re: Population Statistics Website

Postby Droj » Thu Jun 06, 2013 10:43 pm

very nice & useful! :)
***** the Treaty!
loftar wrote:I not like, you not get
User avatar
Droj
 
Posts: 1192
Joined: Wed Aug 01, 2012 1:23 am
Location: England

Re: Population Statistics Website

Postby Dallane » Thu Jun 06, 2013 10:54 pm

glorious!
Please click this link for a better salem forum experience

TotalyMeow wrote: Claeyt's perspective of Salem and what it's about is very different from the devs and in many cases is completely the opposite of what we believe.
User avatar
Dallane
Moderator
 
Posts: 15195
Joined: Wed Aug 01, 2012 2:00 pm

Re: Population Statistics Website

Postby Claeyt » Fri Jun 07, 2013 4:14 am

Fantastic work Darkside, nice job, thank you

Works with all browsers perfectly except chrome. The page still crashes to "broken image link" after full download with chrome, like I pm'd you about before, but you can just hit "stop loading" and it'll stop and show all the graphs perfectly. The HnH one's work perfectly on Chrome.

Is that big drop on HnH at hr 17 in the initial 24hr graph a lag spike or is it Colesie logging off his 500 bots and going to bed? :lol:
Last edited by Claeyt on Fri Jun 07, 2013 4:17 am, edited 1 time in total.
jorb wrote:(jwhitehorn) you are an ungrateful, spoiled child


As the river rolled over the cliffs, my own laughing joy was drowned out by the roaring deluge of the water. The great cataract of Darwoth's Tears fell over and over endlessly.
User avatar
Claeyt
 
Posts: 5166
Joined: Mon Dec 24, 2012 4:02 pm

Next

Return to City upon a Hill

Who is online

Users browsing this forum: No registered users and 9 guests