Closed djl236 closed 8 years ago
Hm, I've tried with the same settings as you and it appears to work for me:
username = username
password = ************
all_access = true
bitrate = 320
deviceid = ************
all_access = false
refresh_library = 1440
refresh_playlists = 60
radio_stations_in_browse = true
radio_stations_as_playlists = true
radio_stations_count =
radio_tracks_count = 25
Do you have 2-factor login enabled? If you do, you'll need to generate an app password to use with mopidy-gmusic.
I do use 2 factor and am also using a generated app specific password. I made sure I copied it exact too.
Have you tried with your full email in the username field?
I just added the @gmail.com and am still receiving the same message.
When I type 'mopidy' into a terminal window, among all the text that pops up is this:
WARNING Found gmusic configuration errors, the extension has been automatically disabled: WARNING gmusic/username must be set. WARNING gmusic/password must be set. WARNING Please fix the extension configuration errors or disable the extensions to silence these messages.
I've set mopidy to run as a service too (or at least I think I have, I know I was trying too).
pi@raspberrypi:~ $ mopidy
INFO Starting Mopidy 2.0.1
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, http, file, stream, m3u, softwaremixer, moped, local
INFO Disabled extensions: gmusic
WARNING Found gmusic configuration errors, the extension has been automatically disabled:
WARNING gmusic/username must be set.
WARNING gmusic/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, LocalBackend
INFO Audio output set to "autoaudiosink"
INFO Creating dir /home/pi/.local/share/mopidy/m3u
INFO Creating dir /home/pi/.local/share/mopidy/local
INFO No local library metadata cache found at /home/pi/.local/share/mopidy/local/library.json.gz. Please run mopidy local scan
to index your local music library. If you do not have a local music collection, you can disable the local backend to hide this message.
INFO Loaded 0 local tracks using json
INFO Starting Mopidy core
INFO Starting Mopidy frontends: MpdFrontend, HttpFrontend
INFO MPD server running at [::ffff:127.0.0.1]:6600
ERROR Frontend (HttpFrontend) initialization error: HTTP server startup failed: [Errno 98] Address already in use
INFO Starting GLib mainloop
Typing Mopidy in a terminal does not run as a service and will load the config from ~/.config/mopidy/mopidy.conf. see https://docs.mopidy.com/en/latest/service/
Right, but I can start and stop it as a service and it still won't work.
Maybe for some reason its looking at the wrong config?
It should print out what config it's using in the log
What file have you been using?
What do you mean what file?
Maybe I should just start this all over from scratch. I found the documentation to be not very beginner friendly. Is there a how-to guide anywhere?
Sorry, I was wondering where you had put your config file. It looks like whichever file you've been editing hasn't been used, if the logs are any indication.
I'm not sure if you use IRC, but it would be a bit easier to try and get you up and running somewhere we can have more of a conversation without multiple-hour gaps. I'm usually in #mopidy on freenode as belak.
I don't know of any guides off the top of my head, but someone else might.
I actually edited both config files.
I'm installing IRC now, I'll see if you're online.
Thank you to everyone so far for being patient and helpful.
There's always http://webchat.freenode.net/ as well, so you wouldn't have to install anything.
Ok so I got it working by starting from scratch with a fresh Jessie Lite install. I did not however try to run it as a service this time.
So two things I want to work on now to tweak it:
Thank you all so much.
Currently the answer to the first question is no. All devices, even official ones, only get 25 tracks at a time for radio stations via the API. I'd like to implement a method of tracking a radio station and refilling the list when it gets full, similar to the pandora plugin but that isn't a very high priority because of the complexity it adds.
I'm not familiar with running gmusic on the Pi, so I'll let someone answer that one who knows what they're talking about.
Glad you got it working!
I'm just running it as a service
As for the tracks, I set the variable in the config to like 150 and low and behold more than 25 tracks appeared when I opened a station. A lot of tracks appeared so I dunno.
Also noticed its slow as fuck to use, not even really useable when the material web client is installed and used. Switched to the music box web client and it works so much better.
I try really hard to make sure each action only takes one API call. There are still a few methods which need to be implemented for improvements on that (I believe get_distinct
is missing) but most clients should also conform to that. I'm guessing that the Material web client hits some of those unimplemented functions which, fall back to slower things.
I wasn't aware there was a config option, but I'm glad you found one.
This is the config option I used to get more than 25 tracks to appear on a station:
radio_tracks_count = 150
It sounds like this has mostly been solved?
Yeah, it seems to be finally working well. Thank you for all your help.
Noob here trying to get gmusic with mopidy working on a raspberry pi 3. Mopidy and moped seem to be working as I can open moped in a web browswer. GMusic extension stays disabled due to config error. I ran sudo pip install mopidy-gmusic --upgrade today to see if that would help but it just stays disabled due to config error. I do have the correct google username, password and device id. I have a paid account as well.
Here's my config: