{{ content().heading }}
++ + {{ content().subheading }} + +
+diff --git a/AdminInterface/www/mupi.php b/AdminInterface/www/mupi.php index 7b1441fb..75bd4356 100644 --- a/AdminInterface/www/mupi.php +++ b/AdminInterface/www/mupi.php @@ -441,6 +441,75 @@ $CHANGE_TXT=$CHANGE_TXT."
Caps the total daily listening time on the box. When the limit is reached, playback stops and new playback is refused until the next day. Set a day to 0 to block playback completely on that day. Settings take effect after saving (the player is restarted automatically).
+Enable / disable the daily limit:
+ +Hour of day at which the counter resets to 0. 0 = midnight. Use e.g. 4 if you don't want a reset to interrupt late evening listening.
+ +When the daily limit is reached, allow playback to continue for up to this many additional minutes so the current track can finish naturally. The player stops at the next track boundary (for local files / radio / RSS) or at the latest when this grace runs out. 0 = stop immediately at the limit. Default: 10. Maximum: 60.
+ + min +Set 0 to block playback entirely on that day. Maximum 1440 (= 24 h).
+| Day | Minutes per day |
|---|---|
| '.$label.' | min |
Define time windows per weekday during which playback is automatically blocked (e.g. homework, mealtimes, bedtime). Multiple windows per day are supported.
+How a window is interpreted:
+from 20:00 → to 08:00 blocks playback Monday evening and Tuesday morning until 08:00. You do not need a separate Tuesday entry for the same night.14:00 → 16:00 (Homework) alongside 20:00 → 08:00 (Bedtime) to block both periods.Settings take effect after saving (the player is restarted automatically).
+Enable / disable quiet hours:
+ +When a quiet window starts, allow up to this many additional minutes for the current track to finish naturally. 0 = stop immediately at the window boundary. Default: 10. Maximum: 60.
+ min +Use „+ Add window" to add another row to a day. Empty rows are ignored on save.
+ 'Monday', + 'tue' => 'Tuesday', + 'wed' => 'Wednesday', + 'thu' => 'Thursday', + 'fri' => 'Friday', + 'sat' => 'Saturday', + 'sun' => 'Sunday', + ); + foreach( $qh_day_labels as $key => $label ) { + $windows = isset($qh_schedule[$key]) && is_array($qh_schedule[$key]) ? $qh_schedule[$key] : array(); + echo '| From | To | Label (optional) | |
|---|---|---|---|
| '; + echo ' | '; + echo ' | '; + echo ' | '; + echo ' |