This is the code to go along with a youtube video you can watch here.
This code is for a device that will control spotify using their web api.
- Go to https://developer.spotify.com/documentation/web-api and follow the instructions there to create an app.
- In the app you have created there is a client_ID and client_Secret, copy these values into the spotify_buddy.ino at lines 62 and 63.
- While you are editing that code also change the WIFI_SSID and PASSWORD on lines 58 and 59 to your local wifi name and password.
- Upload the code
- Once thats done you can start the device and it will display an IP on the screen. Write this down.
- In the code change the YOUR_ESP_IP on line 64 to the ip you wrote down.
- Go back to the spotify set up and copy line 64 of the code (""http://YOUR_ESP_IP/callback") into the Redirect URIs section of your app setting page.
- Upload the code again and when the device starts go to the ip in a browser and follow the instructions. Everything should now work!