Go to file
Erik Thuning eab9808832 Implemented a workaround for permission problems on uploaded recordings.
The recorder uploads presentations without group write permissions, which is
necessary for the play-daemon to be able to properly process recordings.
Hence we set the group write permission on all newly detected uploads
2024-06-18 13:10:37 +02:00
watcher Implemented a workaround for permission problems on uploaded recordings. 2024-06-18 13:10:37 +02:00
.gitignore The application might be finished. Testing required. 2024-06-11 16:32:06 +02:00
arec-watcher.service Added documentation and systemd unit file 2024-06-13 13:36:00 +02:00
config.ini.example Fixed erroneous key name for log level in config.ini 2024-06-13 14:38:50 +02:00
README.md Implemented a workaround for permission problems on uploaded recordings. 2024-06-18 13:10:37 +02:00
requirements.txt Added requirements.txt 2024-06-04 16:11:19 +02:00

arec-watcher

A daemon program that watches an upload directory for new completed uploads from arec recorders and sends a notification to play-api to initiate processing of the uploaded presentation.

Setup

  • Clone the repo to /opt/arec-watcher
  • Create a python venv in the project root: python3 -m venv env (other names are possible but will cause some minor headaches)
  • Activate the environment: source env/bin/activate
  • Install dependencies: pip install -r requirements.txt

For development:

  • Run the program: python3 -m watcher

For production:

  • Copy config.ini.exampleto config.ini and set the proper parameters
  • Install the systemd unit file: sudo cp arec-watcher.service /etc/systemd/system/
  • Edit the unit file so the watcher runs as the same user that uploads arec recordings.
  • Activate the service: sudo systemctl enable arec-watcher.service
  • Run the service: sudo systemctl start arec-watcher.service