kissake / unattended_data_collection

This is a project intended to support unattended data collection in a way that protects the data being collected. The initial project is aimed at audio recording using a Raspberry Pi Zero (simple, low hanging fruit), with the intention of being extensible for other uses.
GNU General Public License v3.0
0 stars 0 forks source link

Recording does not begin when the microphone is connected (latency of 5 minutes on average) #4

Open kissake opened 2 years ago

kissake commented 2 years ago

Because recording is started using cron periodically (every 10 minutes on the 10th minute) and not otherwise, there is about 5 minutes between when the microphone is connected and recording begins.

The mitigation for this issue is that there is visual indication when the microphone begins recording (the LED is extinguished when the microphone is recording), but this does impact other issues.

kissake commented 2 years ago

The initial plan for this is to try to switch to using systemd and udev(?) to trigger recording automatically when microphone is attached. This will also be a good pattern for other data sources. It is of value to: