Open kingcos opened 6 years ago
树莓派是个很容易吃灰的设备,配置太低,又弃之可惜。何不作为 AirPlay 来解放你的有线音箱呢?
SSH 或直接在树莓派的终端中运行以下命令,关于 SSH、VNC、替换源等操作请自行搜索。
sudo apt-get install autoconf automake libtool sudo apt-get install libltdl-dev libao-dev libavahi-compat-libdnssd-dev sudo apt-get install avahi-daemon
cd ~/Desktop mkdir AirPlay cd AirPlay git clone https://github.com/juhovh/shairplay.git cd shairplay ./autogen.sh ./configure make sudo make install
-a
HomePod
shairplay -a HomePod
command
; shareplay.ini [program:shairplay] command=cd /home/pi/Desktop/ShairPlay/shairplay command=shairplay -a HomePod autostart=true autorestart=true startretries=5 user=pi [supervisord]
[include] files=shairplay.ini [supervisorctl]
# superviord -c ${SUPERVISOR_CONFIG_PATH} sudo supervisord -c /etc/supervisor/conf.d/supervisord.conf
Info
树莓派是个很容易吃灰的设备,配置太低,又弃之可惜。何不作为 AirPlay 来解放你的有线音箱呢?
Solution
Basic setup
-a
后的参数 为 AirPlay 的名称,可自定义,eg.HomePod
后台运行
command
需要将切换到 ShairPlay 源代码的路径Reference
Extension