- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello,
I have a family plan on Spotify, and to keep my playlists separate, I created a second account specifically for app development, which we'll call acc_DEV My main account is acc_MAIN. I created an app on the Spotify Developer Dashboard with the acc_DEV account, called "timing playlist."
I wrote a program on my Raspberry Pi and connected it to the app via spotifyd. I used the client_id and client_secret from the app I created, which I entered into my configuration file. Here's a simplified version of my code (without the actual client_id and client_secret):
import spotipy
from spotipy.oauth2 import SpotifyOAuth
sp = spotipy.Spotify(auth_manager=SpotifyOAuth(
client_id='your_client_id',
client_secret='your_client_secret',
redirect_uri='http://127.0.0.1:8888/callback',
scope='user-library-read user-read-playback-state user-modify-playback-state'
))
# Try to get list of devices
devices = sp.devices()
print(devices)
The issue I'm encountering is that when I run the program, the "Raspberry Pi" device is not found. The only device shown is another one that is linked to my acc_DEV account. However, when I check via my phone (which is logged into my main account, acc_MAIN), I can see and control the "Raspberry Pi" device just fine.
It seems like I may have logged into the app with the wrong user account on my raspberry pi. How can I ensure that my app uses the correct account acc_DEV to control the "Raspberry Pi"?
Thank you in advance for your help!
Best regards,
Renรฉ
Solved! Go to Solution.
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page