Thank you for your donation!


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


Thread Closed 
Upcoming moOde 9.0.0 (Bookworm)
(05-13-2024, 04:37 PM)TheOldPresbyope Wrote: OK, so it took more than an hour.

Re upmpdcli/TIDAL - I now have it working against mconnectLite on my iPad.

FIrst hurdle - tried to install the Python module

Code:
rho@m900pre6c:~ $ sudo python -m pip install tidalapi==0.7.6
error: externally-managed-environment

× This environment is externally managed
╰─> To install Python packages system-wide, try apt install
   python3-xyz, where xyz is the package you are trying to
   install.
   
   If you wish to install a non-Debian-packaged Python package,
   create a virtual environment using python3 -m venv path/to/venv.
   Then use path/to/venv/bin/python and path/to/venv/bin/pip. Make
   sure you have python3-full installed.
   
   For more information visit http://rptl.io/venv

note: If you believe this is a mistake, please contact your Python installation or OS distribution provider. You can override this, at the risk of breaking your Python installation or OS, by passing --break-system-packages.
hint: See PEP 668 for the detailed specification.

So I rook the bull-in-the-china-shop approach and passed the --break-system-packages option on the second try. Seems to have installed the package but again I get warnings of possible breakage and suggestion to use a virtual environment.

Second hurdle - grabbing the necessary credentials and stuffing them in upmpdcli.conf

Oof, the first method looks laborious but would be useful, IMO, because you can see explicitly what you're doing (and see caveat, below).

I chose, instead, to follow Jean-Francois's "Alternatively, for OATH2 mode..." method. 

Opened a terminal on the moOde player (m900pre6c) and ran journalctl -f to watch the messages. Started mconnectLite on the iPad. Chose the m900pre6c UPnP mediaserver and player in Browser and Play to, respectively. Browsed down to the Tidal folder. Up pops the following upmpdcli messages in the journal (sans the May 13 11:50:15 m900pre6c upmpdcli[4927]: preface to each message)


Code:
CMDTALK: tidal-app.py: Tidal Plugin Release 0.3.0
CMDTALK: tidal-app.py: enable_read_stream_metadata=[False]
CMDTALK: tidal-app.py: enable_assume_bitdepth=[True]
tidal: getcachedir: me: upmpdcli
CMDTALK: tidal-app.py: Cache dir for [tidal] is [/var/cache/upmpdcli/tidal]
CMDTALK: tidal-app.py: DB version for [tidal] is [12]
CMDTALK: tidal-app.py: browse: path: ----
CMDTALK: tidal-app.py: browse: path_list: --['0$tidal$']-- last: --0$tidal$--
CMDTALK: tidal-app.py: Loading credentials ...
tidal: getcachedir: me: upmpdcli
CMDTALK: tidal-app.py: get_credentials_from_config_or_files pkce file is not available
tidal: getcachedir: me: upmpdcli
CMDTALK: tidal-app.py: File /var/cache/upmpdcli/tidal/credentials.json not found
tidal: getcachedir: me: upmpdcli
CMDTALK: tidal-app.py: File /var/cache/upmpdcli/tidal/pkce.credentials.json not found
CMDTALK: tidal-app.py: PKCE credentials not statically available
CMDTALK: tidal-app.py: OAUTH2 credentials not statically available
CMDTALK: tidal-app.py: Visit https://link.tidal.com/XXXXX to log in, the code will expire in 300 seconds


Here I've obscured the actual 5-character code in the link.

Immediately opened the link on a web browser on my laptop, logged into the app with my TIDAL credentials, and got a message back in the browser that my device had been successfully linked to my accound.

Back to mconnectLite. The TIDAL folder is now fully populated and I'm listening to The Poll Winners: Barney Kessel with Shelly Manne and Ray Brown, a jazz album I cherished back when I was a teenager. The moOde player seems a little slow to respond when I start a    track but it's now playing and the WebUI is displaying the coverart and track info. Seems to display only the currently playing track and not the album track list but I haven't delved very deeply.

Caveat: The method I chose creates OATH2 credentials, whiich limits access to 24bit/48KHz files (which is fine for me at this stage in my life!). To create PKCE credentials instead, and hence be able to access 24bit/192KHz files, requires using the first method with extra steps. It's all explained in the referenced documentation.

