Back to Parent

IFTTT & Spotify API

For this product, we relied heavily on IFTTT and the Spotify API. Below, you can see some screenshots of how we connected and some of the functionality.

IFTTT integration was not very challenging. This was due to IFTTT having certain configurations built for some of the most commonly used integrations. Having the Philips Hue and the Spotify integrations defined on the platform was a huge help for creating our own applets. We quickly tested the applets we created and saw that they worked very seamlessly through IFTTT and the cloud. We also switched to a trial pro account for IFTTT in order to add multiple "then" actions to our applet with Spotify.

Integrating the Spotify API was more challenging compared to IFTTT. This was mainly due to working with the specific song ID and the playlist ID we intended to use, as well as Spotify API changing the authorization token for our private playlist randomly (this happened to us at least twice per hour). However; once we successfully created the API, testing and verifying it was very simple and quick, we were able to validate our integration instantly.

For our order of events, once the Particle Argon is fired, our Spotify API kicks in, and adds our desired song to the end of our desired playlist. We then start filling up the water in the tank, and once the water reaches to the specified level in our code, Spotify skips to the next track in the playlist that is playing in the background, which is the song we specified ("Baby Shark") for Spotify to add to the playlist. 


Content Rating

Is this a good/useful/informative piece of content to include in the project? Have your say!

0