Mopidy-Spotify-Web extension on Pi Musicbox?

I am moving this discussion (on Github) to this forum.

To recap briefly:
I installed the Mopidy-Spotify-Web extension (https://github.com/lfcabend/mopidy-spotify-web) on a Pi MusicBox (using pip install ...) and authenticated it successfully. I can see the plugin (under the ‘Browse’ menu-item in the Mopidy-MusicBox-Webclient) and it loads ‘Your Music’ from Spotify correctly. However, when I try to play a song my Raspberry Pi becomes unresponsive.

My main question is: Has anyone else tried / used this (on a Pi MusicBox installation)? And if so… can you help me with this?

Thanks in advance ;-).

No, I’ve not tried it. Does it support mopidy 0.19.5?

I think so…
According to the developer these are the dependencies:

  • Mopidy >= 0.19.0. The music server that Mopidy-Spotify-Tunigo extends.
  • Mopidy-Spotify >= 1.2.0. The Mopidy extension for playing music from Spotify.
  • Spotipy. A library for accessing the Spotify web-api.
  • requests. HTTP for Humans.

Maybe another good starting point to get this working is to increase the log output mopidy generates? But I cannot figure out how to do this with Pi MusicBox. It runs mopidy as a service right? So how should I specify log options when starting the server?

Revert the logging config in /etc/mopidy/ to default and restart.

Hmmm… I edited /etc/mopidy/logging.conf to match the version of the develop branch in the Pi MusicBox repo:

[loggers]
keys = root

[handlers]
keys = fileHandler

[formatters]
keys = simpleFormatter

[logger_root]
#level = INFO
level = WARNING
handlers = fileHandler

[handler_fileHandler]
class = FileHandler

#level = INFO
level = WARNING
formatter = simpleFormatter
args = ('/var/log/mopidy/mopidy.log',)

[formatter_simpleFormatter]
format = %(asctime)s - %(levelname)-8s %(message)s
datefmt =

However, the log output (to /var/log/mopidy/mopidy.log) stays the same. I cannot see why the Pi becomes unresponsive.

I meant revert it to the normal mopidy content. So comment out the changes
and uncomment the original values.

https://github.com/mopidy/mopidy/blob/debian/debian/etc/logging.conf

Ok… I’ve updated my logging config to match your file (@kingosticks). But I still can’t see any errors?

