Tidal Connect is finally arrived. It works same way as Spotify Connect.
https://darko.audio/2020/10/tidal-connect-who-what-why/
When we can have Tidal Connect in HiFiberryOS? :)
Tidal Connect is finally arrived. It works same way as Spotify Connect.
https://darko.audio/2020/10/tidal-connect-who-what-why/
When we can have Tidal Connect in HiFiberryOS? :)
Hi,
I am very fresh to Raspberry but I really want to make Tidal Connect work for my HifiBerry DAC+ DSP.
But I can't figure out how to start. Should I ssh as root? And should I download and paste Tony's files to the main folder in my sdcard?
Hi there,
Yes, ssh as root. and cd ~ (into roots home).
Then execute instructions as given on https://github.com/TonyTromp/tidal-connect-docker
Once you started the docker container you should be able to see the HifiBerry as output in your Tidal App.
Note that i have a DAC+DSP board also, so this should work out-of-the-box.
# so after unzipping or cloning the folder
cd tidal-connect-docker-master/Dockerdocker-compose up -d
# done
Thank you very much.
I think I've done everything properly but I can't see Hifiberry in Tidal App (only under Airplay) or I don't see Tidal as a Source in Hifiberry OS.
# cd tidal-connect-docker-master/Docker
# docker-compose up -d
Pulling tidal-connect (edgecrush3r/tidal-connect:latest)...
latest: Pulling from edgecrush3r/tidal-connect
31994f9482cd: Pull complete
f25859a8075d: Pull complete
d0d53234314c: Pull complete
c0058b387ab9: Pull complete
ece7efd2a856: Pull complete
3919a5112c71: Pull complete
77e70284024b: Pull complete
a2de3260a2e1: Pull complete
14e2c1c6a581: Pull complete
63e3de6a96e4: Pull complete
27dcbd37ccc8: Pull complete
3a3895d5e5e4: Pull complete
b952c3834de5: Pull complete
1a387d48afd9: Pull complete
314fb65c5195: Pull complete
92330b05be29: Pull complete
83f24e3ca3ee: Pull complete
Digest: sha256:a57794d8ca0164687106d5742820d66797bc7ed5114fb3a7c94f03383f61cdea
Status: Downloaded newer image for edgecrush3r/tidal-connect:latest
Creating docker_tidal-connect_1 ... done
Tony I would really appreciate your help if you would find time :) It's weird it doesn't work considering we have the same hardware...
If the Raspberry is on the same wireless lan as your mobile phone, you should see the option in Tidal.
validate that tidal docker image is running
docker ps
restart the docker image
docker-compose down
docker-compose up -d
and run the following to see the output:
docker log docker_tidal-connect_1
You should see something like: STARTED TidalConnect services.
e.g.
Starting Tidal Connect..
STARTING TidalConnect services, version: 1.1.3
ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.front
ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.rear
ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.center_lfe
ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.side
ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.surround21
ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.surround21
ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.surround40
ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.surround41
ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.surround50
ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.surround51
ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.surround71
ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.iec958
ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.iec958
ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.iec958
ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.hdmi
ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.hdmi
ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.modem
ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.modem
ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.phoneline
ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.phoneline
Cannot connect to server socket err = No such file or directory
Cannot connect to server request channel
jack server is not running or cannot be started
JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for -1, skipping unlock
JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for -1, skipping unlock
STARTED TidalConnect services.
Open your mobile phone/tables. Select a song and change the output to:
Hifiberry Tidal Connect
If you dont see Hifiberry Tidal Connect in your output speaker list in Tidal (click the speaker button). Check my help on Github: https://github.com/TonyTromp/tidal-connect-docker how to list your audio devices and edit the entrypoint.sh file with your specific device arguments.
Hi, Tony!
I'm using HiFiBerry Digi+ Pro and HiFiBerry DAC2 HD + DSP bundles.
Your docker works on both of them, but everytime I restart them, I have to run:
docker-compose up -d
Is it normal or there is a way to start docker automatically?
And it would be great to get that additional improvement from zef as shown here
Thanks!
Hi Sergio,
If you want the docker to auto-start you need to add the line "restart: always" as depicted below:
version: '2.2' services: tidal-connect: image: edgecrush3r/tidal-connect:latest tty: true network_mode: host devices: - /dev/snd volumes: - ./entrypoint.sh:/entrypoint.sh - /var/run/dbus:/var/run/dbus
restart: always dns: - 8.8.8.8
The part that Zef is refering to is still work-in-progress, and next to showing the content it doesnt yet stop/start as expected. Once that is fixed i will update soon.
Thanks, Tony!
It works! 😁 There are some errors in log but it works!
# docker logs docker_tidal-connect_1
Starting Tidal Connect..
STARTING TidalConnect services, version: 1.1.3
ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.front
ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.rear
ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.center_lfe
ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.side
ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.surround21
ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.surround21
ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.surround40
ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.surround41
ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.surround50
ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.surround51
ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.surround71
ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.iec958
ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.iec958
ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.iec958
ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.hdmi
ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.hdmi
ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.modem
ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.modem
ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.phoneline
ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.phoneline
Cannot connect to server socket err = No such file or directory
Cannot connect to server request channel
jack server is not running or cannot be started
JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for -1, skipping unlock
JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for -1, skipping unlock
STARTED TidalConnect services.
[2021-05-24 14:11:08.024] [tisoc] [error] [avahiImpl.cpp:113] avahiClientCallback() AVAHI_CLIENT_S_COLLISION/AVAHI_CLIENT_FAILURE
Starting Tidal Connect..
STARTING TidalConnect services, version: 1.1.3
ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.front
ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.rear
ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.center_lfe
ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.side
ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.surround21
ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.surround21
ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.surround40
ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.surround41
ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.surround50
ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.surround51
ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.surround71
ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.iec958
ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.iec958
ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.iec958
ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.hdmi
ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.hdmi
ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.modem
ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.modem
ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.phoneline
ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.phoneline
Cannot connect to server socket err = No such file or directory
Cannot connect to server request channel
jack server is not running or cannot be started
JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for -1, skipping unlock
JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for -1, skipping unlock
STARTED TidalConnect services.
[2021-05-24 14:12:59.236] [tisoc] [warning] [PlaybackControllerImpl.cpp:472] Illegal state:1
[2021-05-24 14:14:19] [info] asio async_shutdown error: asio.misc:2 (End of file)
[2021-05-24 14:14:34.247] [tisoc] [error] [avahiImpl.cpp:113] avahiClientCallback() AVAHI_CLIENT_S_COLLISION/AVAHI_CLIENT_FAILURE
Starting Tidal Connect..
STARTING TidalConnect services, version: 1.1.3
ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.front
ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.rear
ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.center_lfe
ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.side
ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.surround21
ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.surround21
ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.surround40
ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.surround41
ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.surround50
ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.surround51
ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.surround71
ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.iec958
ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.iec958
ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.iec958
ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.hdmi
ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.hdmi
ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.modem
ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.modem
ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.phoneline
ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.phoneline
Cannot connect to server socket err = No such file or directory
Cannot connect to server request channel
jack server is not running or cannot be started
JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for -1, skipping unlock
JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for -1, skipping unlock
STARTED TidalConnect services.
#
Hi Sergio,
I havent seen this error before.
Only one Docker is running right? check with: docker ps.
Here it is:
# docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
2b785d00d217 edgecrush3r/tidal-connect:latest "/entrypoint.sh" 3 hours ago Up 8 months docker_tidal-connect_1
#
Just checked your logs and the output of the second restart is giving the same results, and all is fine. The JackShm and Alsa Unknown Soundcard messages can be ommited. This:
AVAHI_CLIENT_S_COLLISION/AVAHI_CLIENT_FAILURE
I havent seen earlier. Maybe it happens if the AVAHI device is in use, i will run some tests on this.
Hi Tony,
your dock with Tidal Connect works on raspberry 4B with Digi+ Pro perfectly. Thank you so much for your effort!!
There is only one issue for me - web menu control doesn't work.
I have repaired beocrate link as was mentioned before so Tidal Connect appears in HifiBerry web menu but it doesn't do anything.
So only way how I can stop TC service is via terminal to stop TC docker image.
Actualy I use "restart: always" option but then my HifiBerry is one-trick-ponny :)
Is there anything I can do to make TC start/stop from web menu operational??
Thank you
I have now found these tips and I am very grateful for them.
I have Pi4 + HiFiBerry DAC2 Pro.
This all works perfectly. I can get Tidal Connect on the APP .
But every time I turn off the Pi, I have to do it all over again.
I already tried the tip
version: '2.2'
services:
tidal-connect:
image: edgecrush3r/tidal-connect:latest
tty: true
restart: always
network_mode: host
devices:
- /dev/snd
volumes:
- ./entrypoint.sh:/entrypoint.sh
- /var/run/dbus:/var/run/dbus
dns:
- 8.8.8.8
But it doesn't work. I'm a Linux ignorant. I'm sure I'm doing it all wrong. Can someone please help by explaining step by step how should I proceed to get tidal connect start when the Pi is turned on?
Hi Luis,
You should use "nano" command to edit "docker-compose.yml"
First time after you log in, type:
cd tidal-connect-docker-master/Docker
to change folder, then:
nano docker-compose.yml
to edt.
Move cursor by arrows and add the string to file
restart: always
"Ctrl" + "X" to exit and "Y' to save
Hi Sergio,
Thank you very much for your quick response with such precious help. Like I said, I'm a complete Linux geek.
But with your help now everything works perfectly. Tidal Connect starts whenever Pi turns on.
I will abuse your patience and ask one more question.
How can I put the Tidal Connect option in the HiFiBerryOS menu?
I couldn't make it for myself too.
We should wait until Tony implement it into docker.
Thank you very much
New version released:
https://github.com/TonyTromp/tidal-connect-docker
Latest version has a much simplified set-up just run the install.sh file and you should be ready to go.
Also added/fixed in latest release:
- UI can now start/stop Tidal Service
- Control volume from your Tidal Device
- Improved installation script
Enjoy!
Awsome! Thank you Tony!
Just did the install. Indeed installation is flawless.
Starting Tidal Connect takes some time so be patient (in case you think something is broken, as I inpatiently thought for a moment :-))
Thanks again Tony!
As I said before, I apologize for being a complete linux ignorant.
I follow the instructions, but when I type
tidal-connect-docker cd
An error comes out.
What am I doing wrong?
The folder is called tidal-connect-docker-master.
(Tony Tromp - could you pls correct this in the instructions or change the folder name)
Hi Szjoin,
Thanks for the feedback. It depends if you use zip (adds -master to folder name) or git clone (which uses the right name) it seems.
Not sure if the 'git' command comes standard with HifiberryOS.
Can you try running the 'git' command and let me know if it exists on your Hifiberry? If so, i will remove the unzip instruction as it confuses indeed.
Hi Tony,
I followed the following steps in HiFiBerryOS
1)
curl https://codeload.github.com/TonyTromp/tidal-connect-docker/zip/refs/heads/master >tidal-connect-docker.zip
2)
unzip tidal-connect-docker.zip
3)
cd tidal-connect-docker-master
4)
./install.sh
5)
Restart HiFiBerryOS
It worked perfectly. (I think the sound control via Tidal app is not working, but this is not very important in my case).
Thank you Tony for this excellent contribution.
Just updated the install.sh script so it will also do 'upgrade' already existing installations.
Also added the - restart: always to the docker-compose file as default setting.
Not sure if the 'git' command comes standard with HifiberryOS.
Can you try running the 'git' command and let me know if it exists on your Hifiberry? If so, i will remove the unzip instruction as it confuses indeed.
Here what I got:
# git clone https://github.com/TonyTromp/tidal-connect-docker.git
Cloning into 'tidal-connect-docker'...
remote: Enumerating objects: 268, done.
remote: Counting objects: 100% (268/268), done.
remote: Compressing objects: 100% (195/195), done.
remote: Total 268 (delta 115), reused 178 (delta 51), pack-reused 0
Receiving objects: 100% (268/268), 1.19 MiB | 2.34 MiB/s, done.
Resolving deltas: 100% (115/115), done.
Looks like "git clone" command works on HiFiBerry OS too
And it would be great to do some visual tweaks, like "TIDAL Connect" instead of "Tidal Connect" in rows 1 and 5 in
/beocreate/beo-extensions/tidal/menu.html
as zef already said
And maybe "HiFiBerry TIDAL Connect" or just "HiFiBerry" ("TIDAL Connect" already present in below) instead of "Hifiberry Tidal Connect" in entrypoint.sh (rows 10 and 13)
:)
Done.. and done..
Thanks for the feedback btw ;)
if you cd <instal_folder>
and run
git pull
./install.sh
Your folder will be updated and should be all set (with the changes listed).
I am currently trying to get the HifiBerry controls to work with the docker and show album/artist info (as you might see from the new 'cmd' folder). But this is a bit tedious as i rely on scraping the information from the speaker_controller app. Implementation will be not as straight forward as the AudioController2 provided by HifiBerry doesnt do runtime plugin (so code alteration seems to be required for this to work). trying to come up with a way to use patch files for installation.
Hi Tony,
thanks for the extensive work. I tried more than couple of times (fresh installs) but the volume control is not working for me ( raspberry 4 + Digi+).
I tried to add manually Digi+ to entrypoint.sh but still it doesn't work for me.
Log:
Starting Speaker Application in Background (TMUX)
Starting TIDAL Connect..
STARTING TidalConnect services, version: 1.1.3
ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.front
ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.rear
ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.center_lfe
ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.side
ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.surround21
ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.surround21
ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.surround40
ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.surround41
ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.surround50
ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.surround51
ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.surround71
ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.hdmi
ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.hdmi
ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.modem
ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.modem
ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.phoneline
ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.phoneline
Cannot connect to server socket err = No such file or directory
Cannot connect to server request channel
jack server is not running or cannot be started
JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for -1, skipping unlock
JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for -1, skipping unlock
STARTED TidalConnect services.
[2021-09-11 11:04:00.906] [tisoc] [warning] [PlaybackControllerImpl.cpp:472] Illegal state:1
Where could be the problem?
Could it be that the docker container is already running?
Try run
docker ps
Stop any instances running using
docker stop [container id]
And then run the install.sh script again.
Let me know if this solves your problem.
Ps.
On your Device running tidal put volume up completely. Also verify in HifiBerry UI if the volume is off/low.
Can you share the contents of your entrypoint.sh file?