/Raspberry-Pi-Vinyl-Emulator

Freelance solution aimed at augmenting the capabilities of the Waveshare Raspberry Pi PN532 NFC HAT by enabling seamless integrated interaction with both the Sonos sound system and the Spotify music platform.

Primary LanguagePython


Raspberry Vinyl Emulator

COMING SOON!

Respiratory




Project OverviewKey FeaturesHow To UseDownloadRelatedLicense



Project Overview


Project Inspiration

  


Key Features

  • Initialization and configuration of an NFC reader
  • Initialization of a Sonos sound system and Spotify
  • Detecting NFC tags and reading their NDEF [NFC Data Exchange Format] records
  • Extracting Spotify URIs from the NDEF [NFC Data Exchange Format] records
  • Check Connections To Minimize Your Time Troubleshooting
  • Clearing the current Sonos queue
  • Sending commands to Sonos system to play music linked by the Spotify URIs
  • Retrieving album cover URLs via Spotify API

How To Use

To clone and run this application, you'll need Python and PIP (which comes with Python installed on your computer.
From your command line:

# Clone the SLP repository
$ git clone https://github.com/yet-it-compiles/Raspberry-Pi-Vinyl-Emulator

# Navigate into the repository
$ cd Raspberry-Pi-Vinyl-Emulator

# Ensure you have Pyton 3.11.3+ installed 
python --version
>> Python 3.11.3

# Ensure you have PIP 23.1.2+ installed
pip --version 
>> pip 23.1.2 from C:\Users\...

# Install the required dependencies
$ pip install requests
$ pip install nfcpy
$ pip install spotipy

# Run the app

Download

You can download the latest version here.


Credits

This software uses the following open source packages:


Support

BuyMeACoffee


License

This software is governed by the MIT License.

(C) 2023 Tyler S. Unsworth (a.k.a. yet-it-compiles)

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.