FrontlineSMS And Moodle: Difference between revisions

From IHRIS Wiki
No edit summary
 
(6 intermediate revisions by 2 users not shown)
Line 1: Line 1:
This is the beginning of an outline for a FrontlineSMS and Moodle interaction.  [http://www.frontlinesms.com/ FrontlineSMS] is written in Java
This is the beginning of an outline for a FrontlineSMS and Moodle interaction.  [http://www.frontlinesms.com/ FrontlineSMS] is written in Java
while [http://www.moodle.org moodle] is written in PHP.
while [http://www.moodle.org moodle] is written in PHP.


In order to have close interaction, we will need to create/modify two plugins.  One for FrontlineSMS and one for moodle.  Primary end-user interaction will be through Moodle.  The aim is to keep these two programs loosely couple and to expose needed FrontlineSMS functionality via its Web API (HTTP Triggers).  Development should begin with added in these triggers
In order to have close interaction, we will need to create/modify two plugins.  One for FrontlineSMS and one for moodle.  Primary end-user interaction will be through Moodle.  The aim is to keep these two programs loosely coupled and to expose needed FrontlineSMS functionality via its Web API (HTTP Triggers).  Development should begin with adding in these triggers


==FrontlineSMS and Triggers==
==FrontlineSMS and Triggers==
Line 10: Line 9:
* HTTP Trigger plugin: http://sourceforge.net/apps/trac/frontlinesms/browser/trunk/src/main/java/net/frontlinesms/plugins/httptrigger
* HTTP Trigger plugin: http://sourceforge.net/apps/trac/frontlinesms/browser/trunk/src/main/java/net/frontlinesms/plugins/httptrigger
* We will want to add new http triggers to frontline SMS:
* We will want to add new http triggers to frontline SMS:
** http://localhost:{port}/groups/list  -- list the available groups  (perhaps JSON encoded string)
** http://localhost:{port}/groups/list  -- list the available top-level groups  (perhaps JSON encoded string)
** http://localhost:{port}/groups/list/{groupath}  -- list subgroups of the group indicated by the {grouppath}
** http://localhost:{port}/groups/create/{grouppath}  -- creates the group {grouppath}
** http://localhost:{port}/groups/create/{grouppath}  -- creates the group {grouppath}
** http://localhost:{port}/groups/contacts/{grouppath}  -- list the user in the indicated  group {grouppath}
** http://localhost:{port}/groups/contacts/{grouppath}  -- list the user in the indicated  group {grouppath}
Line 17: Line 17:
** http://localhost:{port}/contacts/lookup/{phonenumber}  -- returns the id, if any of a user with the matching phone number
** http://localhost:{port}/contacts/lookup/{phonenumber}  -- returns the id, if any of a user with the matching phone number
** http://localhost:{port}/send/groupsms/{grouppath}?content={conent}  -- send the indicate content to each member of the indicated group
** http://localhost:{port}/send/groupsms/{grouppath}?content={conent}  -- send the indicate content to each member of the indicated group
*'''Note:''' Groups in FrontlineSMS are hierarchical so if groupB is in groupA its group path is /groupA/groupB
*'''Note:''' Groups in FrontlineSMS are hierarchical. If groupB is in groupA its group path is /groupA/groupB.


==FrontlineSMS Groups and Moodle Courses==
==FrontlineSMS Groups and Moodle Courses==
Line 46: Line 46:
* Teacher/administrator can mark each forum that they create as SMS-enabled or not. defaults to disabled
* Teacher/administrator can mark each forum that they create as SMS-enabled or not. defaults to disabled
* sending a message on a moodle forum will initiate send the message the group registered for the course via http trigger sms/sendgroup
* sending a message on a moodle forum will initiate send the message the group registered for the course via http trigger sms/sendgroup
* ''More Specification pending'' for '''posting''' to a forum via FrontlineSMS.
* '''More Specification pending for posting''' to a forum via FrontlineSMS.


==Moodle Quiz interaction==
==Moodle Quiz interaction==
Line 65: Line 65:
* http://www.pageonejanettxt.com/products/moodlemobile GPL V2
* http://www.pageonejanettxt.com/products/moodlemobile GPL V2
* http://www.clickatell.com/developers/scripts.php  I think the plugin is very out of date
* http://www.clickatell.com/developers/scripts.php  I think the plugin is very out of date
[[Category:Blueprints]]

Latest revision as of 16:46, 8 November 2013

This is the beginning of an outline for a FrontlineSMS and Moodle interaction. FrontlineSMS is written in Java while moodle is written in PHP.

In order to have close interaction, we will need to create/modify two plugins. One for FrontlineSMS and one for moodle. Primary end-user interaction will be through Moodle. The aim is to keep these two programs loosely coupled and to expose needed FrontlineSMS functionality via its Web API (HTTP Triggers). Development should begin with adding in these triggers

FrontlineSMS and Triggers

FrontlineSMS Groups and Moodle Courses

  • Moodle UI to associate a course in moodle with a group in FrontlineSMS:
    • groups should already be defined in frontline SMS. also have ability to create new group
    • list/create groups should added by via an http trigger as indicated above


General Moodle Interaction

  • Moodle UI so a user can associate a contact.id from frontline SMS
    • uses puts in their mobile number
    • moodle does a lookup on frontlinesms to see if there is a contact with that number via the contracts/lookup trigger
      • if there is exactly one contact, the contact id is associated with the user profile
      • if there are no contacts, moodle will create the contact on frontlinesms via the contacts/add trigger
      • if there is more than one contact, display a drop-down list where the user can select which contact_id they should be associated to (list display name)
  • All posts to SMS messages are sent via FrontLine SMS's existing http trigger sms/send
  • Participants in a course can send a SMS to any/all other partipicpants that
  • Administrator in course can send a message to any/all partipants in the course

Moodle Forum interaction

  • Concept: Enable announcements and participation in Moodle forums via Frontline SMS
  • Reference: http://docs.moodle.org/en/Forum_module
  • Reference: http://docs.moodle.org/en/News_forum
  • Teacher/administrator of a course can choose to enable SMS forwarding of messages "News Forum" to participants that have a mobile number. defaults to enabled
  • Teacher/administrator can mark each forum that they create as SMS-enabled or not. defaults to disabled
  • sending a message on a moodle forum will initiate send the message the group registered for the course via http trigger sms/sendgroup
  • More Specification pending for posting to a forum via FrontlineSMS.

Moodle Quiz interaction


Related Moodle Plugins