Skip to content
プロジェクト

概要

Spotify cover art display and music player for the Pimoroni Presto

デザイン・メディア

この数値の測り方

計測したスター増加

24時間
0
7日間
0
15日間
0
1か月
履歴を収集中

期間ごとの純増数です。期間は重複しており、日別の値ではありません。未計測の値は空欄です。スター数は注目度の指標であり、品質の保証ではありません。

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

関連プロジェクトを探す

読み込み中…