A now playing screen to display content from Apple Music. The idea, inspiration (and css 😬) comes from Jason Tate's project, but built for Apple Music.
- A device with a web browser, Node and Yarn to be used as the display-device (Raspberry Pi, iPad, ...)
- A device that can authenticate to Apple Music (can use a different device if display-device doesnt have keyboard)
- An Apple Developer account to generate an Apple Music developer token
-
Clone this repo,
cd
into its directory, and download its depedencies withyarn install
-
Generate an Apple Music developer token using Apple's instructions, and enter it in an
.env
file at the root folder. Also add the host domain and port (if same device you can uselocalhost
) which webpack will use to inject into the client.
DEV_TOKEN=YOUR_DEV_TOKEN_HERE
HOST_DOMAIN=YOUR_DEVICE_DOMAIN
HOST_PORT=3000
-
Build the client code
yarn build
-
Run the app
yarn start
You can run this app on the device you want to display the now playing content using http://your-domain:3000/login.html
.
Click the Login button to authenticate to Apple Music, or scan the QR code on another device with keyboard entry.
Once authenticated, the user token will be persisted on the host device and used to query Apple Music's API for last played metadata.
If you need to logout, load http://your-domain:3000/logout
in your browser.