mirror of
https://github.com/spotipy-dev/spotipy.git
synced 2026-04-27 00:25:54 +03:00
[GH-ISSUE #333] Raspberry Pi playing music from Spotify automatically #192
Labels
No labels
api-bug
bug
dependencies
documentation
duplicate
enhancement
external-ide
headless-mode
implicit-grant-flow
invalid
missing-endpoint
pr-welcome
private-api
pull-request
question
spotipy3
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/spotipy#192
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @CMoore455 on GitHub (Oct 18, 2018).
Original GitHub issue: https://github.com/spotipy-dev/spotipy/issues/333
This is not an issue on this library. I am trying to figure out how to get a Raspberry Pi to play music from Spotify when the user comes home. I have some python code that will let the Raspberry Pi know the user is home, now I just need to the music to play. I am wanting to know if this can be possible in anyway? I have asked this on Stack Overflow, but if you answer on here it is appreciated.
@chrisfs commented on GitHub (May 9, 2019):
There's a Python library for Spotify called Spotipy. You can check that out. https://spotipy.readthedocs.io/en/latest/
@MaZderMind commented on GitHub (Jan 21, 2020):
I had a similar requirement.
My Pi is running https://github.com/dtcooper/raspotify and thus behaves like a Spotify Connect Speaker.
In my Code I then connect to the Spotify Connect API and find the Device-ID of this instance by Name. With this ID you can now control the Music playing on this Speaker through the Web-API.
The relevant Code is here:
github.com/MaZderMind/jukebox@ddeadcd/software/jukebox/spotify.py@stephanebruckert commented on GitHub (Jan 21, 2020):
`Nice solution by @MaZderMind!