Auto-increment quiz time

Auto-increment quiz time

by Amrata Ramchandani -
Number of replies: 2

We are developing a plugin to automatically extend the quiz time limit for users who encounter a network failure.Given below is the information for the same.

Background

In a quiz where some time gets wasted due to issues like network failures or hardware crash, the user needs to be given additional time to compensate fairly for this loss.

Problem

  1. There is no way to automatically quantify the lost time.

  2. The compensation of the lost time has to be done manually with the help of user overrides.

Proposed solution

  1. Monitor the health of the connection using heartbeats provided by websockets

  2. Record the connections and disconnections of  a user attempting a quiz

  3. Calculate the time lost between connections.

  4. Automatically set user-overrides to extend the quiz time limit by the amount of time lost.

Implementation details

  1. NodeJS, ExpressJS, Socket.IO for heartbeat tracking.

  2. Trigger moodle to set user-overrides


P.S :  Comments, advice and suggestions are gratefully appreciated.

Average of ratings: -
In reply to Amrata Ramchandani

Re: Auto-increment quiz time

by Tim Hunt -
Picture of Core developers Picture of Documentation writers Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers

You might find the code in https://github.com/timhunt/moodle-quizaccess_offlinemode interesting. It does a slighly different thing than you are talking about, but there still might be some bits of interest ...