This would be a very important thing, I think. Think of distributed automated data collection units (e.g. on raspberrypi or other linux box). Not everywhere it is possible or even desirable to leave machine connected to internet. Periodic automated data dump in that situation can be quickly picked up and automated script run with R to analyse the data and produce an updated report. In my situation I am trying to develop a solution whereby LS would dump data once a week to a specific directory in a subdirectory named by export date. This directory would be synced to USB stick when it is plugged in (via rsync). It is a bit hard as I am not a programmer, so any pointers how to accomplish this would be great. What I could conceivably imagine is making a php script that is run from commandline via cron. I could make another script to sync to USB. But how to start using LS API for the php script - I would really appreciate some help. I am using latest limesurvey (2.5)
r0berts
Last edit: 7 years 8 months ago by r0bis. Reason: ls version
it is hard to provide any pointers on how to best code this since custom coding is always rather complex. We use a kind of framework for coding Limesurvey cronjobs (see e.g
www.limesurvey-templates.com/limesurvey-...ob-scripts-c-29.html
) so if you are interested we could code an export cronjob pretty fast.
Just drop me a note at marcel.minke@survey-consulting.com if you are interested in a cost estimation.
Which export format are you looking for? Simple CSV?
Best regards/Beste Grüße,
Dr. Marcel Minke Need Help? We offer professional Limesurvey support:
survey-consulting.com Contact: marcel.minke(at)survey-consulting.com
Thanks for the quick reply. I found the solution in the interim. As my goal is really to get data into R for further processing, there is a possibility to connect to the machine via crossover ethernet cable and then use JSON-RPC interface. Limer R library does this very well
github.com/cloudyr/limer
I tested this on my VM setup and it works beautifully.
For a case of pulling data off isolated machines this is even better than working with transferring data via USB stick. I can have many lime machines and one laptop to walk around and pull data off the machines. Process would remain much the same when/if those machines would be connected to network. It is absolutely great; limeR has simplified the process of getting data into R straight from Limesurvey.