Thank you for your donation!


Does moOde support MPD satellite mode?
#1
Question 
Hi,
Currently (with my home server -Ubuntu server and RPI2 (Rasbian) as satellite) I use MPD in the satellite setup:
https://www.musicpd.org/doc/html/user.ht...lite-setup
.
Can I edit/adjust mpd.conf manually in the moOde OS and use satellite setup?
Thanks and regards,
Reply
#2
You can edit mpd.conf but it will get overwritten during moOde startup or anytime the MPD Config screen is saved. You could also edit function updMpdConf() in /var/www/inc/playerlib.php and then your settings would be preserved.

I could consider adding Satellite mode as an option but I would need to know more about the usage scenario and whether its generally applicable.

-Tim
Reply
#3
(07-12-2019, 09:01 PM)Tim Curtis Wrote: ....
I could consider adding Satellite mode as an option but I would need to know more about the usage scenario and whether its generally applicable.
....

Hi,
It would be great.
I could describe the usage MPD's satellite setup on my example.
As I understand the satellite means client in client-server architecture.
There could be many satellites (players) and one server (file server eg. Samba server) and MPD is installed on many instances (clients and server). Each MPD instance has its own configuration  in the mpd.conf file.
The satelitte mode and using proxy plugin should help in fast (player- file server) communication significantly improving scan/rescan/update music database/library.

I use home server  Ubuntu server (address: 10.10.10.1) based on x-64 Intel Apollo Lake for many home services: Router, Firewall, NAS, Media server, WIFI AP, Open VPN, etc
My music collection (files) is on hard disk mounted to my Ubuntu server.
I have several DHCP LAN and WI_FI hosts/users. One of them is RPI2 10.10.11.19 (connected by USB WIFI) with newest rsabian Buster.
Below there are fragments of /etc/mpd.conf for server and RPI2.
mpd.conf on Ubuntu server:
Code:
music_directory        "/var/lib/mpd/music"
database {
 plugin "simple"
 path "/var/lib/mpd/db"
 cache_directory "/var/lib/mpd/cache"
}
playlist_directory        "/var/lib/mpd/playlists"
#db_file            "/var/lib/mpd/tag_cache"
log_file            "/var/log/mpd/mpd.log"
#pid_file            "/run/mpd/pid"
state_file            "/var/lib/mpd/state"
sticker_file                   "/var/lib/mpd/sticker.sql"
user                "mpd"
group                          "audio"
bind_to_address        "10.10.10.1"
........................
mpd.conf on RPI2
Code:
music_directory        "smb://mpd:mpd@10.10.10.1/music"
database {
      plugin "proxy"
      host "10.10.10.1"
      port "6600"
}
playlist_directory        "/var/lib/mpd/playlists"
#db_file            "/var/lib/mpd/tag_cache"
log_file            "/var/log/mpd/mpd.log"
#pid_file            "/run/mpd/pid"
#state_file            "/var/lib/mpd/state"
#sticker_file                   "/var/lib/mpd/sticker.sql"
user                "mpd"
group                          "audio"
bind_to_address        "10.10.11.19"
.................

I run the newest MPD v. 0.21.11 on server and RPI2 side.
I hope this helps.
Regards,
B
Reply
#4
The challenge is that this config does not seem to be generally applicable...
Reply


Forum Jump: