LoginSignup
0
1

More than 3 years have passed since last update.

pi music boxでgoogle play musicを

Posted at
1 / 2

raspberry pi 1 B+にPi MusicBox
https://www.pimusicbox.com/
をinstallしてgoogle play musicを流せるようにしてみた。

https://github.com/pimusicbox/pimusicbox/releases
から最新のimgをdownload

最低8GBのmicroSDカードが必要。

macOSなので
https://www.balena.io/etcher/
からEtcherを入手して使用。EtcherでimgをmicroSDカードにflash。

microSDカードでRaspberry Piを起動。
有線接続しておく。

同一networkのweb clientから
http://musicbox.local
でアクセス可能となる。

settingでsshを可能にして
ipを調べてsshでlogin

rootでpasswordはmusicbox

/etc/mopidy/mopidy.conf
が設定ファイル

nanoで編集

----------------

| Google Music |

----------------

https://github.com/hechtus/mopidy-gmusic

Supply your credentials to enable Google Music

NOTE: If enabled this may slow down the start of MusicBox. Please be patient

[gmusic]
enabled = true
username = googleのアカウント(メイルアドレス形式)
password = パスワード
deviceid = 1234567890abcdef
bitrate = 320
all_access = true

デバイスidは小文字で適当に16桁のものを入れる
保存して再起動

再びsshでloginして
less /var/log/mopidy/mopidy.log
で確認すると

Invalid device_id 1234567890abcdef.Your valid device IDs are:
という箇所があり

いくつかの有効なdeviceIDが表示されるので、16桁のものを
/etc/mopidy/mopidy.conf
にコピーして保存して再起動。

これで幸せになれるか?!

0
1
3

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
1