NBMrec/README.md

70 lines
1.3 KiB
Markdown
Raw Permalink Normal View History

2022-06-30 17:53:52 +02:00
# NBMrec
Daemon recorder for nocturnal bird migration
2022-06-30 18:30:37 +02:00
## Install
```bash
sudo make install
```
## Disable temporary
```bash
sudo systemctl disable --now nbmrec.timer
```
## Uninstall
```bash
sudo make uninstall
```
2022-07-01 07:31:53 +02:00
## Configuration
2022-06-30 18:30:37 +02:00
2022-07-01 07:37:04 +02:00
In [./usr/local/etc/nbmrec/nbmrec.conf](/usr/local/etc/nbmrec/nbmrec.conf), you can specify a start and end time:
2022-07-01 07:31:53 +02:00
```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
```
2022-07-01 07:32:57 +02:00
You could also prefer modify [./conf/nbmrec.conf](./conf/nbmrec.conf), and run `make install` after each modification.
2022-07-01 07:31:53 +02:00
2022-07-01 07:37:04 +02:00
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 !
2022-07-01 07:31:53 +02:00
## 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)