Skip to content
Projekte

Über uns

Spotify cover art display and music player for the Pimoroni Presto

Design und Medien

So werden diese Zahlen gemessen

Gemessener Sternzuwachs

in 24h
0
in 7 days
0
in 15 days
0
in 1 month
Verlauf wird gesammelt

Nettoänderungen in überlappenden Zeiträumen, keine Tagessummen. Fehlende Messwerte bleiben leer. Sterne zeigen Interesse, nicht Qualität.

README.md

Original

PrestoDeck

PrestoDeck is a Spotify music controller for the Pimoroni Presto. It displays the album cover art, name, and artist of the currently playing track and provides basic controls for playback.

Hardware

Installation

Follow these steps to install and set up the project on your Presto. You can also checkout this YouTube demo/tutorial.

1. Install Thonny

Download and install Thonny IDE, which you'll use to connect to your Presto and upload the code:

2. Clone the GitHub Repository

Clone the repository to your local machine:

git clone https://github.com/fatihak/PrestoDeck.git

3. Create a Spotify App

  • Visit Spotify For Developers and Sign In
  • In the Developer Dashboard, click "Create an App"
  • Give your app a Name and Description
  • For the Redirect URIs, enterhttp://127.0.0.1:8080
  • Tick the "Web API" box

4. Generate Spotify Credentials

  • Run the helper script to authenticate and generate your Spotify credentials:

    bash adhoc/generate_token.sh
    
    • Note: this requires python3 to be installed on your system
  • You'll be prompted to:

    • Enter the Client ID, Client Secret, and Redirect URI for your Spotify App.
    • Visit a URL to authorize your app and paste the redirected URL back.
    • Select a default Spotify device to control playback from PrestoDeck.
  • Once complete, copy the generated SPOTIFY_CREDENTIALS={...} line and store for the next steps

3. Connect your Presto to your computer with a USB-C cable

4. Upload Project Files

  • Open Thonny IDE, and ensure the interpreter is set to MicroPython (Raspberry Pi Pico).
  • In the Files window, right clicking on the root of the cloned project in the Files window and selecting 'Upload to /' to copy all the files to the Presto

5. Store Wi-Fi and Spotify Credentials

  • In Thonny, open the secrets.py file.
  • Replace the placeholder WIFI credentials with your SSID and password
  • Paste the SPOTIFY_CREDENTIALS= line from step #4

6. Run the main.py Script

  • In Thonny, open the main.py file.
  • Click Run to launch the program, and let the beats flow!

Additional Resources

Sponsoring

PrestoDeck is maintained and developed with the help of sponsors. If you enjoy the project or find it useful, consider supporting its continued development.

Become a Patreon Become a Patreon Buy Me A Coffee

Ähnliche Projekte entdecken

Wird geladen…