LIFX bulb sync to Spotify music


I am trying to sync my LIFX smart bulb with music played in Spotify.

I manged to do the following

  1. Extract audio features via Spotify API - beats, track duration etc
  2. Based on the inputs from 1, I am change random colors
    GitHub - petrklus/lifx-simple: Controlling LiFX bulbs using command line. Pure Python 2.7 and

What I want to do is with the audio features, can I sync music in a harmonized way than random colors ? Have anyone done this with LIFX smartbulbs to sync with any audio input