record-schedule - Record audio on a recurring schedule and post to a server using SoX and LAME
record-schedule is a CLI to run a background service that will:
- Automatically record audio on a recurring schedule using the
sox
CLI - Convert the audio to MP3 using the
lame
CLI - Post MP3 to a remote server
Installation
- Requires Node.js to be installed. You'll typically find this available in your OS package manager.
- Requires the
sox
andlame
CLI to be installed. npm install -g record-schedule
(You may need to run this undersudo
.)
Configuration
To locate your config.js file run:
$ record-schedule config
The config variables are:
configminutesToRecord = 10;configrecurrancehour = 15;configrecurranceminute = 30;configrecurrancesecond = 0;configrecurrancedayOfWeek = 5;configserverurl = '<url>';// Optional Parametersconfigparamsfoo = 'bar';
Recurrance
- Accepts the Recurrence Rule Scheduling formating from node-schedule node-schedule.
Running
- Run as a background service (creating OSX daemons requires sudo/root privileges)
$ record-schedule start
- To stop scheduled recordings
$ record-schedule stop