I'm building an automated audio recording system - and was wondering if I could get some advice...
My question in a nutshell: I need to run arecord, while also doing other things, then stop arecord at a specified time. I want to be able to check what it is doing as well (to make sure it is recording when it should be). How would I kick this off from a python or php script, and how would I check on the status? Would the php (or python) script 'wait' while arecord was running?
Background:
I have the Pi+Wolfson Audio card working. I desoldered the 2x13 pin header and replaced it with a stacking header (it isn't easy!). I have a RTC (no internet in location) and OLED display using the I2C bus. Eventually I'll have some sort of Pi UPS hooked up to the Pi to allow for a graceful power off, and a wifi adapter (Ad-hoc mode) to remotely manage it, possibly a GPIO expansion board (I2C) to get button inputs.
However, I'm struggling a little on the software side of things. I'm new to python, don't do too much bash/shell scripting. I'm much more comfortable with php. My application has a "few" parts:
Schedule (would be stored in a MySQL DB)
Web front-end to view files on the Pi, and do some operations (probably php).
Some way to control OLED (calling python scripts)
Some way to start and stop recording scripts
Originally, I figured I'd hardcode when to start/stop recording, via a CRON job. However, I've decided to make it more complex (hurray!), hence the setup described above...
Thanks,
John




