documenting building my phoniebox
arm_64bit=0
to /boot/config.txt
raspi-config
--> enable wait for internet on boot)journalctl -u mopidy -b --grep spotify.web
(-b
since last boot)sudo systemctl restart mopidy
(this work, after service restart, spotify connects)
allow_playlists = false
in /etc/mopidy/mopidy.conf
makes restarting mopidy service a lot faster (almost instant) because it doesn't sync all spotify playlists which takes 10-30s (obviously depending on the number of playlists in the account)sudo systemctl restart mopidy
into /etc/rc.local
doesn't work (presumably because internet is not available yet when it runs)autohotstop service was to agressive and impatient, when scanning for SSIDs, we mostly received 'device busy'. After 5 retries it started the hotspot which disabled the already running wifi connection. I increased the retry it waits until wifi device is available from 5 to 10.
/etc/systemd/system/mopidy-retry-login.service
sudo chmod a+x /usr/bin/wait-for-internet.sh
sudo chmod a+x /usr/bin/mopidy-restart-to-login.sh
sudo systemctl enable mopidy-retry-login
allow_playlists = false
in /etc/mopidy/mopidy.conf
dtoverlay=disable-bt
to /boot/config.txt
sudo systemctl disable bluetooth
/etc/dhcpcd.conf
, set X, Y, Z accordingly. Also configure router to assign static ip adres to RPi.
interface wlan0
static ip_address=192.168.X.X/24
# static ip6_address=fd51:42f8:caae:d92e::ff/64
static routers=192.168.X.Y
static domain_name_servers=192.168.Z.Y 192.168.X.Y 8.8.8.8
noarp
ipv4only
noipv6
sudo sh -c "echo 'options ipv6 disable=1' >> /etc/modprobe.d/ipv6.conf"
sudo sh -c "echo 'net.ipv6.conf.all.disable_ipv6 = 1' >> /etc/sysctl.conf"
sudo sh -c "echo 'noipv6' >> /etc/dhcpcd.conf"
sudo sysctl -p