Does anyone know how to configure Pi Musicbox to start with a Tunin radio stream?
I have the stream configured in /boot/config/streamuris.js
Thanks!
The musicbox settings.ini
file documents this feature. any URI that Mopidy can recognise should work. Presumably you have the URI for your stream available in /boot/config/streamuris.js
. You’d want to have something along the lines of:
autoplay = tunein:station:sXXXXX
autoplaywait = 60
You should also be able to use the settings webpage to do the same thing.
Thanks for your quick reply kingosticks …
Albeit, it does not work
I tried this:
autoplay = "tunein:station:s138946"
autoplaywait = 60
and this:
autoplay = tunein:station:s138946
autoplaywait = 60
in both cases the log shows:
2015-01-15 19:05:22,044 - INFO TuneIn playlist request failed:
('Connection aborted.', BadStatusLine('ICY 200 OK\r\n',))
Do you have any other idea?
Thanks in advance!
Does that station work normally? That looks like an error from the requests
library. Hmm
Seems you have stumbled onto what looks like an incompatible stream. I’ll
have a play with this one, surprised it hasn’t come up before.
https://github.com/kennethreitz/requests/issues/2322
Yes, the stream works.
Takes sometimes more than one minute to start playing but than it playes for day’s without a problem.
The long startup time is almost the same for al my streams.
Playlists from Spotify start almost instantaniously.
I looked at issue 2322 but thats way over my head…
Mopidy-tunein should only be trying to request the playlist if Mopidy is unable to play the stream directly. But you say it can normally play the stream so I’m a bit confused why it’s doing this. Could you post more of the log please.
The whole log is:
2015-01-15 19:03:33,644 - INFO Starting Mopidy 0.19.4
2015-01-15 19:03:36,717 - INFO Loading config from: builtin defaults, /etc/mopidy/extensions.d/spotify.conf, /etc/mopidy/mopidy.conf, command line options
2015-01-15 19:03:38,333 - INFO Enabled extensions: spotify, mpd, http, stream, spotify_tunigo, podcast-gpodder, local-sqlite, scrobbler, http-kuechenradio, podcast-itunes, softwaremixer, local-whoosh, simple-webclient, moped, musicbox_webclient, websettings, local, tunein
2015-01-15 19:03:38,338 - INFO Disabled extensions: alsamixer, gmusic, youtube, somafm, subsonic, internetarchive, audioaddict, dirble, podcast, soundcloud
2015-01-15 19:03:38,342 - WARNING Found alsamixer configuration errors, the extension has been automatically disabled:
2015-01-15 19:03:38,347 - WARNING alsamixer/control must be set.
2015-01-15 19:03:38,351 - WARNING alsamixer/card must be set.
2015-01-15 19:03:38,355 - WARNING Please fix the extension configuration errors or disable the extensions to silence these messages.
2015-01-15 19:03:41,521 - INFO Starting Mopidy mixer: SoftwareMixer
2015-01-15 19:03:41,531 - INFO Mixing using GStreamer software mixing
2015-01-15 19:03:41,546 - INFO Mixer volume set to 80
2015-01-15 19:03:41,551 - INFO Starting Mopidy audio
2015-01-15 19:03:41,574 - INFO Starting Mopidy backends: SpotifyTunigoBackend, LocalBackend, StreamBackend, TuneInBackend, SpotifyBackend
2015-01-15 19:03:41,610 - WARNING Local media dir /var/log/mopidy/music does not exist.
2015-01-15 19:03:41,632 - WARNING Local media dir /var/log/mopidy/music does not exist.
2015-01-15 19:03:41,659 - INFO Loaded 0 local playlists from /var/lib/mopidy/playlists
2015-01-15 19:03:41,685 - INFO Loaded 0 local tracks using json
2015-01-15 19:03:41,788 - INFO Audio output set to "alsasink"
2015-01-15 19:03:42,058 - INFO Starting Mopidy core
2015-01-15 19:03:42,061 - INFO Mopidy uses SPOTIFY(R) CORE
2015-01-15 19:03:42,400 - INFO Starting Mopidy frontends: ScrobblerFrontend, MpdFrontend, HttpFrontend
2015-01-15 19:03:42,428 - INFO MPD server running at [::ffff:0.0.0.0]:6600
2015-01-15 19:03:42,448 - INFO HTTP server running at [::ffff:0.0.0.0]:6680
2015-01-15 19:03:48,213 - INFO Connected to Spotify
2015-01-15 19:03:58,619 - ERROR Error during Last.fm setup: Invalid username. No last.fm account associated with that name.
2015-01-15 19:04:10,805 - INFO Loaded 60 Spotify playlists
2015-01-15 19:04:58,848 - INFO New MPD connection from [::ffff:127.0.0.1]:50091
2015-01-15 19:04:59,117 - INFO Starting new HTTP connection (1): opml.radiotime.com
2015-01-15 19:05:04,584 - INFO New MPD connection from [::ffff:127.0.0.1]:50093
2015-01-15 19:05:04,842 - INFO Starting new HTTP connection (1): opml.radiotime.com
2015-01-15 19:05:21,717 - INFO Starting new HTTP connection (1): 199.180.72.6
2015-01-15 19:05:22,044 - INFO TuneIn playlist request failed: ('Connection aborted.', BadStatusLine('ICY 200 OK\r\n',))
2015-01-15 19:08:15,449 - INFO 200 GET / (127.0.0.1) 40.71ms
.
.
2015-01-15 19:52:23,188 - INFO 200 GET / (127.0.0.1) 18.15ms
2015-01-15 19:54:23,198 - INFO 304 GET /images/icons/play_alt_32x32.png (10.0.0.154) 28.71ms
2015-01-15 19:54:23,311 - INFO 304 GET /images/default_cover.png (10.0.0.154) 60.93ms
2015-01-15 19:54:23,589 - INFO 200 GET / (127.0.0.1) 15.00ms
2015-01-15 19:54:25,047 - INFO 304 GET /images/default_cover.png (10.0.0.154) 12.93ms
2015-01-15 19:54:25,082 - INFO 304 GET /images/icons/pause_32x32.png (10.0.0.154) 18.63ms
2015-01-15 19:56:23,931 - INFO 200 GET / (127.0.0.1) 15.18ms
.
.
2015-01-16 07:26:25,723 - INFO 200 GET / (127.0.0.1) 29.08ms
2015-01-16 07:28:26,091 - INFO 200 GET / (127.0.0.1) 14.30ms
Sorry, I don’t know how to attach a file…
HOLD THE PRESS!!!
Today I did what all (in)sane people do: I reinstalled the PIMUSICBOX image to a new SD-card.
Did all the configurations and … still the same message:
INFO TuneIn playlist request failed: ('Connection aborted.', BadStatusLine('ICY 200 OK\r\n',))
… but after a while the Tunin stream starts playing!!!
So, it does work. Still no idea what the message mean.
I’m not sure if there still is something to be fixed, but I do want to thank kingosticks for his patience and help!
Glad it works but I’ve no idea how it does. I’m planning to work on it some
more anyway.