projects:pimpd
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
projects:pimpd [2020/04/18 18:59] – created hibby | projects:pimpd [2022/10/05 15:52] (current) – hibby | ||
---|---|---|---|
Line 2: | Line 2: | ||
- | Music in the space is controlled by a Raspberry Pi running MPD. [[User: | + | Music in the space is controlled by a VM on [[projects: |
The address for the Pi MPD is ''' | The address for the Pi MPD is ''' | ||
- | |||
===== Controlling the Music ===== | ===== Controlling the Music ===== | ||
- | |||
You can connect to the player using the webpage interface or via an MPD client. Clients for some architectures are listed below: | You can connect to the player using the webpage interface or via an MPD client. Clients for some architectures are listed below: | ||
Line 13: | Line 11: | ||
==== Webpage ==== | ==== Webpage ==== | ||
- | Visit [[http:// | + | Visit [[http:// |
==== iOS ==== | ==== iOS ==== | ||
Line 21: | Line 19: | ||
==== Android ==== | ==== Android ==== | ||
- | [[https:// | + | [[https:// |
==== Linux ==== | ==== Linux ==== | ||
- | [[http:// | + | [[http:// |
alias pimpd=" | alias pimpd=" | ||
Line 33: | Line 31: | ||
===== Adding music ===== | ===== Adding music ===== | ||
- | Adding music to MPD is done via our anonymous FTP service! | + | Adding music to MPD is done via our anonymous FTP service |
+ | ==== FTP ==== | ||
It appears to be the fashion to make yourself a user folder, so if you don't have one, do that! | It appears to be the fashion to make yourself a user folder, so if you don't have one, do that! | ||
- | ==== Adding via CLI ==== | + | === Adding via CLI === |
First navigate to the folder on your computer that where you have music kept: | First navigate to the folder on your computer that where you have music kept: | ||
> cd / | > cd / | ||
- | Then connect to the PiMPD vis ssh: | + | Then connect to [[projects: |
- | > sftp username@172.31.4.10 | + | > sftp username@172.23.152.7 |
' | ' | ||
> cd username | > cd username | ||
Line 50: | Line 49: | ||
> sftp --help | > sftp --help | ||
- | ==== Other methods | + | === Other methods === |
You can also add tracks to your folder with an alternative application such as [[https:// | You can also add tracks to your folder with an alternative application such as [[https:// | ||
- | ===== Notes ===== | + | ==== NFS ==== |
- | Each user is allocated 5 gigglebytes of storage (the hdd is not huge!). Also the library is automatically scanned by the MPD player when a change is made. | + | |
+ | Use NFS to mount '' | ||
===== Listening to the music ===== | ===== Listening to the music ===== | ||
- | The MPD audio plays directly out to the social room speakers. It also broadcasts on the space network via icecast. To listen in, use an icecast player (VLC works well) and play the following network address: | + | ==== Speakers ==== |
+ | |||
+ | Currently, the playback-pi is configured to play whatever mpd is pushing to snapcast. | ||
+ | |||
+ | This is connected to the loudspeakers at the media workstation, | ||
+ | |||
+ | |||
+ | ==== Snapclient ==== | ||
+ | |||
+ | The mpd server uses [[https:// | ||
+ | |||
+ | On Debian, you only need to do the following while on our network to make your laptop sing in sync: | ||
+ | |||
+ | < | ||
+ | < | ||
+ | |||
+ | To shut it up, | ||
+ | < | ||
+ | |||
+ | ==== HTTP Stream ==== | ||
+ | |||
+ | It also broadcasts on the space network via HTTP. To listen in, use an icecast player (VLC works well) and play the following network address: | ||
http:// | http:// | ||
+ | |||
+ | This will lag the snapcast stream by some undefined quantity of time. | ||
===== Blame ===== | ===== Blame ===== | ||
To figure out who is to blame for adding a track that is currently playing you want (to run bash and then run) either: | To figure out who is to blame for adding a track that is currently playing you want (to run bash and then run) either: | ||
- | dirname $(mpc -h 172.31.4.11 search Title "`pimp -h 172.31.4.11 current | tr " - " " | + | dirname $(mpc -h 172.23.152.9 search Title "`pimp -h 172.31.4.11 current | tr " - " " |
or: | or: | ||
- | dirname $(pimp -h 172.31.4.11 current) | + | dirname $(pimp -h 172.23.152.9 current) |
if the track didn't have any tags and the current was returning the file name. It should be possible to have a machine decide which command was needed... | if the track didn't have any tags and the current was returning the file name. It should be possible to have a machine decide which command was needed... | ||
- | {{tag> | + | |
+ | ===== VM Config ===== | ||
+ | |||
+ | The VM is a standard Debian Testing install, granted 1 core and 1GB RAM. | ||
+ | Alford exposes the music share folder as NFS read only, which is mounted in the vm at / | ||
+ | |||
+ | MPD is run using the stock systemd unit shipped by Debian. | ||
+ | Graphical frontend is [[https:// | ||
+ | |||
+ | Snapcast is provided by [[https:// | ||
+ | < | ||
+ | audio_output { | ||
+ | type " | ||
+ | name "my pipe" | ||
+ | path "/ | ||
+ | format | ||
+ | mixer_type | ||
+ | } | ||
+ | </ | ||
+ | ====== Future Ideas ====== | ||
+ | |||
+ | https:// | ||
+ | |||
+ | {{tag> | ||
projects/pimpd.1587236341.txt.gz · Last modified: 2020/07/07 20:48 (external edit)