Before putting all into callbacks

This commit is contained in:
2017-10-31 16:22:41 +01:00
parent 896b62de57
commit f9f2bfcdd7
6 changed files with 665 additions and 32 deletions
+31 -8
View File
@@ -1,6 +1,7 @@
# To Do
## mopidy / spotify
### Installation
https://www.raspberrypi.org/documentation/remote-access/ssh/ --> file "ssh" on boot partition
@@ -33,7 +34,6 @@ sudo apt-get install ncmpcpp
--> https://www.mopidy.com/authenticate/#spotify
### installation for user pi
# create config
mopidy config
@@ -139,16 +139,13 @@ tmpfs /home/pi/.config tmpfs nodev,nosuid,mode=1777,uid=pi
tmpfs /var/lib/mopidy/.config tmpfs nodev,nosuid,mode=1777,uid=mopidy 0 0
### mopidy Dokumentation
#### mopidy Dokumentation
http://localhost:6680/api_explorer/#/library.search
https://docs.mopidy.com/en/latest/api/core/#mopidy.core.mopidy.core.LibraryController
https://docs.mopidy.com/en/latest/ext/file/
https://docs.mopidy.com/en/latest/service/
### ncmpcpp
#### ncmpcpp
sudo apt-get install ncmpcpp
https://wiki.archlinux.org/index.php/ncmpcpp#Basic_usage
@@ -179,8 +176,6 @@ curl -X POST -H Content-Type:application/json -d '{"jsonrpc": "2.0", "id": 1, "m
curl -X POST -H Content-Type:application/json -d '{ "method": "core.playback.get_state", "jsonrpc": "2.0", "id": 1 }' http://192.168.1.142:6680/mopidy/rpc
### Spotify URLs
https://open.spotify.com/track/3jQyadhLTxpxadQlkFh2b8
https://open.spotify.com/episode/1o8HWRR0mx5TfyxLlnKv8e
@@ -188,6 +183,34 @@ https://open.spotify.com/show/4zQKHBLkM3puG5n3jAU2H4
https://open.spotify.com/album/0BajiiFeEZv9eEx07Hw2C0
### piplayer as service
sudo nano /lib/systemd/system/piplayer.service
[Unit]
Description=piplayer
After=mopidy.service
Requires=mopidy.service
[Service]
Type=simple
#ExecStart=/usr/bin/python3 /home/pi/piplayer3.py > /tmp/piplayer3.log 2>&1
ExecStart=/bin/bash -c 'exec python3 /home/pi/piplayer3.py >> /tmp/piplayer3.log 2>&1'
User=pi
[Install]
WantedBy=multi-user.target
sudo systemctl daemon-reload
sudo systemctl enable piplayer.service
-- nach reboot
systemctl
systemctl list-dependencies piplayer
journalctl -e
sudo systemctl restart piplayer.service
## Hardware
- PHAT DAC installieren - http://www.instructables.com/id/Multiroom-Client-With-Raspberry-Pi-ZERO-and-PHAT-D/?ALLSTEPS