The following warnings occurred:
Warning [2] count(): Parameter must be an array or an object that implements Countable - Line: 906 - File: showthread.php PHP 7.2.34 (Linux)
File Line Function
/showthread.php 906 errorHandler->error



Thank you for your donation!


Cloudsmith graciously provides open-source package management and distribution for our project.


Solved: Unable to get Google music (gmusicapi) working.
#1
Hey all, new user here and I'm sure like a lot of you it only took a few minutes of using moOde to decide this is the music app for me. Big thanks to all involved!! 

I hope to get Google music streaming directly from moOde (not via bluetooth) and believe that installing/configuring gmusicapi is the way to get there. I have gmusicapi installed however am not seeing any difference on any of the moOde config screens.

As root, I installed gmusicapi with the following command (pip3 install gmusicapi), I used pip3 as gmusicapi no longer supports python2:
Code:
root@moode:~# pip3 show gmusicapi
Name: gmusicapi
Version: 12.1.1
Summary: An unofficial api for Google Play Music.
Home-page: http://pypi.python.org/pypi/gmusicapi/
Author: Simon Weber
Author-email: simon@simonmweber.com
License: Copyright (c) 2018, Simon Weber
Location: /usr/local/lib/python3.7/dist-packages
Requires: six, python-dateutil, requests, mock, oauth2client, MechanicalSoup, proboscis, protobuf, gpsoauth, validictory, decorator, future, appdirs, mutagen
Required-by:
root@moode:~#

I have a populated gmusicapi directory:
Code:
root@moode:~# ls -ld /usr/local/lib/python3.7/dist-packages/gmusicapi
drwxr-sr-x 8 root staff 4096 Feb 24 19:38 /usr/local/lib/python3.7/dist-packages/gmusicapi

root@moode:~# du -hs /usr/local/lib/python3.7/dist-packages/gmusicapi
1.4M    /usr/local/lib/python3.7/dist-packages/gmusicapi

I have rebooted the OS several times since the gmusicapi installation and still no difference in the moOde config screens. I am not seeing the reference to Google music as shown in the first screenshot in this thread: http://moodeaudio.org/forum/showthread.php?tid=729

What am I missing or needing to do?

Below is some additional info on my install, also I have not patched the OS this was a fresh install of the most recent moOde image. I do see "Google Play music service" listed in the output of moodeutil -a but only checked it after installing so I do not know if it was there before.
Code:
pi@moode:~ $ moodeutl -a
1    y    Kernel architecture
2    y    Airplay renderer
4    y    DLNA server
8    y    MPD audio scrobbler
16    y    Squeezelite renderer
32    y    UPnP client for MPD
64        Require squashfs for software update
128    y    Google Play music service
256    y    Local display
512    y    Input source select
1024        UPnP volume sync
2048    y    Spotify Connect renderer
4096    y    GPIO button handler
8192    y    UPnP media browser
16384    y    Bluetooth renderer

pi@moode:~ $ moodeutl -l
20200225 164134 worker: -- Start
20200225 164134 worker: Successfully daemonized
20200225 164134 worker: Integrity check (passed)
20200225 164134 worker: Session loaded
20200225 164134 worker: Debug logging (off)
20200225 164134 worker: Device raw: (0:sndrpihifiberry|1:empty|i2s:HiFiBerry DAC+ Pro)
20200225 164134 worker: Device cfg: (HiFiBerry DAC+ Pro|0|0|Digital|0)
20200225 164134 worker: ALSA volume set to (0%)
20200225 164134 worker: -- System
20200225 164135 worker: Host name     (moode)
20200225 164135 worker: moOde release (6.4.2 2020-02-12)
20200225 164135 worker: Raspbian OS   (10.2)
20200225 164135 worker: Linux kernel  (4.19.97-v7+ #1293)
20200225 164135 worker: Platform      (Pi-3B 1GB v1.2)
20200225 164135 worker: Architecture  (armv7l)
20200225 164135 worker: MPD version   (0.21.16)
20200225 164135 worker: CPU governor  (ondemand)
20200225 164135 worker: USB boot not enabled yet
20200225 164135 worker: File system expanded
20200225 164135 worker: HDMI port on
20200225 164136 worker: File check (OK)
20200225 164136 worker: -- Network
20200225 164136 worker: eth0 exists
20200225 164136 worker: eth0 wait 0 for IP address
20200225 164139 worker: eth0 wait 1 for IP address
20200225 164142 worker: eth0 wait 2 for IP address
20200225 164145 worker: eth0 wait 3 for IP address
20200225 164148 worker: eth0 wait 4 for IP address
20200225 164151 worker: eth0 address not assigned
20200225 164151 worker: wlan0 exists
20200225 164151 worker: wifi country (US)
20200225 164151 worker: wlan0 trying SSID (irveje)
20200225 164152 worker: IP addr (192.168.1.248)
20200225 164152 worker: Netmask (255.255.255.0)
20200225 164152 worker: Gateway (192.168.1.1)
20200225 164152 worker: Pri DNS (2605:a601:ac00:c300::1)
20200225 164152 worker: Domain  (192.168.1.1)
20200225 164152 worker: -- Audio
20200225 164152 worker: ALSA outputs unmuted
20200225 164152 worker: ALSA card number (0)
20200225 164152 worker: Audio output (I2S audio device)
20200225 164152 worker: Audio device (HiFiBerry DAC+ Pro)
20200225 164153 worker: Audio formats (S16_LE, S24_LE, S32_LE)
20200225 164153 worker: ALSA mixer name (Digital)
20200225 164153 worker: MPD volume control (hardware)
20200225 164153 worker: Hdwr volume controller exists
20200225 164153 worker: Max ALSA volume (100%)
20200225 164153 worker: -- Services
20200225 164153 worker: Reset renderer active state
20200225 164153 worker: MPD conf updated
20200225 164154 worker: MPD started
20200225 164154 worker: MPD accepting connections
20200225 164154 worker: Configure MPD outputs
20200225 164154 worker: MPD output 1 ALSA default (on)
20200225 164154 worker: MPD output 2 ALSA crossfeed (off)
20200225 164154 worker: MPD output 3 ALSA parametric eq (off)
20200225 164154 worker: MPD output 4 ALSA graphic eq (off)
20200225 164154 worker: MPD output 5 ALSA polarity inversion (off)
20200225 164154 worker: MPD output 6 ALSA bluetooth (off)
20200225 164154 worker: MPD output 7 HTTP stream (off)
20200225 164154 worker: MPD crossfade (off)
20200225 164154 worker: Audio source (Local)
20200225 164154 worker: Output device (Local)
20200225 164154 worker: USB auto-mounter (udisks-glue)
20200225 164154 worker: -- Music sources
20200225 164155 worker: USB sources (none attached)
20200225 164155 worker: NAS and UPnP sources (none configured)
20200225 164155 worker: -- Miscellaneous
20200225 164155 worker: Saved MPD vol level (0)
20200225 164155 worker: Preamp volume level (0)
20200225 164155 worker: MPD volume level (50) restored
20200225 164155 worker: ALSA volume level (83%)
20200225 164155 worker: Auto-play (Off)
20200225 164155 worker: Auto-shuffle service (Off)
20200225 164155 worker: Maintenance interval (3 hrs)
20200225 164155 worker: Screen saver activation (Never)
20200225 164155 worker: Session permissions (OK)
20200225 164155 worker: Watchdog started
20200225 164155 worker: Ready
Reply


Messages In This Thread
Unable to get Google music (gmusicapi) working. - by JeffD - 02-25-2020, 11:16 PM

Forum Jump: