Toastie 7a10a0436c fixed path to bash vor 4 Jahren
..
data 7a10a0436c fixed path to bash vor 4 Jahren
.dockerignore 864afeb517 added more runtime files vor 4 Jahren
.env 992ed37909 added mount to music vor 4 Jahren
.gitignore 2a8c54196c added more runtime files vor 4 Jahren
Dockerfile e3ba6be75d made use of ARG gid_input vor 4 Jahren
README.md bf2515d716 added more details vor 4 Jahren
docker-compose.yml 9a2fea3e16 added restart policy vor 4 Jahren

README.md

RFID Acton Controller (rfidac)

Credits

The idea and most code was borrowed from here, thanks Thomas!

Introduction

The rdicac is the central piece of user interaction which reads the USB card reader and takes action. The full picture is explained in the dudelbox readme. This container runs under uid 100 with the gid set in the Dockerfile build ARG gid_input (default 105). The gid should represent the group input on the Docker host to make /dev/input/event0 accessible.

Script Overview

  • rfid-test.py simplified script that prints detected tag IDs to the docker log
  • rfidac.py reads the rfid tags and runs respective bash scripts with threshold when the same tag was detected twice
  • - - _action_template is the template copied when no corresponding bash script was found
  • _mpd_helper is a collection of common functions sourced by the bash scripts