A tiny stats viewer

Share files with other Dawn of Light users

Moderator: Support Team

A tiny stats viewer

Postby Dre » Tue Dec 28, 2010 1:07 pm

Hey guys, I made a tiny stats viewer that uses ServerStats in the dol database so we can see quickly the server usage =)

Example (random data): http://virant.fr/~dre/test.php

File: see update post near the topic's end.
Last edited by Dre on Mon May 13, 2013 8:50 pm, edited 3 times in total.
Admin of Amtenael
Dre
Developer
 
Posts: 206
Joined: Fri Oct 29, 2004 6:24 pm
Website: https://amtenael.fr

Re: A tiny stats viewer

Postby Graveen » Tue Dec 28, 2010 4:54 pm

Hi Dre, this is a nice idea and an useful app ! TY !
Image
* pm me to contribute in Dawn of Light: code, database *
User avatar
Graveen
Project Leader
 
Posts: 12660
Joined: Fri Oct 19, 2007 9:22 pm
Location: France

Re: A tiny stats viewer

Postby HunabKu » Thu Aug 18, 2011 7:24 pm

I test it and don't work for me :'(
Code: Select all
Date (format: YYYY-MM-DD):
Start( ! ) Notice: Undefined index: date in C:\wamp\www\Forum\stats\index.php on line 16 Call Stack #TimeMemoryFunctionLocation 10.0002677208{main}( )..\index.php:0 " id="date" />
End( ! ) Notice: Undefined index: datemax in C:\wamp\www\Forum\stats\index.php on line 17 Call Stack #TimeMemoryFunctionLocation 10.0002677208{main}( )..\index.php:0 " id="datemax" />
with JpGraph error: 25121 errors
"C'est l'ignorance qui apporte le chaos, pas la connaissance."
Scarlett Johansson dans "Lucy" de Luc Besson
-------------------------------------------------------------------------------
"Ignorance brings chaos, not knowledge."
Scarlett Johansson on "Lucy" by Luc Besson
User avatar
HunabKu
Developer
 
Posts: 1905
Joined: Sat Jun 18, 2011 4:48 am

Re: A tiny stats viewer

Postby Dre » Fri Aug 19, 2011 10:28 am

Updated: http://amtenael.com/dre/stats.zip

Added: some more stats (nb account, played time, average level).
Less warnings but if you have problem with jpgraph, I can't do anything, see: http://jpgraph.net/ (I don't have any problem with it :/).
Admin of Amtenael
Dre
Developer
 
Posts: 206
Joined: Fri Oct 29, 2004 6:24 pm
Website: https://amtenael.fr

Re: A tiny stats viewer

Postby HunabKu » Thu Nov 03, 2011 3:48 pm

Do not work with PHP 5.3.4. "JPGraph error; 25121" on all pages.
I tried to update JPGraph to lastest version : 3.5.0b1 and that's the same.
What's your PHP version please Dre ?

http://zanza91.free.fr/tsv_jpgraph_bug.jpg
"C'est l'ignorance qui apporte le chaos, pas la connaissance."
Scarlett Johansson dans "Lucy" de Luc Besson
-------------------------------------------------------------------------------
"Ignorance brings chaos, not knowledge."
Scarlett Johansson on "Lucy" by Luc Besson
User avatar
HunabKu
Developer
 
Posts: 1905
Joined: Sat Jun 18, 2011 4:48 am

Re: A tiny stats viewer

Postby Dre » Fri Nov 04, 2011 5:32 pm

It's not a JPGraph's bug, you certainly don't have any statistics in your database.

You need to activate "statsave_interval" in server properties and have entries in "serverstats" table.
Admin of Amtenael
Dre
Developer
 
Posts: 206
Joined: Fri Oct 29, 2004 6:24 pm
Website: https://amtenael.fr

Re: A tiny stats viewer

Postby HunabKu » Fri Nov 04, 2011 5:52 pm

Thank you for respond me.

I have activate "statsave_interval" ('-1' to '1') and reload server poperties with /serverp command.
I've wait a stat record in "serverstats" table about one minute.
No record after 1 minute with a log-in-out so i will wait this night.

Thanks a lot for this !
"C'est l'ignorance qui apporte le chaos, pas la connaissance."
Scarlett Johansson dans "Lucy" de Luc Besson
-------------------------------------------------------------------------------
"Ignorance brings chaos, not knowledge."
Scarlett Johansson on "Lucy" by Luc Besson
User avatar
HunabKu
Developer
 
Posts: 1905
Joined: Sat Jun 18, 2011 4:48 am

Re: A tiny stats viewer

Postby HunabKu » Wed Nov 09, 2011 6:03 am

work after reboot on one-per-one page but not on index page.
"C'est l'ignorance qui apporte le chaos, pas la connaissance."
Scarlett Johansson dans "Lucy" de Luc Besson
-------------------------------------------------------------------------------
"Ignorance brings chaos, not knowledge."
Scarlett Johansson on "Lucy" by Luc Besson
User avatar
HunabKu
Developer
 
Posts: 1905
Joined: Sat Jun 18, 2011 4:48 am

Re: A tiny stats viewer

Postby HunabKu » Sat May 04, 2013 8:00 am

Link down
"C'est l'ignorance qui apporte le chaos, pas la connaissance."
Scarlett Johansson dans "Lucy" de Luc Besson
-------------------------------------------------------------------------------
"Ignorance brings chaos, not knowledge."
Scarlett Johansson on "Lucy" by Luc Besson
User avatar
HunabKu
Developer
 
Posts: 1905
Joined: Sat Jun 18, 2011 4:48 am

Re: A tiny stats viewer

Postby Dre » Mon May 13, 2013 8:28 pm

Update: one file only, using D3.js instead of jpgraph

Example with random data : http://virant.fr/~dre/test.php
Attachments
stats.zip
(2.23 KiB) Downloaded 60 times
Admin of Amtenael
Dre
Developer
 
Posts: 206
Joined: Fri Oct 29, 2004 6:24 pm
Website: https://amtenael.fr

Re: A tiny stats viewer

Postby Shadexx » Mon May 13, 2013 10:23 pm

Thank you!
User avatar
Shadexx
DOL Experienced
 
Posts: 156
Joined: Mon Nov 09, 2009 9:58 am
Location: Germany

Re: A tiny stats viewer

Postby Tolakram » Tue May 14, 2013 11:55 am

Thanks Dre!
- Mark
User avatar
Tolakram
Storm / Storm-D2 Admin
 
Posts: 9189
Joined: Tue Jun 13, 2006 1:49 am
Location: Kentucky, USA

Re: A tiny stats viewer

Postby HunabKu » Tue May 14, 2013 4:22 pm

Great thanks Dre !
"C'est l'ignorance qui apporte le chaos, pas la connaissance."
Scarlett Johansson dans "Lucy" de Luc Besson
-------------------------------------------------------------------------------
"Ignorance brings chaos, not knowledge."
Scarlett Johansson on "Lucy" by Luc Besson
User avatar
HunabKu
Developer
 
Posts: 1905
Joined: Sat Jun 18, 2011 4:48 am

Re: A tiny stats viewer

Postby Graveen » Wed May 15, 2013 12:09 am

TY Dre. Worth to be attached in the project.
Image
* pm me to contribute in Dawn of Light: code, database *
User avatar
Graveen
Project Leader
 
Posts: 12660
Joined: Fri Oct 19, 2007 9:22 pm
Location: France


Return to “%s” User Files

Who is online

Users browsing this forum: No registered users and 1 guest