ozbe / spotiot

Spotify shuffle AWS IoT Button.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

spotiot

Spotify shuffle AWS IoT Button.

Setup

Environment Variables

$ cat > .env << EOF
SPOTIFY_ID=<CLIENT_ID>
SPOTIFY_SECRET=<CLIENT_SECRET>
ASSERT_USER_ID=<OPTIONAL_SPOTIFY_USER_ID>
EOF

AWS

Build

$ make build

Deploy

$ FUNC_NAME=<AWS_LAMBDA_FUNCTION_NAME> make deploy

After deploying, configure your AWS IoT Button to trigger <AWS_LAMBDA_FUNCTION_NAME>

Usage

Start playing Spotify on a device and then use the remote to control Spotify:

  • Single click to play/pause
  • Double click to skip to the next track
  • Long click to toggle shuffle

About

Spotify shuffle AWS IoT Button.

License:MIT License


Languages

Language:Go 86.2%Language:Makefile 13.8%