RandomVideo/README.md

48 lines
1.5 KiB
Markdown
Raw Permalink Normal View History

2020-08-24 16:52:48 +02:00
# RandomVideo
2020-09-23 11:47:50 +02:00
* shell scripts to play a random video
* polls big button (buzzer) in left of lounge door
* polls 2-way-switch left from big button (buzzer)
2020-08-24 16:52:48 +02:00
2020-09-23 16:04:24 +02:00
## Usage instructions
### Buzzer commands
* button press (2s delay between presses) start or stop video
* switch up turns on "On Air"-mode (stops video and doesn't open new videos, button locked)
* switch down turns sound on, volume rises slowly and can be stopped with button press
* turn switch back from down to center position slowly decreases volume, it can be stopped when switch turned down again
2020-09-24 15:51:38 +02:00
## Install instructions
2020-09-24 21:22:35 +02:00
### crontab entries
2020-09-24 15:52:49 +02:00
* */15 * * * * cd ~/RandomVideo; ~/RandomVideo/RandomVideo.sh cron
2020-09-24 21:28:41 +02:00
* @reboot cd ~/RandomVideo; ~/RandomVideo/buzzer.sh & pid=$!; while ! ping -c1 git.chch.it>/dev/null; do sleep 1; done; git -C ~/RandomVideo/ pull; kill -9 $pid; ~/RandomVideo/buzzer.sh
2020-09-23 16:04:24 +02:00
2020-09-24 21:23:38 +02:00
### fstab entries
2020-09-24 21:22:35 +02:00
* UUID=DAE9-9682 /mnt/video vfat defaults,users,ro 0 1
2020-09-23 11:49:04 +02:00
## Filelist
2020-09-23 11:47:50 +02:00
### RandomVideo.sh
* Plays a random video file
### buzzer.sh
* polls buzzer and 2-way-switch
2020-09-23 12:02:53 +02:00
* volume control
* controls video playback
* controls "On Air"-mode
2020-09-23 11:47:50 +02:00
### onair.mp4
* placeholder videofile for "On Air"-Message
### config.json
* configfile with all config parameters
2020-09-23 11:47:50 +02:00
### volumetest.sh
* testscript for ramping soundcard output volume
* reads volume value from amixer
* not a necessary file
2020-12-18 00:21:49 +01:00
### Bild
![Chaostreff Gang Buzzer](chch_gang_buzzer.JPG)
2020-09-23 11:47:50 +02:00
## Licence
* All stuff in this repo is licenced under Unlicence.
* current onair.mp4 is excluded and a placeholder!