Skip to content

LuisParada7/moodle-mod_livepoll

 
 

Repository files navigation

Live poll

This module allows having a live updating poll.

It uses Firebase to push the updates and stores the data anonymously, so no GDPR concerns there.

Configuration

  1. Go to Firebase and create an account
  2. Once in the Firebase console, create a project
  3. We're using the real time database for this project. So, create a database.
  4. A popup will appear to configure Cloud Firestore, select any type of security (Locked/Test) mode.
  5. Switch from Cloud firestore to Realtime database (Top part of the page)
  6. Access Rules and set these rules: firebase-rules
    {
        "rules": {
            ".read": "auth != null",
            ".write": "auth != null"
        }
    }
    
  7. Enable anonymous authentication, if anonymous authentication is not setup, the poll will not work.
  8. From the project overview page in the Firebase console, click Add Firebase to your web app. If your project already has an app, select Add App from the project overview page.
  9. You can copy and paste the API Key, Auth Domain, Database URL and the Project ID to add them to the Moodle plugin settings page. Site administration > Plugins > Activity modules > Live poll

Usage

Just use it like a normal activity. You can create a poll in a course and configure the voting options and what to render.

It is suggested you use this when performing live classes so students and instructors can interact with the charts and controls live.

This will not store any of the responses into Moodle.

livepolldemo

License

Copyright (c) 2018 Open LMS (https://www.openlms.net)

This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program. If not, see http://www.gnu.org/licenses/.

About

Moodle live updating poll activity

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • PHP 57.2%
  • JavaScript 27.3%
  • Mustache 14.0%
  • CSS 1.5%