The openLRS Plugin for Moodle provides real-time analytics and reporting capabilities by capturing xAPI events from H5P content. This plugin allows Moodle administrators to send xAPI data to an external openLRS for further analysis.
- Captures xAPI events from H5P content within Moodle.
- Configurable settings for connecting to an openLRS system.
- Secure communication through a secret key.
- Download the openLRS plugin repository as a ZIP file.
- Log in to your Moodle site as an admin and go to
Site administration > Plugins > Install plugins
. - Upload the ZIP file and follow the on-screen instructions to install the plugin.
After installation, you need to configure the plugin with your external LRS settings.
- Navigate to
Site administration > Plugins > Local plugins > openLRS settings
. - Enter the External Website Path, which is the URL of your external LRS.
- Enter a Secret Key and Consumer ID for secure communication with your LRS.
- Save the changes.
- Go to
Site administration > Server > Web services > Manage tokens
. - Create a new token for the user account that will be sending data to the LRS.
- Note down the generated token.
- Open the
js/h5p.js
file from the plugin directory. - Replace the
var token = "your generated token here";
line with the token generated in the previous step. - Log in to your Moodle site as an admin and navigate to
Site administration > Appearance > Additional HTML
. - In the
Within HEAD
section, add the modifiedh5p.js
script inside<script>
tags.
<script>
// Your modified h5p.js content goes here
</script>