[Tool] Observatory: Basic webinterface to Hive 2 player statistics

morrolanmorrolan Join Date: 2016-12-25 Member: 225481Members
edited December 2016 in Modding
While we're waiting for the official Hive 2 UI to go live - which may or may not happen "soon" - I've put together a very basic interface to the information which is already exposed via Hive 2's API. It can be found here: https://observatory.morrolan.ch/

It allows you to put in any form of Steam ID, and will return what kind of data has been collected about that player - skill, accumulated score, playtime, ...

In the end it just fetches data exposed via http://hive2.ns2cdt.com/api/get/playerData/, and presents it in a more human-friendly way, so is limited to whatever I can pull from there.

Edit: For clarification - 'any form of steam ID' means:
- 'Old' Steam ID: STEAM_0:0:24110655
- Steam ID 64: 76561198008487038
- Steam ID 3: U:1:48221310
- Vanity URLs: http://steamcommunity.com/id/morrolan-lz/ or simply 'morrolan-lz'

Using custom URLs (e.g. 'morrolan-lz' in my case) does not work yet - as I would have to hit up Valve's API to convert those to something useable. Whereas the currently supported Steam IDs can be converted directly. works too, now - see above.

Comments

  • antouantou France Join Date: 2016-07-24 Member: 220615Members
    Nice job dude :)
    Now let's scan all possible steam IDs to find ns2 players, and we'll be able to spy on one another hehe
  • NordicNordic Long term camping in Kodiak Join Date: 2012-05-13 Member: 151995Members, NS2 Playtester, NS2 Map Tester, Reinforced - Supporter, Reinforced - Silver, Reinforced - Shadow
    edited December 2016
    antou wrote: »
    Now let's scan all possible steam IDs to find ns2 players, and we'll be able to spy on one another hehe
    There are nearly 500,000 of them. Only about 25,000 of them have played in the last 90 days. Even among those players, there is little to spy on. Trust me, I know.
  • ZdrytchXZdrytchX Australia Join Date: 2016-02-06 Member: 212662Members
    If you enter your steam usernameID it also works

    e.g. mine is simply 'Zdrytchx' and the result appears!

    Cheers
  • jrgnjrgn Join Date: 2006-11-03 Member: 58289Members
    i get this error message:Incomplete JSON received from API: key not found: "pid"
  • morrolanmorrolan Join Date: 2016-12-25 Member: 225481Members
    ZdrytchX wrote: »
    If you enter your steam usernameID it also works

    e.g. mine is simply 'Zdrytchx' and the result appears!

    Cheers

    Yup, 'custom'/'vanity' URLs work too. Steam display names will not, however, as those are not unique.
    jrgn wrote: »
    i get this error message:Incomplete JSON received from API: key not found: "pid"

    That means that Hive 2 returned no, or incomplete data. What did you query for?
  • ZdrytchXZdrytchX Australia Join Date: 2016-02-06 Member: 212662Members
    No longer works, forbidden
  • morrolanmorrolan Join Date: 2016-12-25 Member: 225481Members
    Google Chrome, I assume?
    There's a rather elusive bug there, where it sometimes does not pass XSS protection. I have not been able to figure out its cause, yet. Clearing cookies / rebooting / swearing makes it usually go away.
  • ZdrytchXZdrytchX Australia Join Date: 2016-02-06 Member: 212662Members
Sign In or Register to comment.