You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+34-8
Original file line number
Diff line number
Diff line change
@@ -146,6 +146,7 @@ PulseServer: ""
146
146
MountConfig: "mpd"
147
147
MPDCueSubfolder: ".disc-cuer"
148
148
MPDUSBSubfolder: ".udisks"
149
+
Schedule: {}
149
150
150
151
```
151
152
@@ -159,13 +160,7 @@ The type of connection to use. Supported values:
159
160
160
161
- **Address**:
161
162
- For Type: `"unix"`, this is the path to the MPD socket file (e.g., `/var/run/mpd/socket` ) *(recommended)*.
162
-
- For Type: `"tcp"`, this is the <hostname>:<port> of the MPD server (e.g., `127.0.0.1:6600`) *(default)*. *(Even though remote MPD server are supported, they won't work without additional setup not covered in this documentation)*
163
-
164
-
165
-
#### Notifications Options
166
-
- **AudioBackend**: `"pulse"` *(default)*, `"alsa"` or `"none` (disable notifications).
167
-
- **PulseServer**: Check [Pulseaudio Server String doc](https://www.freedesktop.org/wiki/Software/PulseAudio/Documentation/User/ServerStrings/)
168
-
- **SoundsLocation**: `"/usr/local/share/mpd-discplayer"` *(default)*. No default sounds are provided at the moment. Notifications expect `in.mp3`, `out.mp3` and `error.mp3` to be present in the specified folder or notifications will be disabled.
163
+
- For Type: `"tcp"`, this is the <hostname>:<port> of the MPD server (e.g., `127.0.0.1:6600`) *(default)*.
169
164
170
165
#### Mouting Options
171
166
For USB stick support, the content of the stick must be made available in MPD database. MPD-Discplayer supports the native mpd mouting feature, or symlinks for MPD servers that do not support this feature.
@@ -175,6 +170,36 @@ For USB stick support, the content of the stick must be made available in MPD da
175
170
- **MPDLibraryFolder**: path to MPD music_directory *(self discovered when using MPD unix socket)*
176
171
- **MPDUSBSubfolder**: path inside `MPDLibraryFolder` to store symlinks to usb original mountpoints. Only with `MountConfig: "symlink"`, not used with `MountConfig: "mpd"`
177
172
173
+
#### Schedule Option
174
+
The Schedule option allows you to automate playback of MPD-compatible URIs based on a cron schedule. It currently supports the following:
175
+
- **Webradio** URIs (e.g., HTTP streams).
176
+
- **Audio CDs** (using cdda:// protocol).
177
+
- **USB devices** (using mount points or symlinks).
178
+
- **MPD Database** (use `mpc listall` to list MPD Database)
179
+
180
+
Incompatible cron will be discarded and logged on startup. A notification will be trigerred before starting the scheduled playback and if an error happens while loading the uri.
181
+
182
+
Example configuration:
183
+
184
+
```yaml
185
+
Schedule:
186
+
# Play a reggae radio stream on weekdays at 6:30 AM
# Play from a USB device (symlink mount) on Sundays at 9:00 PM
191
+
"0 21 * * 7": ".udisks/{usb_label}"
192
+
# Play from an MPD-mounted USB device on Sundays at 9:00 PM
193
+
"0 21 * * 7": "{usb_label}"
194
+
195
+
```
196
+
Note: Ensure that the `usb_label` matches the label of the USB device. For audio CDs, only `cdda://` protocol is supported for now.
197
+
198
+
#### Notifications Options
199
+
- **AudioBackend**: `"pulse"` *(default)*, `"alsa"` or `"none` (disable notifications).
200
+
- **PulseServer**: Check [Pulseaudio Server String doc](https://www.freedesktop.org/wiki/Software/PulseAudio/Documentation/User/ServerStrings/)
201
+
- **SoundsLocation**: `"/usr/local/share/mpd-discplayer"` *(default)*. No default sounds are provided at the moment. Notifications expect `in.mp3`, `out.mp3` and `error.mp3` to be present in the specified folder or notifications will be disabled.
202
+
178
203
### Environment Variables
179
204
180
205
If a configuration file is not provided, you can use environment variables to set the same options. Below is the list of supported variables and their defaults (if applicable):
@@ -192,7 +217,8 @@ If a configuration file is not provided, you can use environment variables to se
0 commit comments