Dismiss Notice
Wynncraft, the Minecraft MMORPG. Play it now on your Minecraft client at (IP): play.wynncraft.com. No mods required! Click here for more info...

API playtime question

Discussion in 'Questions' started by brixt01, Jul 8, 2022.

Tags:
Thread Status:
Not open for further replies.
  1. brixt01

    brixt01 Well-Known Adventurer HERO

    Messages:
    789
    Likes Received:
    249
    Trophy Points:
    64
    Guild:
    Minecraft:
    I’m accessing data from the Wynncraft API using python, getting my playtime stats for each class, and overall.

    The values it’s returning are supposed to be, as stated on the doc.wynncraft page, the playtime in minutes.

    The numbers I’m getting don’t seem to be that, though they are off by a factor, so I can multiply it by that value to get the right results.

    Anything I might be doing wrong, or a reason why the values might be off?

    Start a conversation with me if you need any more details.

    Thanks
     
  2. P0ke

    P0ke Wynntils Dev CHAMPION

    Messages:
    495
    Likes Received:
    642
    Trophy Points:
    91
    Minecraft:
    iirc the raw api value is indeed scaled by some strange amount compared to actual minutes, so you're not crazy

    i'd recommend joining the wynn dev discord for api stuff like this, although i'm not sure where a link to it can be found
     
  3. brixt01

    brixt01 Well-Known Adventurer HERO

    Messages:
    789
    Likes Received:
    249
    Trophy Points:
    64
    Guild:
    Minecraft:
    Okay, thanks!
     
  4. OriTheSpirit

    OriTheSpirit Feesh Time 24/7 CHAMPION

    Messages:
    898
    Likes Received:
    559
    Trophy Points:
    97
    Guild:
    Minecraft:
    According to Nepmia, multiply it by 4.7 gets the minutes and divide by 60 gets the hours (iirc)
     
  5. brixt01

    brixt01 Well-Known Adventurer HERO

    Messages:
    789
    Likes Received:
    249
    Trophy Points:
    64
    Guild:
    Minecraft:
    Yeah, I got the 4.7. Just seems like a really random number but I’m sure there’ll be a reason behind it.
     
  6. OriTheSpirit

    OriTheSpirit Feesh Time 24/7 CHAMPION

    Messages:
    898
    Likes Received:
    559
    Trophy Points:
    97
    Guild:
    Minecraft:
    check wynncraft discord perhaps, they mentioned something with the api and that's where i got the value
     
Thread Status:
Not open for further replies.