Skip to content

PendoNL/nl.pendo.spotify

Repository files navigation

Spotify Connect (beta)

This Homey app is currently in development. The main goal of this app is to provided fully working speaker cards (both for the device as on your Homey dashboard).

Example

How to set this up?

Due to rate limiting in the Spotify API, you need to create a Spotify app yourself. Within the context of just your own devices this should work within these limits.

Choose any app name and description but make sure to set https://callback.athom.com/oauth2/callback as redirect URI. When asked which APIs to use select Web API.

  1. Clone this repository
  2. cp example.env.json env.json
  3. Add your client_id and client_secret to env.json
  4. Run homey app install to get the app installed
  5. Add a new device

Bugs?

I've just started tinkering around with Homey and it's apps. Feel free to create issues if you encouter bugs, but keep in mind this is a sparetime thing and I also need some time adapting to the Homey platform.

Plans

  • Get Spotify OAuth2 working
  • Get a working Spotify device using this driver
  • Implement speaker-related abilities
    • Load player state (artist, song, album, shuffle mode, repeat, volume, playing)
    • Set the album cover media element for the device
    • speaker_previous and speaker_next
    • volume_up, volume_down, volume_mute and volume_set
    • speaker_playing (pause and unpause)
  • Functionality testing
  • Code review & clean-up
  • Publish the app to Homey
  • Add flow action (not sure about this one as the official app supports these already)

For the app to be publishable I need to find a way to turn the client_id and client_secret fields into app settings and have them injected into CLIENT_ID and CLIENT_SECRET constants of SpotifyOAuth2Client.

Thanks to

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published