Regards,
Kent

ETA -

1. I'm not sure it was needed using the second authentication method, but I thought I had seen a note somewhere that I had to uncomment the line #tidaluser = tidal in upmpdcli.conf in order for the plugin to start, so I did before I did anything else. When I get the chance, I'll repeat the process on another player without this initial step.

2. Using the second method results in the authentication credentials being stored in /var/cache/upmpdcli/tidal/credentials.json
rather than in upmpdcli.conf.

Hello all, I am new here. I also tried to setup Tidal and had similar issues as reported above.

Reading this, I also setup mconnectlite on my iPad and saw that indeed Tidal works as described above. However, when doing that, aren’t we just using mconnectlite to access Tidal and just stream it via upnp to the Pi instead of Moode on the Pi directly accessing Tidal?

Best regards

Gertjan


Messages In This Thread
Upcoming moOde 9.0.0 (Bookworm) - by Tim Curtis - 03-09-2024, 05:29 PM
RE: Upcoming moOde 9.0.0 (Bookworm) - by tomaxsas - 03-09-2024, 06:55 PM
RE: Upcoming moOde 9.0.0 (Bookworm) - by swizzle - 03-09-2024, 10:02 PM
RE: Upcoming moOde 9.0.0 (Bookworm) - by popej - 03-10-2024, 01:16 PM
RE: Upcoming moOde 9.0.0 (Bookworm) - by DRONE7 - 03-12-2024, 05:28 AM
RE: Upcoming moOde 9.0.0 (Bookworm) - by tomaxsas - 03-15-2024, 12:39 PM
RE: Upcoming moOde 9.0.0 (Bookworm) - by vikozo - 03-15-2024, 04:41 PM
RE: Upcoming moOde 9.0.0 (Bookworm) - by wadada - 03-22-2024, 08:00 AM
RE: Upcoming moOde 9.0.0 (Bookworm) - by Falco - 03-28-2024, 12:34 PM
RE: Upcoming moOde 9.0.0 (Bookworm) - by Falco - 03-28-2024, 12:46 PM
RE: Upcoming moOde 9.0.0 (Bookworm) - by Sunfish - 03-28-2024, 01:54 PM
r900 list question - by adrian311 - 04-02-2024, 11:56 AM
RE: Upcoming moOde 9.0.0 (Bookworm) - by JonPike - 03-29-2024, 06:17 AM
RE: Upcoming moOde 9.0.0 (Bookworm) - by wadada - 03-31-2024, 08:06 PM
RE: Upcoming moOde 9.0.0 (Bookworm) - by wadada - 04-01-2024, 06:46 PM
RE: Upcoming moOde 9.0.0 (Bookworm) - by PieFive - 04-23-2024, 02:21 AM
RE: Upcoming moOde 9.0.0 (Bookworm) - by suzywong - 03-29-2024, 08:22 PM
RE: Upcoming moOde 9.0.0 (Bookworm) - by Nutul - 04-09-2024, 03:49 PM
RE: Upcoming moOde 9.0.0 (Bookworm) - by fralippo - 04-09-2024, 03:55 PM
RE: Upcoming moOde 9.0.0 (Bookworm) - by romain - 04-11-2024, 12:37 PM
RE: Upcoming moOde 9.0.0 (Bookworm) - by Topman44 - 04-11-2024, 06:56 PM
RE: Upcoming moOde 9.0.0 (Bookworm) - by Topman44 - 04-11-2024, 07:48 PM
RE: Upcoming moOde 9.0.0 (Bookworm) - by Topman44 - 04-11-2024, 08:51 PM
RE: Upcoming moOde 9.0.0 (Bookworm) - by Topman44 - 04-22-2024, 05:14 PM
RE: Upcoming moOde 9.0.0 (Bookworm) - by Topman44 - 04-11-2024, 09:53 PM
RE: Upcoming moOde 9.0.0 (Bookworm) - by popeye65 - 04-18-2024, 07:59 PM
RE: Upcoming moOde 9.0.0 (Bookworm) - by popeye65 - 04-19-2024, 06:23 AM
RE: Upcoming moOde 9.0.0 (Bookworm) - by popeye65 - 04-19-2024, 09:17 PM
RE: Upcoming moOde 9.0.0 (Bookworm) - by popeye65 - 04-19-2024, 09:21 PM
RE: Upcoming moOde 9.0.0 (Bookworm) - by fdealexa - 04-19-2024, 11:32 PM
RE: Upcoming moOde 9.0.0 (Bookworm) - by fdealexa - 04-20-2024, 09:13 AM
RE: Upcoming moOde 9.0.0 (Bookworm) - by fralippo - 04-19-2024, 05:50 PM
RE: Upcoming moOde 9.0.0 (Bookworm) - by fralippo - 04-19-2024, 09:11 PM
RE: Upcoming moOde 9.0.0 (Bookworm) - by popej - 04-20-2024, 09:06 PM
RE: Upcoming moOde 9.0.0 (Bookworm) - by DRONE7 - 04-21-2024, 09:04 AM
RE: Upcoming moOde 9.0.0 (Bookworm) - by jonners - 04-21-2024, 10:18 AM
RE: Upcoming moOde 9.0.0 (Bookworm) - by popeye65 - 04-21-2024, 11:28 AM
RE: Upcoming moOde 9.0.0 (Bookworm) - by Nutul - 04-21-2024, 08:17 PM
RE: Upcoming moOde 9.0.0 (Bookworm) - by popeye65 - 04-21-2024, 12:41 PM
RE: Upcoming moOde 9.0.0 (Bookworm) - by popej - 04-21-2024, 12:25 PM
RE: Upcoming moOde 9.0.0 (Bookworm) - by popej - 04-21-2024, 12:46 PM
RE: Upcoming moOde 9.0.0 (Bookworm) - by popeye65 - 04-21-2024, 12:57 PM
RE: Upcoming moOde 9.0.0 (Bookworm) - by fdealexa - 04-21-2024, 05:44 PM
RE: Upcoming moOde 9.0.0 (Bookworm) - by fdealexa - 04-22-2024, 07:39 AM
RE: Upcoming moOde 9.0.0 (Bookworm) - by fralippo - 04-23-2024, 08:50 AM
RE: Upcoming moOde 9.0.0 (Bookworm) - by bitlab - 04-23-2024, 06:50 PM
RE: Upcoming moOde 9.0.0 (Bookworm) - by bitlab - 04-23-2024, 06:59 PM
External wifi adapter - by nosferatu_cat - 04-25-2024, 06:02 PM
RE: Upcoming moOde 9.0.0 (Bookworm) - by romain - 04-26-2024, 09:58 AM
RE: Upcoming moOde 9.0.0 (Bookworm) - by romain - 04-26-2024, 04:05 PM
RE: Upcoming moOde 9.0.0 (Bookworm) - by romain - 04-27-2024, 04:49 PM
RE: Upcoming moOde 9.0.0 (Bookworm) - by popej - 05-05-2024, 11:03 PM
RE: Upcoming moOde 9.0.0 (Bookworm) - by fdealexa - 05-07-2024, 01:38 PM
RE: Upcoming moOde 9.0.0 (Bookworm) - by fdealexa - 05-07-2024, 01:44 PM
RE: Upcoming moOde 9.0.0 (Bookworm) - by quimbo - 05-07-2024, 07:44 PM
RE: Upcoming moOde 9.0.0 (Bookworm) - by jis26 - 05-08-2024, 11:20 AM
RE: Upcoming moOde 9.0.0 (Bookworm) - by PieFive - 05-11-2024, 11:28 PM
RE: Upcoming moOde 9.0.0 (Bookworm) - by ElArte - 05-11-2024, 04:20 PM
RE: Upcoming moOde 9.0.0 (Bookworm) - by ElArte - 05-11-2024, 08:44 PM
RE: Upcoming moOde 9.0.0 (Bookworm) - by ElArte - 05-12-2024, 03:56 PM
RE: Upcoming moOde 9.0.0 (Bookworm) - by STUDI - 05-13-2024, 07:05 AM
RE: Upcoming moOde 9.0.0 (Bookworm) - by gjh_in_the_moode - 05-15-2024, 05:02 AM
RE: Upcoming moOde 9.0.0 (Bookworm) - by hiisukun - 05-18-2024, 10:59 AM

Forum Jump: