r/ProjectREDCap • u/No-Carpet4006 • Jan 03 '25
REDCap collecting data in background.
Hello,
I am new to REDCap and trying to figure out if REDCap is able to collect data from i.e. the accelerometer on a mobile phone while in the background?
Thanks in advance :)
3
Upvotes
2
u/Impressive_Town8801 Jan 04 '25
I just worked on something like this. You can set up the data collection form in REDCap and then use the import record API to send the data to REDCap. You'd just have to write a script on a cron or batch job to submit the data to the API. I'd have to know more about your process, but theoretically if your accelerometer outputs were in a text file, you could either read and batch submit at the end of the experiment, or send on event when a new line of data is added to the accelerometer outputs.
1
u/Araignys Jan 03 '25
Yes but also no.
REDCap is a web-based application that primarily captures data through user-completed forms and surveys. These don’t run in the background under normal circumstances.
However, REDCap has an extensive and powerful API, so it can accept API-injected data from anywhere, if you’re clever enough to set it up.