Skip to content

A learn project to play music I own via NFC Tags on Sonos/Spotify

Notifications You must be signed in to change notification settings

michaelfeinbier/nfc-jukebox

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

NFC-Vinyl Player

This is a small hobby-project of mine to learn Golang and to help automating my smart home.

Basic Idea

Idea is to put NFC Tags on all the vinyls I own. If you scan a tag with your phone it will play the album on Spotify/Sonos.

I plan to achieve this by running a small webserver on a raspberry pi and then put a unique URI per vinyl on a NFC Tag. Once this URI is called the playback could start immediately.

What we need

  • Webserver
  • Authentication against Spotify
  • Databaselike key/value store for NFC Tag(URL?) to Album matching (maybe Bitcask?)
  • A lot of NFC Tags 😉

Open Questions

* How do we automatically play a specific Album (Spotify URI) on a specific Sonos zone player? (see: https://svrooij.io/sonos-api-docs/services/av-transport.html#adduritoqueue)

Links / Inspiration

Required Configurations (ENV VARS)

Provide the following ENV var to the docker container to make it work

  • HTTP_PORT the port where the server should run
  • REDIS_URI a connection string to a redis server
  • SPOTIFY_CLIENT_ID A spotify app client id
  • SPOTIFY_CLIENT_SECRET A spotify app client secret
  • SONOS_PLAYER The IP of your local Sonos to play on
  • SONOS_COORDINATOR UID of the ZonePlayer (e.g RINCON_347E5C03D62F01400)

Photo by Victrola Record Players on Unsplash

About

A learn project to play music I own via NFC Tags on Sonos/Spotify

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published