Vectoripy is a Python project that seamlessly integrates the Anki Vector robot with the Spotify API, allowing Vector to display real-time track info, including album art, and control playback with gestures!
Leave a ⭐ if you find this project interesting! It's a great way to show your support and help others find it.
- Displays album cover and track information.
- Skip to the next or previous track using Vector's lift (Requires Vector to be on the charger).
- Pause and resume playback with Vector's touch sensor.
- Handles Spotify playback updates in real-time.
- Python 🐍: 3.7+
- Anki Vector SDK 📃: Follow the Installation Guide
- Spotify API 🎵: Utilize the Spotipy Module for interacting with the Spotify API
-
Clone the repository:
git clone https://github.com/yourusername/Vectoripy.git
-
Navigate to the project directory:
cd Vectoripy
-
Follow the Anki Vector SDK installation guide for instructions on how to set up the Anki Vector SDK.
-
Install the required packages:
pip install -r requirements.txt
-
Set up Spotify API credentials:
Get your CLIENT_ID, CLIENT_SECRET, and REDIRECT_URI from your Spotify Developer Dashboard.
Add these credentials to a config.py file:
CLIENT_ID = 'your-client-id' CLIENT_SECRET = 'your-client-secret' REDIRECT_URI = 'your-redirect-uri'
-
Turn on your Anki Vector robot and ensure it's connected to your SDK.
-
Run the main script:
python main.py
-
Vector will display the album cover and track information of the currently playing song on your Spotify account
-
Lift Vector's arm to skip to the next track or lower it to go back to the previous track.
-
Tap Vector's touch sensor to pause or resume playback.
-
Enjoy your music with Vector! 🎶 ️
Contributions are welcome! If you'd like to contribute, please fork the repository and submit a pull request.
This project is licensed under the MIT License - see the LICENSE file for details.