# Stream from Mopidy to Mopidy

**URL:** <https://discourse.mopidy.com/t/stream-from-mopidy-to-mopidy/4228>\
**Category:** Misc\
**Created:** [August 15, 2020, 11:59am UTC](https://discourse.mopidy.com/t/stream-from-mopidy-to-mopidy/4228 "2020-08-15T11:59:33Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![KXT308](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.mopidy.com/kxt308/32/1678_2.png) [@KXT308](https://discourse.mopidy.com/u/KXT308)\
**Post date:** [August 15, 2020, 11:59am UTC](https://discourse.mopidy.com/t/stream-from-mopidy-to-mopidy/4228/1 "2020-08-15T11:59:33Z")

</div>

I came across the ‘Pirate Audio’ hat from Pimoroni and thought that would make a good ‘Sonos’ alternative. I’m new to the realm of Raspberry Pi so not that knowledge about the programming. I have followed many different guides to install and configure Mopidy, and currently have 2 Pi Zero W’s configured with spotify. The issue i’m having is syncing the music. I have tried to install and understand Icecast & SnapCast but i’m not getting anywhere with it. The Mopidy web interface has the services as options but cannot understand what i’m not doing correctly.

The ultimate goal is ideally having 1 web interface by using 1 of the Pi’s, that can output to both at the same time.

Any help would be grateful.

---

<div class="post-metadata">

**Author:** ![Steve\_Lambert](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.mopidy.com/steve_lambert/32/1149_2.png) [@Steve\_Lambert](https://discourse.mopidy.com/u/Steve_Lambert)\
**Post date:** [August 15, 2020, 4:20pm UTC](https://discourse.mopidy.com/t/stream-from-mopidy-to-mopidy/4228/2 "2020-08-15T16:20:13Z")

</div>

Which web interface are you using?

---

<div class="post-metadata">

**Author:** ![KXT308](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.mopidy.com/kxt308/32/1678_2.png) [@KXT308](https://discourse.mopidy.com/u/KXT308)\
**Post date:** [August 15, 2020, 4:32pm UTC](https://discourse.mopidy.com/t/stream-from-mopidy-to-mopidy/4228/3 "2020-08-15T16:32:44Z")

</div>

I’m using the Iris web interface

---

<div class="post-metadata">

**Author:** ![Steve\_Lambert](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.mopidy.com/steve_lambert/32/1149_2.png) [@Steve\_Lambert](https://discourse.mopidy.com/u/Steve_Lambert)\
**Post date:** [August 15, 2020, 4:46pm UTC](https://discourse.mopidy.com/t/stream-from-mopidy-to-mopidy/4228/4 "2020-08-15T16:46:39Z")

</div>

Is snapcast showing up in the interface?  
and you’ve got the correct entry in your mopidy conf file?

---

<div class="post-metadata">

**Author:** ![KXT308](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.mopidy.com/kxt308/32/1678_2.png) [@KXT308](https://discourse.mopidy.com/u/KXT308)\
**Post date:** [August 15, 2020, 5:15pm UTC](https://discourse.mopidy.com/t/stream-from-mopidy-to-mopidy/4228/5 "2020-08-15T17:15:10Z")

</div>

Snapcast is showing in the interface under settings

Here is a printout of the config

[core]  
cache\_dir = /var/cache/mopidy  
config\_dir = /etc/mopidy  
data\_dir = /var/lib/mopidy  
max\_tracklist\_length = 10000  
restore\_state = false

[logging]  
verbosity = 0  
format = %(levelname)-8s [%(threadName)s] %(name)s %(message)s  
color = false  
config\_file =

[audio]  
mixer = software  
mixer\_volume = 40  
output = alsasink device=hw:sndrpihifiberry  
buffer\_time =

[proxy]  
scheme =  
hostname =  
port =  
username =  
password =

[raspberry-gpio]  
enabled = true  
bcm0 =  
bcm1 =  
bcm2 =  
bcm3 =  
bcm4 =  
bcm5 = play\_pause,active\_low,250,  
bcm6 = volume\_down,active\_low,250,  
bcm7 =  
bcm8 =  
bcm9 =  
bcm10 =  
bcm11 =  
bcm12 =  
bcm13 =  
bcm14 =  
bcm15 =  
bcm16 = next,active\_low,250,  
bcm17 =  
bcm18 =  
bcm19 =  
bcm20 = volume\_up,active\_low,250,  
bcm21 =  
bcm22 =  
bcm23 =  
bcm24 = volume\_up,active\_low,250,  
bcm25 =  
bcm26 =  
bcm27 =

[pidi]  
enabled = true  
display = st7789  
rotation = 90

[iris]  
enabled = true  
country = GB  
locale = en\_GB  
spotify\_authorization\_url =  
lastfm\_authorization\_url =  
genius\_authorization\_url =  
data\_dir = $XDG\_DATA\_DIR/iris

[file]  
enabled = true  
media\_dirs =  
/home/pi/Music  
excluded\_file\_extensions =  
.directory  
.html  
.jpeg  
.jpg  
.log  
.nfo  
.pdf  
.png  
.txt  
.zip  
show\_dotfiles = false  
follow\_symlinks = false  
metadata\_timeout = 1000

[http]  
enabled = true  
hostname = 0.0.0.0  
port = 6680  
zeroconf = Mopidy HTTP server on $hostname  
allowed\_origins =  
csrf\_protection = true  
default\_app = mopidy

[m3u]  
enabled = true  
base\_dir =  
default\_encoding = latin-1  
default\_extension = .m3u8  
playlists\_dir =

[softwaremixer]  
enabled = true

[stream]  
enabled = true  
protocols =  
http  
https  
mms  
rtmp  
rtmps  
rtsp  
metadata\_blacklist =  
timeout = 5000

[spotify]  
enabled = true  
username = \*\*\*\*\*\*\*\*  
password = \*\*\*\*\*\*\*\*  
client\_id = \*\*\*\*\*\*\*\*  
client\_secret = \*\*\*\*\*\*\*\*  
bitrate = 160  
volume\_normalization = true  
private\_session = false  
timeout = 10  
allow\_cache = true  
allow\_network = true  
allow\_playlists = true  
search\_album\_count = 20  
search\_artist\_count = 10  
search\_track\_count = 50  
toplist\_countries =

[mpd]  
enabled = true  
hostname = 0.0.0.0  
port = 6600  
password =  
max\_connections = 20  
connection\_timeout = 60  
zeroconf = Mopidy MPD server on $hostname  
command\_blacklist =  
listall  
listallinfo  
default\_playlist\_scheme = m3u

---

<div class="post-metadata">

**Author:** ![Steve\_Lambert](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.mopidy.com/steve_lambert/32/1149_2.png) [@Steve\_Lambert](https://discourse.mopidy.com/u/Steve_Lambert)\
**Post date:** [August 16, 2020, 8:50am UTC](https://discourse.mopidy.com/t/stream-from-mopidy-to-mopidy/4228/6 "2020-08-16T08:50:49Z")

</div>

Just set it up on 2 Pi3’s so will be much the same. Using buster on both.  
Depending on what you want to do with mopidy, I set up Mopidy, Iris, Snapserver and Snapclient on Pi1, on Pi2 I set up just Snapclient.  
On Pi1, in the Mopidy conf (sudo nano /etc/mopidy/mopidy.conf) you need to change the audio settings to;  
[audio]  
#mixer = software  
#mixer\_volume =  
#output = autoaudiosink  
#buffer\_time =  
#output = autoaudiosink  
output = audioresample ! audioconvert ! audio/x-raw,rate=48000,channels=2,format=S16LE ! filesink location=/tmp/snapfifo

Launched Mopidy and Iris, both instances of Snapclient showed up and played through straight away.  
I’m using a speaker through the earphone socket on Pi1 and using the HDMI socket to play through TV on Pi2.

If you have Mopidy setup on Pi2, you need to make sure it let’s go of the soundcard before trying to use Snapcast. You might be best to stop mopidy (sudo systemctl stop mopidy)  
Hope this helps.

---

<div class="post-metadata">

**Author:** ![KXT308](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.mopidy.com/kxt308/32/1678_2.png) [@KXT308](https://discourse.mopidy.com/u/KXT308)\
**Post date:** [August 16, 2020, 6:48pm UTC](https://discourse.mopidy.com/t/stream-from-mopidy-to-mopidy/4228/7 "2020-08-16T18:48:05Z")

</div>

Thanks Steve

I have spent the day playing with both pi’s. I have managed to get the snapcast to connect to the server (pi A connecting to pi B). I can only seem to alter the volume 1 of the pi’s, no other controls. The pi’s are connected to the same spotify account but cannot stream the same music at the same time.

I will keep playing with the setup. Any other ideas would help.

---

<div class="post-metadata">

**Author:** ![Steve\_Lambert](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.mopidy.com/steve_lambert/32/1149_2.png) [@Steve\_Lambert](https://discourse.mopidy.com/u/Steve_Lambert)\
**Post date:** [August 16, 2020, 6:55pm UTC](https://discourse.mopidy.com/t/stream-from-mopidy-to-mopidy/4228/8 "2020-08-16T18:55:22Z")

</div>

Do you have mopidy installed on both Pi’s, you shouldn’t need to have spotify on both, just on pi A

---

<div class="post-metadata">

**Author:** ![Steve\_Lambert](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.mopidy.com/steve_lambert/32/1149_2.png) [@Steve\_Lambert](https://discourse.mopidy.com/u/Steve_Lambert)\
**Post date:** [August 16, 2020, 7:27pm UTC](https://discourse.mopidy.com/t/stream-from-mopidy-to-mopidy/4228/9 "2020-08-16T19:27:35Z")

</div>

Actually, try turning off PiB.  
On PiA Install Mopidy and it’s Spotify bit, along with Iris.  
Install Snapserver and SnapClient as above and make necessary changes to the Mopidy.conf file.  
If you get it running on PiA you’ll find it easy to set up PiB.  
Also make sure and read up on the [SnapCast site](https://github.com/badaix/snapcast/blob/master/doc/player_setup.md#setup-of-audio-playersserver) how the setup should work.

---

<div class="post-metadata">

**Author:** ![KXT308](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.mopidy.com/kxt308/32/1678_2.png) [@KXT308](https://discourse.mopidy.com/u/KXT308)\
**Post date:** [August 16, 2020, 9:41pm UTC](https://discourse.mopidy.com/t/stream-from-mopidy-to-mopidy/4228/10 "2020-08-16T21:41:32Z")

</div>

I’ve rebuilt both Pi’s and I can now play spotify from Pi A to Pi B with volume control, however I am not getting any audio out of Pi A.

---

<div class="post-metadata">

**Author:** ![Steve\_Lambert](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.mopidy.com/steve_lambert/32/1149_2.png) [@Steve\_Lambert](https://discourse.mopidy.com/u/Steve_Lambert)\
**Post date:** [August 17, 2020, 6:08am UTC](https://discourse.mopidy.com/t/stream-from-mopidy-to-mopidy/4228/11 "2020-08-17T06:08:03Z")

</div>

Have you installed Snapclient as well as Snapserver on Pi A?  
Can you see Pi A in the Iris control panel?  
What response do you get from “sudo systemctl status snapclient”

> [@KXT308](#):
>
> however I am not getting any audio out of Pi A.

From the docs;“When you are using a Raspberry Pi, you might have to change your audio output to the 3.5mm jack”

Could you get sound from Pi A before you installed Snapcast and changed the mopidy.conf file to # out the unwanted lines?

There is a good audio set up guide [here](https://www.technicallywizardry.com/speaker-multi-room-wireless-receiver/)

---

<div class="post-metadata">

**Author:** ![KXT308](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.mopidy.com/kxt308/32/1678_2.png) [@KXT308](https://discourse.mopidy.com/u/KXT308)\
**Post date:** [August 17, 2020, 5:09pm UTC](https://discourse.mopidy.com/t/stream-from-mopidy-to-mopidy/4228/12 "2020-08-17T17:09:48Z")

</div>

Strange one this. I left the Pi’s off over night and have just looked at them again and everything is working as it should. Both Pi’s are playing at the same time.

Many thanks for your input Steve.
