How Sakai work with Tin Can API

546 views
Skip to first unread message

NeilCrazy

unread,
Mar 10, 2016, 1:24:13 AM3/10/16
to saka...@apereo.org, te...@easy2study.net
Hi,

We are trying to find out how sakai work with Tin Can API like how we can setup a LRS external or active it as a service or something else.
We hope we can share and analyze the learner’s experience through this way and hope any friend who may know about this can give us some help.
BTW, We saw that sakai already been the adopter of the Tin Can API.

Thanks,


Neil





Miguel Carro Pellicer

unread,
Mar 10, 2016, 2:20:27 AM3/10/16
to NeilCrazy, saka...@apereo.org, te...@easy2study.net
Hi Neil.

  1. Install the XAPI provider: https://github.com/Apereo-Learning-Analytics-Initiative/SakaiXAPI-Provider
  2. Enable this properties:
lrs.enabled=true
lrs.tincanapi.url=http://yourLRSAddress/data/xAPI/statements
lrs.tincanapi.basicAuthUserPass=XXXXX:YYYYY (Where XX and YY are the LRS user/password)

If everything is correct you will see the feed of the activies in your LRS.

Regards
-- 
-----------------------------------------------
Miguel Carro Pellicer
CTO EDF - Entornos de Formación S.L.

Website: http://www.entornosdeformacion.com/
Office Phone: +34 - 96 381 35 75
Mobile Phone: +34 - 686 26 64 85
Email: mca...@entornosdeformacion.com
Skype: mcpellicer
-----------------------------------------------

NeilCrazy

unread,
Mar 10, 2016, 11:39:41 AM3/10/16
to Miguel Carro Pellicer, saka...@apereo.org, te...@easy2study.net
Hi, Miguel

Thank you for your instruction and it works for us !
BTW, Do you have any idea about the LRS solution, just because our school located at China and Cloud based LRS are very slow and hard to connect in our country. If we can have some LRS products which can deploy locally will be great for us. 
Any way, thank you very much for your help!

Regards

Neil

Paul Lukasewych

unread,
Mar 10, 2016, 11:57:55 AM3/10/16
to NeilCrazy, Miguel Carro Pellicer, saka...@apereo.org, te...@easy2study.net
Hi Neil,

I looked into this briefly a while back and wrote these notes. It may be
helpful in getting started.

A simple development setup for Apereo Learning Analytics consists of the
following:

- a learning record store (OpenLRS)
- Sakai xAPI implementation
- a reporting view (OpenDashboard)

Sakai uses xAPI to send event data to the learning record store. The
reporting view is used to consume the data from the LRS. The view can be
embedded in Sakai as an LTI tool.


OpenLRS

To set up OpenLRS (Open Learning Record Store) on your local machine,
follow the steps below:

1. Check out the code from github
-- git clone
https://github.com/Apereo-Learning-Analytics-Initiative/OpenLRS.git

2. Build and run the standalone server
- mvn -Drun.jvmArguments="-Dserver.port=8091" clean package
spring-boot:run OR for debugging use mvn
-Drun.jvmArguments="-Dserver.port=8091
-agentlib:jdwp=transport=dt_socket,address=8001,server=y,suspend=n"
clean package spring-boot:run (create shell scripts for these if desired)
- Note that is creates an in-memory store, so all the data disappears
when you stop the server


Sakai xAPI Provider

1. Check out the code from github
-- git clone
https://github.com/Apereo-Learning-Analytics-Initiative/SakaiXAPI-Provider.git

2. Build and deploy to your local sakai installation
- mvn clean install sakai:deploy

3. Set up the following sakai.properties
-- lrs.enabled=true
-- lrs.tincanapi.basicAuthUserPass=openlrs:openlrs
-- lrs.tincanapi.url=http://localhost:8091/xAPI/statements


OpenDashboard

1. Check out the code from github
- git clone
https://github.com/Apereo-Learning-Analytics-Initiative/OpenDashboard.git

2. Build and run the standalone server
- mvn -Drun.jvmArguments="-Dserver.port=8092" clean package
spring-boot:run OR for debugging use mvn
-Drun.jvmArguments="-Dserver.port=8092
-agentlib:jdwp=transport=dt_socket,address=8002,server=y,suspend=n"
clean package spring-boot:run (create shell scripts for these if desired)
- Note that this creates an in-memory store, so all the data disappears
when the server stops

3. Create an LTI 1.x tool inside your Sakai instance with the following
config:
- URL: http://localhost:8092
- Key: opendash
- Secret: opendash

4. Add the new LTI tool to a site

5. Click on the LTI tool in the site.



Paul Lukasewych
Applications Development Team
Information Technology Services
Support Services Building
Western University
(519) 661-2111 x80513
pluk...@uwo.ca

On 2016-03-10 11:39 AM, NeilCrazy wrote:
> Hi, Miguel
>
> Thank you for your instruction and it works for us !
> BTW, Do you have any idea about the LRS solution, just because our school located at China and Cloud based LRS are very slow and hard to connect in our country. If we can have some LRS products which can deploy locally will be great for us.
> Any way, thank you very much for your help!
>
> Regards
>
> Neil
>
>> 在 2016年3月10日,下午3:20,Miguel Carro Pellicer <mca...@entornosdeformacion.com> 写道:
>>
>> Hi Neil.
>>
>> Install the XAPI provider: https://github.com/Apereo-Learning-Analytics-Initiative/SakaiXAPI-Provider <https://github.com/Apereo-Learning-Analytics-Initiative/SakaiXAPI-Provider>
>> Enable this properties:
>> lrs.enabled=true
>> lrs.tincanapi.url=http://yourLRSAddress/data/xAPI/statements <http://lrs.entornosdeformacion.com/data/xAPI/statements>
>> lrs.tincanapi.basicAuthUserPass=XXXXX:YYYYY (Where XX and YY are the LRS user/password)
>>
>> If everything is correct you will see the feed of the activies in your LRS.
>>
>> Regards
>>
>> El 10/03/2016 a las 7:23, NeilCrazy escribió:
>>> Hi,
>>>
>>> We are trying to find out how sakai work with Tin Can API like how we can setup a LRS external or active it as a service or something else.
>>> We hope we can share and analyze the learner’s experience through this way and hope any friend who may know about this can give us some help.
>>> BTW, We saw that sakai already been the adopter of the Tin Can API.
>>>
>>> Thanks,
>>>
>>>
>>> Neil
>>>
>>>
>>>
>>>
>>>
>>
>> --
>> -----------------------------------------------
>> Miguel Carro Pellicer
>> CTO EDF - Entornos de Formación S.L.
>>
>> Website: http://www.entornosdeformacion.com/ <http://www.entornosdeformacion.com/>
>> Office Phone: +34 - 96 381 35 75
>> Mobile Phone: +34 - 686 26 64 85
>> Email: mca...@entornosdeformacion.com <mailto:mca...@entornosdeformacion.com>
>> Skype: mcpellicer
>> -----------------------------------------------
>
Reply all
Reply to author
Forward
0 new messages