LoginSignup
1
0

More than 3 years have passed since last update.

pi Music Boxをupdateする(その2)

Posted at

pipのinstall

mopidyの設定にはpython-pipが必要
# apt install python-pip

web client

mopidyをweb browserで利用できるように

# pip install Mopidy-MusicBox-Webclient

/etc/mopidy/mopidy.confを編集

[http]
hostname = 0.0.0.0

[local]
media_dir = /media

[musicbox_webclient]
enabled = true

を追加する。
設定はrootで
# mopidyctl config
として確認できる。

mopidyの起動と自動起動の設定

# service mopidy start
で起動。

# systemctl enable mopidy
で自動起動。

mopidyの起動確認

この状態で
http://raspiのip:6680/musicbox_webclient/
でmopidyにアクセスできる。

mopidy local scan

しかしこのままではBROWSEしてもfileもlocalsも空。
# mopidyctl local scan
でUSBメモリの音楽ファイルを登録する。
service mopidy restart
でmopidyを再起動するとUSBメモリの音楽を聴くことができる。

audio出力

defaultではautoになっていて、HDMI接続していると、TVから音が出る。
analog出力にするには
# amixer cset numid=3 1

radioサービス

# pip install Mopidy-TuneIn
/etc/mopidy/mopidy.confに

[tunein]
enabled = true
timeout = 5000
を追加する。

1
0
0

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
1
0