Skip to content

Commit

Permalink
feat: add stop/shutdown by rfid after 120,180,240min
Browse files Browse the repository at this point in the history
  • Loading branch information
t0b3 committed Dec 3, 2023
1 parent 4a190f2 commit e3b5219
Show file tree
Hide file tree
Showing 2 changed files with 54 additions and 0 deletions.
36 changes: 36 additions & 0 deletions scripts/rfid_trigger_play.sh
Original file line number Diff line number Diff line change
Expand Up @@ -246,6 +246,18 @@ if [ "$CARDID" ]; then
# stop player after -v minutes
$PATHDATA/playout_controls.sh -c=playerstopafter -v=60
;;
$STOPAFTER120)
# stop player after -v minutes
$PATHDATA/playout_controls.sh -c=playerstopafter -v=120
;;
$STOPAFTER180)
# stop player after -v minutes
$PATHDATA/playout_controls.sh -c=playerstopafter -v=180
;;
$STOPAFTER240)
# stop player after -v minutes
$PATHDATA/playout_controls.sh -c=playerstopafter -v=240
;;
$SHUTDOWNAFTER5)
# shutdown after -v minutes
$PATHDATA/playout_controls.sh -c=shutdownafter -v=5
Expand All @@ -261,6 +273,18 @@ if [ "$CARDID" ]; then
$SHUTDOWNAFTER60)
# shutdown after -v minutes
$PATHDATA/playout_controls.sh -c=shutdownafter -v=60
;;
$SHUTDOWNAFTER120)
# shutdown after -v minutes
$PATHDATA/playout_controls.sh -c=shutdownafter -v=120
;;
$SHUTDOWNAFTER180)
# shutdown after -v minutes
$PATHDATA/playout_controls.sh -c=shutdownafter -v=180
;;
$SHUTDOWNAFTER240)
# shutdown after -v minutes
$PATHDATA/playout_controls.sh -c=shutdownafter -v=240
;;
$SHUTDOWNVOLUMEREDUCTION10)
# reduce volume until shutdown in -v minutes
Expand All @@ -278,6 +302,18 @@ if [ "$CARDID" ]; then
# reduce volume until shutdown in -v minutes
$PATHDATA/playout_controls.sh -c=shutdownvolumereduction -v=60
;;
$SHUTDOWNVOLUMEREDUCTION120)
# reduce volume until shutdown in -v minutes
$PATHDATA/playout_controls.sh -c=shutdownvolumereduction -v=120
;;
$SHUTDOWNVOLUMEREDUCTION180)
# reduce volume until shutdown in -v minutes
$PATHDATA/playout_controls.sh -c=shutdownvolumereduction -v=180
;;
$SHUTDOWNVOLUMEREDUCTION240)
# reduce volume until shutdown in -v minutes
$PATHDATA/playout_controls.sh -c=shutdownvolumereduction -v=240
;;
$ENABLEWIFI)
$PATHDATA/playout_controls.sh -c=enablewifi
;;
Expand Down
18 changes: 18 additions & 0 deletions settings/rfid_trigger_play.conf.sample
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,12 @@ STOPAFTER15="%STOPAFTER15%"
STOPAFTER30="%STOPAFTER30%"
### Stop player after 60 min.
STOPAFTER60="%STOPAFTER60%"
### Stop player after 120 min.
STOPAFTER120="%STOPAFTER120%"
### Stop player after 180 min.
STOPAFTER180="%STOPAFTER180%"
### Stop player after 240 min.
STOPAFTER240="%STOPAFTER240%"

## Timer: shutdown after x minutes
### Shutdown after 5 min.
Expand All @@ -125,6 +131,12 @@ SHUTDOWNAFTER15="%SHUTDOWNAFTER15%"
SHUTDOWNAFTER30="%SHUTDOWNAFTER30%"
### Shutdown after 60 min.
SHUTDOWNAFTER60="%SHUTDOWNAFTER60%"
### Shutdown after 120 min.
SHUTDOWNAFTER120="%SHUTDOWNAFTER120%"
### Shutdown after 180 min.
SHUTDOWNAFTER180="%SHUTDOWNAFTER180%"
### Shutdown after 240 min.
SHUTDOWNAFTER240="%SHUTDOWNAFTER240%"

## Shutdown Timer Volume Reduction : reduce volume until shutdown in x minutes
### Reduce volume and Shutdown after 10 min.
Expand All @@ -135,6 +147,12 @@ SHUTDOWNVOLUMEREDUCTION15="%SHUTDOWNVOLUMEREDUCTION15%"
SHUTDOWNVOLUMEREDUCTION30="%SHUTDOWNVOLUMEREDUCTION30%"
### Reduce volume and Shutdown after 60 min.
SHUTDOWNVOLUMEREDUCTION60="%SHUTDOWNVOLUMEREDUCTION60%"
### Reduce volume and Shutdown after 120 min.
SHUTDOWNVOLUMEREDUCTION120="%SHUTDOWNVOLUMEREDUCTION120%"
### Reduce volume and Shutdown after 180 min.
SHUTDOWNVOLUMEREDUCTION180="%SHUTDOWNVOLUMEREDUCTION180%"
### Reduce volume and Shutdown after 240 min.
SHUTDOWNVOLUMEREDUCTION240="%SHUTDOWNVOLUMEREDUCTION240%"

## Wifi: switch on/off and other
### Enable Wifi
Expand Down

0 comments on commit e3b5219

Please sign in to comment.