2015-11-16 20:16:50,907 INFO [2555:MainThread] mopidy.__main__: Starting Mopidy 0.19.5
2015-11-16 20:16:53,023 INFO [2555:MainThread] mopidy.config: Loading config from: builtin defaults, /etc/mopidy/extensions.d/spotify.conf, /etc/mopidy/mopidy.conf, command line options
2015-11-16 20:16:54,844 INFO [2555:MainThread] mopidy.__main__: Enabled extensions: mopify, spotify, mpd, http, spotify_web, stream, spotify_tunigo, mobile, podcast-gpodder, local-sqlite, podcast-itunes,$
2015-11-16 20:16:54,847 INFO [2555:MainThread] mopidy.__main__: Disabled extensions: alsamixer, gmusic, youtube, somafm, subsonic, internetarchive, audioaddict, musicbox_webclient, dirble, podcast, local$
2015-11-16 20:16:54,850 WARNING [2555:MainThread] mopidy.__main__: Found alsamixer configuration errors, the extension has been automatically disabled:
2015-11-16 20:16:54,853 WARNING [2555:MainThread] mopidy.__main__:   alsamixer/control must be set.
2015-11-16 20:16:54,856 WARNING [2555:MainThread] mopidy.__main__:   alsamixer/card must be set.
2015-11-16 20:16:54,858 WARNING [2555:MainThread] mopidy.__main__: Found musicbox_webclient configuration errors, the extension has been automatically disabled:
2015-11-16 20:16:54,861 WARNING [2555:MainThread] mopidy.__main__:   musicbox_webclient/musicbox unknown config key.
2015-11-16 20:16:54,864 WARNING [2555:MainThread] mopidy.__main__: Please fix the extension configuration errors or disable the extensions to silence these messages.
2015-11-16 20:16:57,392 INFO [2555:MainThread] mopidy.commands: Starting Mopidy mixer: SoftwareMixer
2015-11-16 20:16:57,399 INFO [2555:MainThread] mopidy.softwaremixer.mixer: Mixing using GStreamer software mixing
2015-11-16 20:16:57,415 INFO [2555:MainThread] mopidy.commands: Mixer volume set to 85
2015-11-16 20:16:57,419 INFO [2555:MainThread] mopidy.commands: Starting Mopidy audio
2015-11-16 20:16:57,439 INFO [2555:MainThread] mopidy.commands: Starting Mopidy backends: SpotifyTunigoBackend, SpotifyWebBackend, StreamBackend, SpotifyBackend
2015-11-16 20:16:57,628 INFO [2555:Audio-2] mopidy.audio.actor: Audio output set to "alsasink"
2015-11-16 20:16:57,720 INFO [2555:SpotifyWebBackend-4] requests.packages.urllib3.connectionpool: Starting new HTTPS connection (1): auth.mopidy.com
2015-11-16 20:16:57,862 INFO [2555:SpotifyBackend-7] mopidy_spotify.backend: Mopidy uses SPOTIFY(R) CORE
2015-11-16 20:16:57,968 INFO [2555:MainThread] mopidy.commands: Starting Mopidy core
2015-11-16 20:16:59,246 INFO [2555:SpotifyThread] mopidy_spotify.session_manager: Connected to Spotify
2015-11-16 20:16:59,481 INFO [2555:SpotifyWebBackend-4] requests.packages.urllib3.connectionpool: Starting new HTTPS connection (1): api.spotify.com
2015-11-16 20:17:00,638 INFO [2555:SpotifyWebBackend-4] requests.packages.urllib3.connectionpool: Starting new HTTPS connection (1): api.spotify.com
2015-11-16 20:17:01,635 INFO [2555:SpotifyWebBackend-4] requests.packages.urllib3.connectionpool: Starting new HTTPS connection (1): api.spotify.com
2015-11-16 20:17:02,484 INFO [2555:SpotifyWebBackend-4] requests.packages.urllib3.connectionpool: Starting new HTTPS connection (1): api.spotify.com
2015-11-16 20:17:03,345 INFO [2555:SpotifyWebBackend-4] requests.packages.urllib3.connectionpool: Starting new HTTPS connection (1): api.spotify.com
2015-11-16 20:17:04,246 INFO [2555:SpotifyWebBackend-4] requests.packages.urllib3.connectionpool: Starting new HTTPS connection (1): api.spotify.com
2015-11-16 20:17:05,135 INFO [2555:SpotifyWebBackend-4] requests.packages.urllib3.connectionpool: Starting new HTTPS connection (1): api.spotify.com
2015-11-16 20:17:06,354 INFO [2555:SpotifyWebBackend-4] requests.packages.urllib3.connectionpool: Starting new HTTPS connection (1): api.spotify.com
2015-11-16 20:17:07,459 INFO [2555:SpotifyWebBackend-4] requests.packages.urllib3.connectionpool: Starting new HTTPS connection (1): api.spotify.com
2015-11-16 20:17:08,384 INFO [2555:SpotifyWebBackend-4] requests.packages.urllib3.connectionpool: Starting new HTTPS connection (1): api.spotify.com
2015-11-16 20:17:09,305 INFO [2555:SpotifyWebBackend-4] requests.packages.urllib3.connectionpool: Starting new HTTPS connection (1): api.spotify.com
2015-11-16 20:17:10,343 INFO [2555:SpotifyWebBackend-4] requests.packages.urllib3.connectionpool: Starting new HTTPS connection (1): api.spotify.com
2015-11-16 20:17:11,174 INFO [2555:SpotifyWebBackend-4] requests.packages.urllib3.connectionpool: Starting new HTTPS connection (1): api.spotify.com
2015-11-16 20:17:12,017 INFO [2555:SpotifyWebBackend-4] requests.packages.urllib3.connectionpool: Starting new HTTPS connection (1): api.spotify.com
2015-11-16 20:17:12,854 INFO [2555:SpotifyWebBackend-4] requests.packages.urllib3.connectionpool: Starting new HTTPS connection (1): api.spotify.com
2015-11-16 20:17:13,660 INFO [2555:SpotifyWebBackend-4] requests.packages.urllib3.connectionpool: Starting new HTTPS connection (1): api.spotify.com
2015-11-16 20:17:14,443 INFO [2555:SpotifyWebBackend-4] requests.packages.urllib3.connectionpool: Starting new HTTPS connection (1): api.spotify.com
2015-11-16 20:17:15,224 INFO [2555:SpotifyWebBackend-4] requests.packages.urllib3.connectionpool: Starting new HTTPS connection (1): api.spotify.com
2015-11-16 20:17:16,047 INFO [2555:SpotifyWebBackend-4] requests.packages.urllib3.connectionpool: Starting new HTTPS connection (1): api.spotify.com
2015-11-16 20:17:16,941 INFO [2555:SpotifyWebBackend-4] requests.packages.urllib3.connectionpool: Starting new HTTPS connection (1): api.spotify.com
2015-11-16 20:17:17,720 INFO [2555:SpotifyWebBackend-4] requests.packages.urllib3.connectionpool: Starting new HTTPS connection (1): api.spotify.com
2015-11-16 20:17:23,138 INFO [2555:MainThread] mopidy.commands: Starting Mopidy frontends: MpdFrontend, HttpFrontend, ScrobblerFrontend
2015-11-16 20:17:23,154 INFO [2555:MainThread] mopidy.mpd.actor: MPD server running at [::ffff:0.0.0.0]:6600
2015-11-16 20:17:23,184 INFO [2555:HttpFrontend-12] mopidy.http.actor: HTTP server running at [::ffff:0.0.0.0]:6680
2015-11-16 20:17:23,785 INFO [2555:ScrobblerFrontend-13] mopidy_scrobbler.frontend: Scrobbler connected to Last.fm
2015-11-16 20:18:47,735 INFO [2555:HttpServer] tornado.access: 200 GET / (127.0.0.1) 108.79ms
2015-11-16 20:18:56,865 INFO [2555:HttpServer] tornado.access: 304 GET / (192.168.0.177) 10.85ms
2015-11-16 20:18:56,898 INFO [2555:HttpServer] tornado.access: 304 GET /js/jquery-1.11.1.min.js (192.168.0.177) 14.17ms
2015-11-16 20:18:56,930 INFO [2555:HttpServer] tornado.access: 304 GET /css/jquery.mobile.flatui.css (192.168.0.177) 20.65ms
2015-11-16 20:18:56,953 INFO [2555:HttpServer] tornado.access: 304 GET /css/font-awesome.css (192.168.0.177) 12.48ms
2015-11-16 20:18:56,976 INFO [2555:HttpServer] tornado.access: 304 GET /css/webclient.css (192.168.0.177) 11.92ms
2015-11-16 20:18:57,007 INFO [2555:HttpServer] tornado.access: 304 GET /js/jquery.mobile-1.3.2.min.js (192.168.0.177) 19.63ms
2015-11-16 20:18:57,029 INFO [2555:HttpServer] tornado.access: 304 GET /css/jquery.mobile.iscrollview.css (192.168.0.177) 11.60ms
2015-11-16 20:18:57,054 INFO [2555:HttpServer] tornado.access: 304 GET /js/jquery.cookie.js (192.168.0.177) 11.61ms
2015-11-16 20:18:57,076 INFO [2555:HttpServer] tornado.access: 304 GET /js/controls.js (192.168.0.177) 11.79ms
2015-11-16 20:18:57,098 INFO [2555:HttpServer] tornado.access: 304 GET /js/functionsvars.js (192.168.0.177) 11.91ms
2015-11-16 20:18:57,120 INFO [2555:HttpServer] tornado.access: 304 GET /js/streamuris.js (192.168.0.177) 11.61ms
2015-11-16 20:18:57,142 INFO [2555:HttpServer] tornado.access: 304 GET /js/lastfm.api.js (192.168.0.177) 11.92ms
2015-11-16 20:18:57,164 INFO [2555:HttpServer] tornado.access: 304 GET /js/iscroll-lite.js (192.168.0.177) 11.85ms
2015-11-16 20:18:57,186 INFO [2555:HttpServer] tornado.access: 304 GET /js/jquery.truncate.min.js (192.168.0.177) 11.42ms
2015-11-16 20:18:57,208 INFO [2555:HttpServer] tornado.access: 304 GET /js/library.js (192.168.0.177) 11.70ms
2015-11-16 20:18:57,229 INFO [2555:HttpServer] tornado.access: 304 GET /js/process_ws.js (192.168.0.177) 11.69ms
2015-11-16 20:18:57,250 INFO [2555:HttpServer] tornado.access: 304 GET /js/lastfm.api.md5.js (192.168.0.177) 11.92ms
2015-11-16 20:18:57,272 INFO [2555:HttpServer] tornado.access: 304 GET /js/lastfm.api.cache.js (192.168.0.177) 11.49ms
2015-11-16 20:18:57,294 INFO [2555:HttpServer] tornado.access: 304 GET /mopidy/mopidy.min.js (192.168.0.177) 11.91ms
2015-11-16 20:18:57,315 INFO [2555:HttpServer] tornado.access: 304 GET /js/images.js (192.168.0.177) 11.43ms
2015-11-16 20:18:57,336 INFO [2555:HttpServer] tornado.access: 304 GET /images/default_cover.png (192.168.0.177) 11.45ms
2015-11-16 20:18:57,371 INFO [2555:HttpServer] tornado.access: 304 GET /js/gui.js (192.168.0.177) 11.78ms
2015-11-16 20:18:57,394 INFO [2555:HttpServer] tornado.access: 304 GET /images/icons/pause_32x32.png (192.168.0.177) 13.49ms
2015-11-16 20:18:57,417 INFO [2555:HttpServer] tornado.access: 304 GET /css/images/ajax-loader.gif (192.168.0.177) 11.65ms
2015-11-16 20:18:57,564 INFO [2555:HttpServer] tornado.access: 304 GET /css/images/icons-36-white.png (192.168.0.177) 11.90ms
2015-11-16 20:18:57,914 INFO [2555:HttpServer] tornado.access: 304 GET /images/icons/play_alt_32x32.png (192.168.0.177) 11.40ms
2015-11-16 20:18:57,943 WARNING [2555:HttpServer] tornado.access: 404 GET /css/fonts/lato-regular.woff (192.168.0.177) 9.96ms
2015-11-16 20:18:57,963 WARNING [2555:HttpServer] tornado.access: 404 GET /css/fonts/lato-bold.woff (192.168.0.177) 9.27ms
2015-11-16 20:18:57,983 WARNING [2555:HttpServer] tornado.access: 404 GET /css/fonts/lato-italic.woff (192.168.0.177) 9.84ms
2015-11-16 20:18:58,012 INFO [2555:HttpServer] tornado.access: 304 GET /css/fonts/fontawesome-webfont.woff?v=4.3.0 (192.168.0.177) 15.19ms
2015-11-16 20:18:58,036 WARNING [2555:HttpServer] tornado.access: 404 GET /css/fonts/lato-bold.ttf (192.168.0.177) 9.39ms
2015-11-16 20:18:58,055 WARNING [2555:HttpServer] tornado.access: 404 GET /css/fonts/lato-italic.ttf (192.168.0.177) 9.87ms
2015-11-16 20:18:58,080 WARNING [2555:HttpServer] tornado.access: 404 GET /css/fonts/lato-black.woff (192.168.0.177) 9.38ms
2015-11-16 20:18:58,803 WARNING [2555:HttpServer] tornado.access: 404 GET /css/fonts/lato-regular.ttf (192.168.0.177) 10.26ms
2015-11-16 20:18:58,822 WARNING [2555:HttpServer] tornado.access: 404 GET /css/fonts/lato-black.ttf (192.168.0.177) 9.25ms
2015-11-16 20:18:59,736 INFO [2555:HttpServer] tornado.access: 304 GET /images/icons/play_alt_32x32.png (192.168.0.177) 11.33ms