blog:articles:raspberry:mpd_multiroom
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
blog:articles:raspberry:mpd_multiroom [2024/06/16 14:49] – created Phil Ide | blog:articles:raspberry:mpd_multiroom [2024/06/21 13:09] (current) – Phil Ide | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ~~NOCACHE~~ | ||
====== Whole-home Music ====== | ====== Whole-home Music ====== | ||
Line 51: | Line 52: | ||
===== Snapcast Features ===== | ===== Snapcast Features ===== | ||
- | You put some music on, and now your whole house is blaring the music out, and you may only want certain rooms playing music at any particular time. Snapcast provides a web page on port 1708 of your music centre e.g. < | + | You put some music on, and now your whole house is blaring the music out, and you may only want certain rooms playing music at any particular time. Snapcast provides a web page on port 1708 of your music centre e.g. < |
Before you turn anything off though, you may have noticed something else: all speakers in all rooms are synchronised, | Before you turn anything off though, you may have noticed something else: all speakers in all rooms are synchronised, | ||
+ | |||
+ | You'll also notice that the Snapcast web page also allows you to stream to your web browser. This means that you can stream to a device via Snapcast //or// via the MPD http stream. | ||
+ | |||
+ | ===== Turn into an Alarm Clock ===== | ||
+ | |||
+ | I've written some scripts for both Linux and Windows to turn the music system into an alarm clock. If you are running an Apple system, I'm sure you can make these scripts work for you. The scripts are written in PHP and are therefore cross-platform. | ||
+ | |||
+ | It is necessary to create a playlist on MPD called " | ||
+ | |||
+ | The first script is run as a cron job (or a Windows Scheduler task), and turns all the speakers off in the home except the device you designate as your bedroom unit. It then loads the Alarm playlist and starts it running. | ||
+ | |||
+ | The second script I run on boot of my desktop, and it turns the bedroom speakers off, and enables a list of designated speakers, so I don't have to manually turn them on myself - because why do it yourself when you can automate it? | ||
+ | |||
+ | The scripts are on GitHub at [[https:// | ||
+ | |||
+ | I have other repositories there too at [[https:// | ||
+ | |||
+ | ~~socialite~~ | ||
+ | ~~DISCUSSION~~ |
blog/articles/raspberry/mpd_multiroom.1718549369.txt.gz · Last modified: 2024/06/16 14:49 by Phil Ide