by

Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
Tunnel Master
@tunnelmaster_gitlab
[discord] <Nicd> Or something else?
[discord] <IHaveALongName> can i DM you?
[discord] <Nicd> Sure
André Lademann
@vergissberlin
Hi! Do you have enough data to generate graphics like this? https://github.com/vergissberlin/resume#knowledge-focus-timeline
Tunnel Master
@tunnelmaster_gitlab
[discord] <Nicd> between languages, yes
[discord] <Nicd> currently the languages are a bit messy due to different plugins reporting different names but once we have per-user language aliases, such charts would be doable and could look quite nice
Tunnel Master
@tunnelmaster_gitlab
[matrix] <Nicd-:matrix.org> Wow there are actually quite a lot of people here on Matrix and not just those tunneled from Gitter. Hi everyone. :)
André Lademann
@vergissberlin
Is there a chance to get access to this data through the API?
Tunnel Master
@tunnelmaster_gitlab
[discord] <Nicd> eventually yes
[discord] <Nicd> the GraphQL API could support something like that but currently it's not documented and only for public users
Tunnel Master
@tunnelmaster_gitlab
[discord] <WEGFan> codestats is recording xp but not time you spend on each language, so i guess it should be "how much" instead of "how long"?
[discord] <Nicd> yeah
[discord] <WEGFan> maybe it's a good idea
[discord] <Nicd> I'm working on a kind of "time" tracking 😉
[discord] <Nicd> but it's a secret
[discord] <WEGFan> wow
[discord] <WEGFan> that's awesome
[discord] <WEGFan> then i guess we can restore previous stats by calculating the time difference between pulses
[discord] <Nicd> not actual time tracking. but attempting to track "flow states" where user is intensely typing
[discord] <Nicd> i.e. where there are no long breaks between API calls
[discord] <WEGFan> made one
[discord] <WEGFan> looks a little messy
[discord] <Nicd> cool 😄
André Lademann
@vergissberlin
Do you have the url from the graphql playground for me?
Tunnel Master
@tunnelmaster_gitlab
[discord] <Nicd> You can see the GraphQL address if you open your profile page and check the requests in browser devtools
Tunnel Master
@tunnelmaster_gitlab
[irc] <sbs> hi
[irc] <sbs> does the get profile api support auth header to get private profile info?
André Lademann
@vergissberlin

Okay got it

{
    profile(username: "vergissberlin") {
        total_langs: languages {name xp}
        recent_langs: languages(since: "2020-08-05T08:47:24.460Z") {name xp}
        total_machines: machines {name xp}
        recent_machines: machines(since: "2020-08-05T08:47:24.463Z") {name xp}
        day_language_xps: dayLanguageXps(since: "2020-07-22") {date language xp}
        day_of_year_xps: dayOfYearXps
        hour_of_day_xps: hourOfDayXps
    }
}

But I have no chance without the schema definition, or do I?

André Lademann
@vergissberlin
Okay, got it. Thank you guys!
 query {
    __type(name: "Profile") {
    kind
    name
    fields {
      name
      type {
        kind
        name
        description
      }
    }
  }
 }
Tunnel Master
@tunnelmaster_gitlab
[discord] <Nicd> sbs: only the old API does (described in the docs on the site)
Tunnel Master
@tunnelmaster_gitlab
[discord] <Nicd> oh they left
Tunnel Master
@tunnelmaster_gitlab
[irc] <Nicd> sbs: only the old API supports token auth for private users (described in the docs on the site)
[irc] <sbs> ??
[irc] <sbs> old api ?
[discord] <Nicd> the REST API
[irc] <sbs> I only saw 1 API page with 2 calls (iirc)
[discord] <Nicd> that one
[irc] <sbs> 1 auth with key to pulse and 1 to get profile
[discord] <Nicd> the GraphQL API is not documented and only supports session auth
[irc] <sbs> ok not documented :)
[irc] <sbs> no big deal though. I just need 2 prefs to store the key and the user
Tunnel Master
@tunnelmaster_gitlab
[discord] <Nicd> welcome @sdGumby 👋
Tunnel Master
@tunnelmaster_gitlab
[discord] <JustAGod> Hello, is it possible to delete score that i earned in one particular day?
I accidentally launched recursive vim macro and earned 58k point which ruin my analytics
[discord] <JustAGod> Hello, is it possible to delete score that i earned in one particular day?
I accidentally launched a recursive vim macro and earned 58k points which ruin my analytics
Tunnel Master
@tunnelmaster_gitlab
[discord] <Nicd> It is possible for me but currently I'm in the woods so it'll be next week
[discord] <Nicd> Pictures of said woods
Tunnel Master
@tunnelmaster_gitlab
[discord] <Nicd> Welcome @KMPLSV 👋
Tunnel Master
@tunnelmaster_gitlab
[discord] <atchisson> nice place ! happy hiking