Giter VIP home page Giter VIP logo

Comments (2)

cybercussion avatar cybercussion commented on May 29, 2024

@bevdokimov thanks I'm glad its helped people get exposed to SCORM in a Open Source capacity.

So SCOBot from memory is detecting the latency for you.

Lets see if I can dig into the setInteraction method quick -
You need a id for sure and the original timestamp is calculated based on a prior interaction to calculate the latency.

I took a look at some of the error handling here:
https://github.com/cybercussion/SCOBot/blob/master/QUnit-Tests/js/scorm/SCOBot.js#L1361

Essentially you'd want to at minimum pass the proper types. Least the way I wrote it I assumed you'd be passing a interaction object as defined there (even empty arrays and data types) so you could populate the same object. If your familiar with say MongoDB you could upsert data against a object and this method doesn't appear to manage that least how I interpret your attempting to.

So maybe that will give you a bread crumb with example to at least have a Interaction object which I believe the main reason I did it like that was to maintain journaling. Least with some of the code I'm seeing there its testing to see if you are passing an Array and if not sending a log message that an array wasn't found.
Thats not necessarily bad although flagged as a error. Its just letting you know (because it happens) you didn't specify it.

Also use SCOVerseer to evaluate your interaction data if you want to see if you are getting the result you are looking for. It may be working after all?

from scobot.

cybercussion avatar cybercussion commented on May 29, 2024

Closing this out. Let me know if you have any further issues or debugging needs.

from scobot.

Related Issues (10)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.