Congrats to this great tool!
System: Raspberry Pi, Raspian 4.1.4-v7+ #808 SMP PREEMPT
Installed mopidy through # Mopidy APT archive.
Added musicbox_webclient through sudo pip install Mopidy-MusicBox-Webclient.
All of the below worked before I did the upgrade to moipdy V 1.1. .
In order to run a single mopidy.conf for user mopidy, root and my only normal user, I use and edit this file
sudo nano /etc/mopidy/mopidy.conf
and copy it to the root and user home directory
sudo cp /root/.config/mopidy/mopidy.conf /etc/mopidy/mopidy.conf
sudo cp /root/.config/mopidy/mopidy.conf ~/.config/mopidy/mopidy.conf
mopidy.conf:
# For further information about options in this file see:
# xhttp://docs.mopidy.com/
#
# The initial commented out values reflect the defaults as of:
# Mopidy 1.1.0
# Mopidy-File 1.1.0
# Mopidy-HTTP 1.1.0
# Mopidy-Local 1.1.0
# Mopidy-M3U 1.1.0
# Mopidy-MPD 1.1.0
# Mopidy-MusicBox-Webclient 2.0.0
# Mopidy-SoftwareMixer 1.1.0
# Mopidy-Stream 1.1.0
#
# Available options and defaults might have changed since then,
# run `mopidy config` to see the current effective config and
# `mopidy --version` to check the current version.
[core]
cache_dir = $XDG_CACHE_DIR/mopidy
config_dir = $XDG_CONFIG_DIR/mopidy
data_dir = $XDG_DATA_DIR/mopidy
max_tracklist_length = 10000
[logging]
color = true
console_format = %(levelname)-8s %(message)s
debug_format = %(levelname)-8s %(asctime)s [%(process)d:%(threadName)s] %(name)s\n %(message)s
debug_file = mopidy.log
#debug_file = /mnt/server/music/mopidy.log
#debug_file = /var/log/mopidy/mopidy.log
config_file =
[audio]
mixer = software
mixer_volume =
output = autoaudiosink
[proxy]
scheme =
hostname =
port =
username =
password =
[musicbox_webclient]
enabled = true
musicbox = false
[mpd]
enabled = true
hostname = 0.0.0.0
port = 6600
password =
max_connections = 20
connection_timeout = 60
#zeroconf = Mopidy MPD server on $hostname
zeroconf =
command_blacklist =
# listall
# listallinfo
[http]
enabled = true
hostname = 0.0.0.0
port = 6680
static_dir =
#zeroconf = Mopidy HTTP server on $hostname
zeroconf =
[stream]
enabled = yes
#protocols =
# http
# https
# mms
# rtmp
# rtmps
# rtsp
#metadata_blacklist =
#timeout = 5000
[m3u]
enabled = true
#playlists_dir = $XDG_DATA_DIR/mopidy/m3u
playlists_dir = /mnt/server/music/playlists
[softwaremixer]
enabled = true
[file]
enabled = true
# media_dirs = $XDG_MUSIC_DIR|Music
media_dirs = /mnt/server/music/music
# ~/|Home
show_dotfiles = false
follow_symlinks = false
metadata_timeout = 1000
[local]
enabled = true
library = json
#media_dir = $XDG_MUSIC_DIR
media_dir = /mnt/server/music/music
data_dir = $XDG_DATA_DIR/mopidy/local
scan_timeout = 1000
scan_flush_threshold = 1000
scan_follow_symlinks = false
excluded_file_extensions =
# .directory
# .html
# .jpeg
# .jpg
# .log
# .nfo
# .png
# .txt
So sudo mopidy config shows
[core]
cache_dir = $XDG_CACHE_DIR/mopidy
config_dir = $XDG_CONFIG_DIR/mopidy
data_dir = $XDG_DATA_DIR/mopidy
max_tracklist_length = 10000
[logging]
color = true
console_format = %(levelname)-8s %(message)s
debug_format = %(levelname)-8s %(asctime)s [%(process)d:%(threadName)s] %(name)s\n %(message)s
debug_file = mopidy.log
config_file =
[audio]
mixer = software
mixer_volume =
output = autoaudiosink
[proxy]
scheme =
hostname =
port =
username =
password =
[musicbox_webclient]
enabled = true
musicbox = false
[mpd]
enabled = true
hostname = 0.0.0.0
port = 6600
password =
max_connections = 20
connection_timeout = 60
zeroconf =
command_blacklist =
[http]
enabled = true
hostname = 0.0.0.0
port = 6680
static_dir =
zeroconf =
[stream]
enabled = true
protocols =
http
https
mms
rtmp
rtmps
rtsp
metadata_blacklist =
timeout = 5000
[m3u]
enabled = true
playlists_dir = /mnt/server/music/playlists
[softwaremixer]
enabled = true
[file]
enabled = true
media_dirs =
/mnt/server/music/music
show_dotfiles = false
follow_symlinks = false
metadata_timeout = 1000
[local]
enabled = true
library = json
media_dir = /mnt/server/music/music
data_dir = $XDG_DATA_DIR/mopidy/local
scan_timeout = 1000
scan_flush_threshold = 1000
scan_follow_symlinks = false
excluded_file_extensions =
Question 1) does that work to have one mopidy.conf for all?
Question 2) why is there no content in /var/log/mopidy/mopidy.log?
Starting sudo mopidy and using the web frontend of
xhttp://xx.x.x.xx/musicbox_webclient/index.html#stream
most of the streams provide issues
Pinguin Radio:
** **(mopidy:3706): WARNING **: Cannot autolaunch D-Bus without X11 $DISPLAY
** **(mopidy:3706): WARNING **: Cannot autolaunch D-Bus without X11 $DISPLAY
** **(mopidy:3706): WARNING **: Cannot autolaunch D-Bus without X11 $DISPLAY
** **(mopidy:3706): WARNING **: Cannot autolaunch D-Bus without X11 $DISPLAY
** **(mopidy:3706): WARNING **: Cannot autolaunch D-Bus without X11 $DISPLAY
WARNING Problem scanning URI xhttp://pr320.pinguinradio.com/listen.pls: Could not determine type of stream.
WARNING Track is not playable: xhttp://pr320.pinguinradio.com/listen.pls
=> and no sound
Groove Salad:
** **(mopidy:3706): WARNING **: Cannot autolaunch D-Bus without X11 $DISPLAY
** **(mopidy:3706): WARNING **: Cannot autolaunch D-Bus without X11 $DISPLAY
** **(mopidy:3706): WARNING **: Cannot autolaunch D-Bus without X11 $DISPLAY
** **(mopidy:3706): WARNING **: Cannot autolaunch D-Bus without X11 $DISPLAY
** **(mopidy:3706): WARNING **: Cannot autolaunch D-Bus without X11 $DISPLAY
** **(mopidy:3706): WARNING **: Cannot autolaunch D-Bus without X11 $DISPLAY
** **(mopidy:3706): WARNING **: Cannot autolaunch D-Bus without X11 $DISPLAY
** **(mopidy:3706): WARNING **: Cannot autolaunch D-Bus without X11 $DISPLAY
** **(mopidy:3706): WARNING **: Cannot autolaunch D-Bus without X11 $DISPLAY
** **(mopidy:3706): WARNING **: Cannot autolaunch D-Bus without X11 $DISPLAY
ERROR StreamBackend needs to be updated to work with this version of Mopidy.
WARNING Track is not playable: xhttp://somafm.com/groovesalad.pls
=> no sound
BBC
** **(mopidy:3706): WARNING **: Cannot autolaunch D-Bus without X11 $DISPLAY
WARNING Element doesn’t implement handling of this stream. Please file a bug.
=> Sound works
Sublime FM, a stream I added:
** **(mopidy:3761): WARNING **: Cannot autolaunch D-Bus without X11 $DISPLAY
ERROR StreamBackend needs to be updated to work with this version of Mopidy.
WARNING Track is not playable: xhttp://8.201.47.68/SublimeFM2.m3u
=> no sound
Question 3) how do I get this working again ?
Regarding " StreamBackend needs to be updated" I tried to update the gstreamer 0.10 to a 1.0 Version, but it did not help.
Lastly, I try to have a radio stream playing when the mopidy comes up
by
sudo nano /etc/rc.local
#!/bin/sh
###!/bin/sh -e
#
# rc.local
#
# This script is executed at the end of each multiuser runlevel.
# Make sure that the script will "exit 0" on success or any other
# value on error.
#
# In order to enable or disable this script just change the execution
# bits.
#
# By default this script does nothing.
# Print the IP address
_IP=$(hostname -I) || true
if [ "$_IP" ]; then
printf "My IP address is %s\n" "$_IP"
fi
mount -a
mount
sudo service mopidy status
sudo service mopidy stop
sudo service mopidy status
sudo mopidy local scan
sudo mopidyctl local scan
sudo service mopidy start
sudo service mopidy status
sudo sleep 5
sudo mpc add http://82.201.47.68/SublimeFM2.m3u
sudo mpc play 1
exit 0
=> no sound.
trying
sudo mpc add http://8.201.47.68/SublimeFM2.m3u
sudo paden@ourpi2m ~ $ mpc play 1
to a
sudo mopidy Server
gives
INFO New MPD connection from [127.0.0.1]:50543
** (mopidy:3096): WARNING **: Cannot autolaunch D-Bus without X11 $DISPLAY
** (mopidy:3096): WARNING **: Cannot autolaunch D-Bus without X11 $DISPLAY
** (mopidy:3096): WARNING **: Cannot autolaunch D-Bus without X11 $DISPLAY
** (mopidy:3096): WARNING **: Cannot autolaunch D-Bus without X11 $DISPLAY
** (mopidy:3096): WARNING **: Cannot autolaunch D-Bus without X11 $DISPLAY
WARNING Problem scanning URI http://8.201.47.68/SublimeFM2.m3u: Timeout after 5000ms
WARNING Track is not playable: http://8.201.47.68/SublimeFM2.m3u
** (mopidy:3096): WARNING **: Cannot autolaunch D-Bus without X11 $DISPLAY
** (mopidy:3096): WARNING **: Cannot autolaunch D-Bus without X11 $DISPLAY
** (mopidy:3096): WARNING **: Cannot autolaunch D-Bus without X11 $DISPLAY
** (mopidy:3096): WARNING **: Cannot autolaunch D-Bus without X11 $DISPLAY
** (mopidy:3096): WARNING **: Cannot autolaunch D-Bus without X11 $DISPLAY
WARNING Problem scanning URI http://8.201.47.68/SublimeFM2.m3u: Timeout after 5000ms
WARNING Track is not playable: http://8.201.47.68/SublimeFM2.m3u
** (mopidy:3046): WARNING **: Cannot autolaunch D-Bus without X11 $DISPLAY
WARNING Problem scanning URI http://8.201.47.68/SublimeFM2.m3u: Timeout after 5000ms
WARNING Track is not playable: http://8.201.47.68/SublimeFM2.m3u
Question 4) Whats wrong with mopidy and mpc playing streams? Again, this worked before.
Looking forward to advise …