Mopidy.conf location

Hi,

I have problems to find config file where I can set Spotify account settings. When I run mopidyctl config I can my settings, but where to adjust them? /etc/moody/mopidy.conf file is not filled with same info. If someone can point my to correct direction would be appreciated.

You need to add this to your mopidy.conf:

[spotify]
client_id = The config value will appear here.
client_secret = The config value will appear here.

Thanks, I will try. Do you know where I can find that print out version about conf file? So I can edit that.

I’m, not sure what you mean with “print out version”.
You can edit it with this command:
nano /etc/moody/mopidy.conf

I got the info about spotify from here: https://mopidy.com/ext/spotify/
What the other entries in the config file do you can find here:
https://docs.mopidy.com/en/latest/config/

1 Like

Hi, I added Spotify info to etc/mopidy/mopidy.conf file. I still get message underneath
Mopidy-Spotify extension is not running - you will not be able to play any Spotify tracks

I checked our docs and I learned on dietpi the (extensions) config is at /etc/mpd.conf, and not /etc/moody/mopidy.conf. :smiley:
See: https://dietpi.com/docs/software/media/#mopidy
There is also a tab for Adding Mopidy extensions (if you not already did):
pip3 install --no-cache-dir -U Mopidy-Spotify

Hi

I have seen that mpd.conf but it’s empty. I added Spotify lines there. When I try to install Spotify there comes error message below.

error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for pyspotify
Failed to build pyspotify
ERROR: Could not build wheels for pyspotify, which is required to install pyproject.toml-based projects

Can you share the whole output? Usually error message should be longer.

Hi, I will provide tomorrow that info. Then I have access to computer again.

Hi, back to original problem how/where I can access these settings what is the pic which I attached?
/etc/mopidy/mopidy.conf don´t include these plus that mpd.conf file is empty.


Hi, does this help?

First, try to avoid doing screen prints. If possible, connect via SSH and copy relevant information from terminal directly. Thx for understanding.

Are you running a Raspberry Pi device? You are missing libspotify/api.h library which needs to be installed in addition.

apt install libspotify-dev

Hi, sorry about print screen, I’m noob in conducts in forum. Yes I’m using raspberry pi 3 A+. When I paste your link

ot@DietPi:~# apt install libspotify-dev
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
E: Unable to locate package libspotify-dev

Do you know where I can edit those config settings?

Did you already setup Mopidy apt package repository? It should be step 1 and 2 Debian/Ubuntu — Mopidy 3.4.2 documentation

Try to install libspotify-dev again

Hi

Step 1 and 2

root@DietPi:~# sudo mkdir -p /etc/apt/keyrings
root@DietPi:~# sudo wget -q -O /etc/apt/keyrings/mopidy-archive-keyring.gpg \
>   https://apt.mopidy.com/mopidy.gpg
root@DietPi:~# sudo wget -q -O /etc/apt/sources.list.d/mopidy.list https://apt.mopidy.com/bullseye.list
root@DietPi:~# sudo apt update

and result

root@DietPi:~# apt install libspotify-dev
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
E: Unable to locate package libspotify-dev
root@DietPi:~#

just to be able to replicate, can you share some system information

Required

  • DietPi version | cat /boot/dietpi/.version
  • Distro version | echo $G_DISTRO_NAME $G_RASPBIAN
  • Kernel version | uname -a
  • Architecture | dpkg --print-architecture
  • SBC model | echo $G_HW_MODEL_NAME or (EG: RPi3)