Moodle networking (MNet)

working with Moodle Offline

 
 
Picture of Mark Dickinson
working with Moodle Offline
 

Hi,

I need to be able to allow a user to be Using Moodle from a server and have the facility to use it offline, ie if the internet connection is not available.

If i'm right in my understanding, I may have to have a moodle installation on a server and an additional moodle installation on a laptop which would have the course installed onto it already

Is there anyway where these can meet as in the user completion data from the laptop be transferred back to the server once the internet connection has become live either manually or automatically

TIA

Mark

 
Average of ratings: -
Picture of Dan Marsden
Re: working with Moodle Offline
Group DevelopersGroup Moodle Course Creator Certificate holdersGroup Particularly helpful MoodlersGroup Plugins guardiansGroup Translators

Hi Mark, 

The Moodle Mobile App provides some level of offline functionality but we've been working on a project with UNICEF recently to provide offline access to courses and allow completion data from SCORM packages to be passed back to a central server. I'm presenting about it at the Australian Moodle Moot but you could also touch base with our UK office who may be willing to show you a demo.

We do plan to release the code at some point too but I haven't had a chance to package it properly yet and it's still in testing.

Here's a brief summary of how it works.

We package a pre-built cut down Moodle install with apache/mysql in a Windows installer package using Installshield (mainly so we can build an MSI for deployment with nice shortcuts and good uninstall process) - but it would be easy to use our code to build a moodle on a stick style deployment. (we might do this in future ourselves)

The install that goes on the users local machine includes pre-configured code that connects to a main server to download courses and then upload the completion data.

Here's the way the local machine build does it.

on first install there are no users or courses on the local Moodle install so it asks you to login to the main site - this passes back some information to the local install related to the logged in user - (email/firstname/lastname) - then the user can also see a list of courses they are enrolled on the main site and download them to use on their local machine instead of on the main site. The main site sends a recent Moodle backup file (excluding user data) to the locally installed Moodle and creates it on the site.

The locally installed course contains a full copy of the main course but we pre-configure the capabilities to allow only read-only mode of things like forums and activities like assignments are disabled.

The only data we are currently syncing is SCORM - when a user has completed a SCORM package they can sync that data back to the main site - to simplify things we delete the local data after the sync. To check their full course completion status they must visit the main site.

At the moment we don't do anything with versioning of courses and there is definitely further room for improvements.

hopefully that makes sense! - feel free to drop me an e-mail or give our UK office a call if you have further questions.

 
Average of ratings:Useful (3)
Picture of Mark Dickinson
Re: working with Moodle Offline
 

Hi Dan,

Its good to see that someone else is looking at the possibilites for this.

You mention your still in testing, but can you give me a rough indication on when it may be released?
What version of moodle are you developing this for?

I am very interested in this as we are thinking of doing a similiar thing, and as you are in testing you are alot closer than we are. We are looking at completing Quizes and sending results back to the server, ideally when an internet connection became available again but i think this is far too much to ask for hence like yourselves a local copy seems to be the only way. 

Its just a matter of transmitting that data and incorporating that into the Database for reporting that would need to be done (if only it was as easy as that!).

Kind regards

Mark

 
Average of ratings: -
Picture of Dan Marsden
Re: working with Moodle Offline
Group DevelopersGroup Moodle Course Creator Certificate holdersGroup Particularly helpful MoodlersGroup Plugins guardiansGroup Translators

Hi Mark, 

I guess with a bit of encouragement I could set up a git repo with the 2 plugins - one that sits on the main server and one that sits on the local server - but we might need to set up a demo to walk you through how it's supposed to work to give you some context. I should also check to make sure there isn't any hardcoded specific UNICEF code in there as well.

The sync process uses the standard backup process to generate a backup of the scorm data on the local machine and then extracts out certain xml files from the backup - then packages all the courses that are being synced into a single zip and passes that to the main server - the main server then does some custom handling of that xml file to import the data. It shouldn't be too hard to add the quiz data to that code.

I'll see if I can find the time to release it on github in the next few days.

 
Average of ratings: -
Picture of Mark Dickinson
Re: working with Moodle Offline
 

Hi Dan,

Just wondered if you had time to look at releasing something on github.

Cheers

Mark





 
Average of ratings: -
Picture of Dan Marsden
Re: working with Moodle Offline
Group DevelopersGroup Moodle Course Creator Certificate holdersGroup Particularly helpful MoodlersGroup Plugins guardiansGroup Translators

yes - I just found time to do this this afternoon:

This one sits on your main site(referred to as the mothership):
https://github.com/danmarsden/moodle-local_offline

This one sits on the offline install:
https://github.com/danmarsden/moodle-local_offlineplayer

I've included some basic notes in the README files that will hopefully help guide you through it.

The code is really early release stuff - there's a lot of room for improvement.

hopefully some of it might be useful.

 
Average of ratings:Useful (2)
Picture of Sourabh Maheshwari
Re: working with Moodle Offline
 

Dear Dan,

I would like to know if I can run this offline mode on a mobile set using an external memory card which will have moodle LMS with our course material preloaded on it. This would be like an app loaded on an external memory card which would use mobile's OS for installation and operation.

Thanks

 

 
Average of ratings: -
Picture of Dan Marsden
Re: working with Moodle Offline
Group DevelopersGroup Moodle Course Creator Certificate holdersGroup Particularly helpful MoodlersGroup Plugins guardiansGroup Translators

possibly, you would need to basically install a web server and db server on the memory card, targeted for the mobile platform you are working with (Andriod/iOS/Windows) The code I have been working on isn't really ready for release yet but I'm hoping it will be within the next few months.

 
Average of ratings: -
Picture of Sourabh Maheshwari
Re: working with Moodle Offline
 

Hi Dan,

Have you removed these codes from the site?

 
Average of ratings: -
Picture of Dan Marsden
Re: working with Moodle Offline
Group DevelopersGroup Moodle Course Creator Certificate holdersGroup Particularly helpful MoodlersGroup Plugins guardiansGroup Translators

that link was for early pre-release/alpha code that wasn't complete. We're hoping to release a more complete version at some point soon. Feel free to get in touch with me directly if you want to help fund this process.

 
Average of ratings: -
Picture of Naveen Pammi
Re: working with Moodle Offline
 

Hi , Iam looking for a similar solution. We are having some SCORM courses which we uploaded into Moodle LMS in our datacenter.  There are learners from the remote areas , where internet availability is not proper.

I need to design a solution where these remote learners can access content locally from LAN , but all the user tracking like time spent , assessments..etc has to be updated into the live server.

I see there is no activity on this thread in this topic.

Can someone guide me with right solution for this requirement.

Thanks


 
Average of ratings: -
Picture of Sourabh Maheshwari
Re: working with Moodle Offline
 

Hi Naveen,

Could you find a way to do what you have mentioned in your comment. If yes, please share the details.

 

Thanks

 

 
Average of ratings: -