remove userconfig.sh

add config.json
update readme
This commit is contained in:
Martin Selbmann 2020-09-23 21:43:44 +02:00
parent 8f51e8d84b
commit d98723df33
3 changed files with 23 additions and 24 deletions

View File

@ -24,8 +24,8 @@
### onair.mp4
* placeholder videofile for "On Air"-Message
### userconfig.sh
* currently not in use
### config.json
* the config file in future
### volumetest.sh
* testscript for ramping soundcard output volume

21
config.json Normal file
View File

@ -0,0 +1,21 @@
{
"swupgpio": "23",
"player": "cvlc",
"playerparam": "--play-and-exit --quiet --no-osd -A alsa --alsa-audio-device=front:CARD=Device,DEV=0",
"pgrepplayer": "vlc",
"buzzer": {
"buzzergpio": "0",
"buzzertimeout": "2",
"pollingtime": "0.05",
"strobegpio": "2",
"strobeduration": "1",
"swdowngpio": "25",
"playerloop": "--loop",
"volumetimeout": "0.1",
"volumedelay": "0.1",
"volumemax": "60"
},
"RandomVideo": {
"folder": "/mnt/video"
}
}

View File

@ -1,22 +0,0 @@
#!/bin/sh
# SPDX-License-Identifier: Unlicense
# generic
export player="cvlc" # command to run player
export playerparam="--play-and-exit --quiet --no-osd -A alsa --alsa-audio-device=front:CARD=Device,DEV=0" # parameters for player
export pgrepplayer="vlc" # expression for pgrep an pkill to detect player process
export swupgpio=23 # gpio for switchup stat
# buzzer.sh
export playerloop="--loop" # parameter for player loop function (leave blank if unused)
export buzzgpio=0 # gpio for buzzer
export buzzertimeout=2 # delay between buzzer presses
export strobegpio=2 # gpio for strobelight relay
export strobeduration=1 # duration of switch on stat from strobelight
export swdowngpio=25 # gpio for switchdown stat
export pollingtime=0.05 # refresh time of gpio stats
export volumemax=100 # maximal volume allowed
export volumetimeout=0.1 # duration between volume up/down steps
# RandomVideo.sh
export folder="/mnt/video" # folder with the video files