70 lines
1.3 KiB
Markdown
70 lines
1.3 KiB
Markdown
# NBMrec
|
|
|
|
Daemon recorder for nocturnal bird migration
|
|
|
|
## Install
|
|
|
|
```bash
|
|
sudo make install
|
|
```
|
|
|
|
## Disable temporary
|
|
|
|
```bash
|
|
sudo systemctl disable --now nbmrec.timer
|
|
```
|
|
|
|
## Uninstall
|
|
|
|
```bash
|
|
sudo make uninstall
|
|
```
|
|
|
|
## Configuration
|
|
|
|
In [./usr/local/etc/nbmrec/nbmrec.conf](/usr/local/etc/nbmrec/nbmrec.conf), you can specify a start and end time:
|
|
|
|
```text
|
|
START_TIME=22:00
|
|
END_TIME=06:00
|
|
```
|
|
|
|
If you change the start date, you should update the systemd timer `nbmrec.timer` accordingly:
|
|
|
|
```text
|
|
#/etc/systemd/system/nbmrec.timer
|
|
[...]
|
|
OnCalendar=*-*-* 22:00
|
|
[...]
|
|
```
|
|
|
|
Do not forget to reload systemd daemon after that:
|
|
```bash
|
|
sudo systemctl daemon-reload
|
|
```
|
|
|
|
You could also prefer modify [./conf/nbmrec.conf](./conf/nbmrec.conf), and run `make install` after each modification.
|
|
|
|
You can set an other output folder for your records:
|
|
|
|
```text
|
|
RECORD_DIR=/mnt/DATA/media/records
|
|
```
|
|
|
|
Or a filename prefix for your recordings:
|
|
|
|
```text
|
|
PREFIX=nbmrec
|
|
```
|
|
|
|
This way, the records filename will be in the form `nbmrec_20220630_220000.wav`.
|
|
|
|
|
|
Enjoy !
|
|
|
|
## Reference
|
|
|
|
- [audio recording using python](https://realpython.com/playing-and-recording-sound-python/)
|
|
|
|
- [audio recording from command line](https://superuser.com/questions/1570333/how-can-i-record-audio-output-from-command-line-in-linux)
|