tunapanda / old.swag

Swag automatically records learning achievements and guides players/students to greater skill
1 stars 1 forks source link

Create a reporter for app usage stats #9

Open usernamenumber opened 9 years ago

usernamenumber commented 9 years ago

ARBTT looks promising for this.

For details on what a reporter is, see here.

jasonmule commented 9 years ago

arbtt can generate csv output as shown:

Tag,Time,Percentage
Program:Firefox,3:28:00,77.90
Program:Scratch,0:35:00,13.11
Program:rxvt,0:12:00,4.49
[...]

Then it looks like this can be transformed to:

{
    "actor": {
      "name": "Linux username",
      "mbox": "mailto:"
  },
    "verb": {
      "id": "http://adlnet.gov/expapi/verbs/interacted",
      "display": { "en-US": "interacted" }
  },
    "object": {
        "id": "http://tunapanda.com/swag/activities/programming",
        "definition": {
            "name": { "en-US": "Programming" }
        },
        "extensions": {
            "http://tunapanda.com/swag/duration": "35:33"
        }
  },
    "context": {
        "application": "Scratch"
    }
}

Was there a discussion about what base urls to use for ids?

usernamenumber commented 9 years ago

@limikael's ktouch reporter uses tunapanda.org/ktouch (example), but I don't think there's been extensive discussion on this, though there should be. It makes sense to me to use a /swag prefix (or maybe swag.tunapanda.org for the "host"?), but Micke's spent the most time with this, so I'd like to hear his opinions if he has any.

limikael commented 9 years ago

What I did was to sort of push this decision, the ktouchxapi program is independent and configurable. Look here for configuration options:

https://github.com/tunapanda/ktouchxapi/blob/master/src/ktouchxapi.js

And the option specifically related to the base url is the --targetPrefix option. The file that Brad referred to is more a test rather than something that is actually used when the program is actually running, as you can see it is in the test/lab directory of the project.

So yes it is an important discussion, but I think we should make it configurable in the reporting agents, so the discussion will be a deployment discussion, rather than a development discussion. Also, it will make the reporters usable by other people and organizations which hopefully means that other people are more likely to pitch in work later on. Makes sense?

// Micke

On Thu, Apr 23, 2015 at 5:42 AM, Brad Smith notifications@github.com wrote:

@limikael https://github.com/limikael's ktouch reporter uses tunapanda.org/ktouch (example https://github.com/tunapanda/ktouchxapi/blob/master/test/lab/tincantest.insert.js), but I don't think there's been extensive discussion on this, though there should be. It makes sense to me to use a /swag prefix (or maybe swag.tunapanda.org for the "host"?), but Micke's spent the most time with this, so I'd like to hear his opinions if he has any.

— Reply to this email directly or view it on GitHub https://github.com/tunapanda/swag/issues/9#issuecomment-95398458.

jasonmule commented 9 years ago

@limikael Got it. Thanks!

usernamenumber commented 9 years ago

Agreed. Good plan! On Apr 23, 2015 8:44 AM, "Jason Mule" notifications@github.com wrote:

@limikael https://github.com/limikael Got it. Thanks!

— Reply to this email directly or view it on GitHub https://github.com/tunapanda/swag/issues/9#issuecomment-95591063.

limikael commented 9 years ago

Issue moved here:

https://github.com/tunapanda/swag/issues/3