Development environment

I’m trying to setup the dev environment from the instructions at http://mopidy.readthedocs.io/en/latest/devenv/

Have reached the point where I start mopidy from the virtualenv (mopidy):

(mopidy) pi@mopidy2:~/mopidy-dev $ mopidy
INFO Starting Mopidy 2.0.0-77-gaa32936
INFO Loading config from builtin defaults
INFO Loading config from /home/pi/.config/mopidy/mopidy.conf
INFO Loading config from command line options
INFO Enabled extensions: mpd, alsamixer, http, stream, spotify_tunigo, mobile, m3u, softwaremixer, file, musicbox_webclient, podcast
INFO Disabled extensions: spotify, dirble, local
WARNING Found dirble configuration errors, the extension has been automatically disabled:
WARNING dirble/api_key must be set.
WARNING Found local configuration errors, the extension has been automatically disabled:
WARNING local/media_dir must be set.
WARNING Found spotify configuration errors, the extension has been automatically disabled:
WARNING spotify/username must be set.
WARNING spotify/password must be set.
WARNING Please fix the extension configuration errors or disable the extensions to silence these messages.
INFO Starting Mopidy mixer: SoftwareMixer
INFO Starting Mopidy audio
INFO Starting Mopidy backends: StreamBackend, M3UBackend, FileBackend, PodcastBackend, SpotifyTunigoBackend
INFO Audio output set to "autoaudiosink"
INFO Starting Mopidy core
INFO Starting Mopidy frontends: MpdFrontend, HttpFrontend
INFO MPD server running at [::ffff:127.0.0.1]:6600
INFO HTTP server running at [::ffff:127.0.0.1]:6680
INFO Starting GLib mainloop

I assumed that the configuration file to be used was the same as the one that I have for mopidy2.0.0, and therefore extensions such as spotify should work also work in the dev environment.

So I wonder if the above printout is expected or if I have some issue with the configuration files?

The normal config output is:
pi@mopidy2:~/mopidy-dev/mopidy $ sudo service mopidy start
pi@mopidy2:~/mopidy-dev/mopidy $ sudo mopidyctl config
Running “/usr/bin/mopidy --config /usr/share/mopidy/conf.d:/etc/mopidy/mopidy.conf config” as user mopidy
[core]
cache_dir = /var/cache/mopidy
config_dir = /etc/mopidy
data_dir = /var/lib/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 = /var/log/mopidy/mopidy-debug.log
config_file = /etc/mopidy/logging.conf

[audio]
mixer = alsamixer
mixer_volume = 55
output = autoaudiosink
buffer_time = 1000

[proxy]
scheme =
hostname =
port =
username =
password =

[musicbox_webclient]
enabled = false ; Extension disabled by user config.

[podcast]
enabled = true
browse_root = Podcasts.opml
browse_order = desc
lookup_order = asc
cache_size = 64
cache_ttl = 86400
timeout = 10

[mobile]
enabled = true
title = Mopidy Mobile on $hostname
ws_url =

[alsamixer]
enabled = true
card = 0
control = Master

[dirble]
enabled = true
api_key = a25cc4530f53f53eb8971375d9
countries =
US
GB
SE
timeout = 5000

[spotify_tunigo]
enabled = true
region =
sub_genres = true
cache_time = 3600

[spotify]
enabled = true
username = alexjaw69
password = ********
bitrate = 160
volume_normalization = true
private_session = false
timeout = 10
allow_cache = true
allow_network = true
allow_playlists = true
search_album_count = 20
search_artist_count = 10
search_track_count = 50
toplist_countries =

[mpd]
enabled = true
hostname = 192.168.1.42
port = 6600
password =
max_connections = 20
connection_timeout = 60
zeroconf = Mopidy MPD server on $hostname
command_blacklist =
listall
listallinfo
default_playlist_scheme = m3u

[http]
enabled = true
hostname = 192.168.1.42
port = 6680
static_dir =
zeroconf = Mopidy HTTP server on $hostname

[stream]
enabled = true
protocols =
http
https
mms
rtmp
rtmps
rtsp
metadata_blacklist =
timeout = 5000

[m3u]
enabled = true
base_dir =
default_encoding = latin-1
default_extension = .m3u8
playlists_dir = /var/lib/mopidy/playlists

[softwaremixer]
enabled = true

[file]
enabled = true
media_dirs =
$XDG_MUSIC_DIR|Music
~/|Home
show_dotfiles = false
follow_symlinks = false
metadata_timeout = 1000

[local]
enabled = true
library = json
media_dir = /var/lib/mopidy/media
scan_timeout = 1000
scan_flush_threshold = 100
scan_follow_symlinks = false
excluded_file_extensions =
.directory
.html
.jpeg
.jpg
.log
.nfo
.png
.txt

By default, Mopidy will look for its config file in ~/.config/mopidy/mopidy.conf, so this is normal behavior.

Only when running as a service, this location is changed to system config directory.

1 Like