Useage stats addition?

Useage stats addition?

Postby fstltna » Sun Sep 18, 2016 2:28 am

Just had a idea - i could write up a utility to generate game useage stats, would just need a json connection to the server to get who was on it at the time it was polled. What do you think?

If you provided:
<player name><connect time>
For each connected player i could take it from there...

Edit: ok, i have a framework up at https://LugdunonCity.org/lugstats - what do you think? Any way to get the status of the user, like regular user or GM? What should i set the background color to to match this site?
---- https://LugdunonCity.org - portal for the Lugdunon RPG & Lugdunon hosting
---- https://LugdunonCity.org/HostSplash/ - About my Lugdunon hosting
Image
User avatar
fstltna
 
Posts: 155
Joined: Wed May 21, 2014 8:54 am
Location: South San Francisco, CA

Re: Useage stats addition?

Postby lugdunon » Sun Sep 18, 2016 9:20 am

I think what you want is already in :)

Check the REST services (you can get a JSON listing of supported ones at (default csPort is 41976):

http://server:csPort/rest/

What you need I think you can get here (list players, online status, and time played):

http://server:csPort/rest/net/lugdunon/players

Let me know if you see something missing or have any issues accessing the REST data services.

Cheers,
Chris
User avatar
lugdunon
Site Admin
 
Posts: 407
Joined: Tue Nov 05, 2013 5:53 pm

Re: Useage stats addition?

Postby fstltna » Sun Sep 18, 2016 10:32 am

Ok, that has 90% of it. :) Only thing I haven't seen is how to tell if someone is a gm or regular user. And im assuming the last field is seconds since epoc?
---- https://LugdunonCity.org - portal for the Lugdunon RPG & Lugdunon hosting
---- https://LugdunonCity.org/HostSplash/ - About my Lugdunon hosting
Image
User avatar
fstltna
 
Posts: 155
Joined: Wed May 21, 2014 8:54 am
Location: South San Francisco, CA

Re: Useage stats addition?

Postby fstltna » Sun Sep 18, 2016 1:05 pm

I have the time played and connect time now displaying properly.

What is the color code for the background here? I want to make it match.

To get it go to https://LugdunonCity.org/lugstats and then click the link in the bottom area. Let me know if you have questions!
---- https://LugdunonCity.org - portal for the Lugdunon RPG & Lugdunon hosting
---- https://LugdunonCity.org/HostSplash/ - About my Lugdunon hosting
Image
User avatar
fstltna
 
Posts: 155
Joined: Wed May 21, 2014 8:54 am
Location: South San Francisco, CA


Return to Suggestions

Who is online

Users browsing this forum: No registered users and 1 guest

cron