Thank you for your donation!


Cloudsmith graciously provides open-source package management and distribution for our project.


[HOW-TO] Spotify Connect Web for Moode
#15
(04-09-2018, 04:58 PM)pinkdot Wrote: The current Librespot-org implementation is very solid. I installed it on Moode 3.8.4 and Moode 4.0. Both installations run without big issues. It's worth a try!

Code:
cd /home/pi
sudo apt-get install build-essential portaudio19-dev git
git clone https://github.com/librespot-org/librespot.git
cd librespot/
curl https://sh.rustup.rs -sSf | sh
#from the given options choose 1
source $HOME/.cargo/env
sudo reboot

#Login again
cd /home/pi/librespot/
cargo build --release --features alsa-backend
#this will take a while, 30 minutes plus
# after this process is done, create a spotify-connect.service

sudo su
nano /etc/systemd/system/spotify-connect.service
#add the following to the spotify-connect.service file
#change --device depending on the device you are using
#change --name to your liking
#add if needed --username <your spotify username>
#add if needed --password <your spotify password>


[Unit]
Description=Spotify Connect
Requires=network-online.target
After=network-online.target

[Service]
User=root
ExecStart=/home/pi/librespot/target/release/librespot --name MoodeSpot --initial-volume 75 --cache /tmp --bitrate 320 --backend alsa --device hw:1
Restart=always
RestartSec=10
StartLimitInterval=30
StartLimitBurst=20

[Install]
WantedBy=multi-user.target

#save and close the file by 'ctrl x' -> 'y' -> enter
#start and enable the service
systemctl enable spotify-connect.service
systemctl start spotify-connect.service

#Make sure Moode is stopped before using Librespot and vise versa.

#to update
cd /home/pi/librespot
git pull
cargo build --release --features alsa-backend
sudo reboot
Hello pinkdot,

I've tried installing this and it all seemed to go well but MoodeSpot does not show up as a device option from other computers.  I tried running the systemctl enable spotify-connect.service manually as root and get an "Invalid Argument" response.  I suspect I've missed something here.

I ran systemctl status spotify-connect.service and got a response of [/etc/systemd/system/spotify-connect.service:18] Missing '='.

I thought this might refer to line 18 of the spotify-connect.service file but that line is "systemctl enable spotify-connect.service" without quotes.

Any suggestion to troubleshoot ?
Reply


Messages In This Thread
RE: Spotify Connect for Moode - by Tim Curtis - 04-06-2018, 07:34 PM
RE: Spotify Connect for Moode - by RafaPolit - 04-07-2018, 05:30 AM
RE: Spotify Connect for Moode - by deafnut - 04-07-2018, 08:01 PM
RE: Spotify Connect for Moode - by RafaPolit - 04-08-2018, 05:28 AM
RE: Spotify Connect for Moode - by gabmartini - 04-09-2018, 02:08 AM
RE: Spotify Connect for Moode - by pinkdot - 04-09-2018, 04:58 PM
RE: Spotify Connect for Moode - by airdronian - 04-17-2018, 09:01 PM
RE: Spotify Connect for Moode - by Tim Curtis - 04-09-2018, 02:18 AM
RE: Spotify Connect for Moode - by franz159 - 04-11-2018, 04:43 AM
RE: Spotify Connect for Moode - by JonPike - 05-03-2018, 01:59 AM
RE: Spotify Connect for Moode - by RafaPolit - 04-11-2018, 05:43 AM
RE: Spotify Connect for Moode - by jonners - 04-11-2018, 07:39 AM
RE: Spotify Connect for Moode - by gabmartini - 04-13-2018, 11:33 PM
RE: Spotify Connect for Moode - by pinkdot - 04-14-2018, 08:10 AM
RE: Spotify Connect for Moode - by Tim Curtis - 04-14-2018, 12:14 PM
RE: Spotify Connect for Moode - by RafaPolit - 04-17-2018, 10:10 PM
RE: Spotify Connect for Moode - by airdronian - 04-17-2018, 11:31 PM
RE: Spotify Connect for Moode - by gabmartini - 04-17-2018, 11:50 PM
RE: Spotify Connect for Moode - by airdronian - 04-18-2018, 12:13 AM
RE: Spotify Connect for Moode - by airdronian - 04-19-2018, 05:34 PM
RE: Spotify Connect for Moode - by Onionhead - 04-23-2018, 01:40 AM
RE: Spotify Connect for Moode - by pinkdot - 04-23-2018, 05:50 AM
RE: Spotify Connect for Moode - by RafaPolit - 04-23-2018, 06:18 PM
RE: Spotify Connect for Moode - by Onionhead - 04-23-2018, 06:35 PM
RE: Spotify Connect for Moode - by gabmartini - 04-27-2018, 11:31 PM
RE: Spotify Connect for Moode - by pinkdot - 04-28-2018, 07:48 AM
RE: Spotify Connect for Moode - by grasshopper - 04-29-2018, 10:26 AM
RE: Spotify Connect for Moode - by JonPike - 05-03-2018, 03:05 AM
RE: Spotify Connect for Moode - by grasshopper - 05-03-2018, 07:08 PM
RE: Spotify Connect for Moode - by JonPike - 05-16-2018, 01:33 AM
RE: Spotify Connect for Moode - by grasshopper - 05-17-2018, 07:00 PM
RE: Spotify Connect for Moode - by Me2018 - 01-22-2019, 02:40 PM
RE: Spotify Connect for Moode - by npetra - 08-28-2019, 05:18 PM
RE: Spotify Connect for Moode - by grasshopper - 01-17-2019, 12:00 PM
RE: Spotify Connect for Moode - by grasshopper - 04-29-2018, 10:38 AM
RE: Spotify Connect for Moode - by RafaPolit - 04-29-2018, 10:53 AM
RE: Spotify Connect for Moode - by aBrianH - 04-30-2018, 10:11 AM
RE: Spotify Connect for Moode - by RafaPolit - 05-01-2018, 03:59 AM
RE: Spotify Connect for Moode - by gabmartini - 05-02-2018, 03:43 AM
RE: Spotify Connect for Moode - by grasshopper - 05-02-2018, 06:11 PM
RE: Spotify Connect for Moode - by RafaPolit - 05-12-2018, 12:53 AM
RE: Spotify Connect for Moode - by Tim Curtis - 05-12-2018, 12:52 PM
Error when Spotify Connect Web - by IT-Andy52 - 09-06-2019, 08:54 AM
RE: Error when Spotify Connect Web - by RafaPolit - 09-25-2019, 07:39 PM

Forum Jump: