Spotify

Get Spotify sync

GET/api/spotify
Open. Open to everyone who can reach Tempolight.

The sync settings, the mode (exact, shared, analysis, learning, live, paused, idle, off), the track and its beat map, learning progress and the cover colours.

Responses

200OKapplication/json
settingsobject
onboolean
connectedboolean
modestring
One of "exact" "shared" "analysis" "learning" "live" "paused" "idle" "off"
modeNamestring
viastring | null
errorstring | null
trackobject | null

The Spotify track.

mapobject | null

The beat map in use.

learnobject | null

Learning progress.

lockedboolean
analysisstring
One of "off" "blocked" "unknown"
accountobject

The connected account.

localobject

Now playing on this computer.

pollobject

Polling timing.

cloudobject

The shared beat-map service.

colorsarray | null
Request
curl 'http://localhost:8080/api/spotify'
Response
{
  "settings": {
    "sync": true,
    "learn": true,
    "analysis": true,
    "coverColours": true,
    "pauseFade": true,
    "muteDim": true,
    "cloud": {
      "url": "string",
      "use": true,
      "share": true
    }
  },
  "on": true,
  "connected": true,
  "mode": "exact",
  "modeName": "string",
  "via": "string",
  "error": "string",
  "track": {},
  "map": {},
  "learn": {},
  "locked": true,
  "analysis": "off",
  "account": {},
  "local": {},
  "poll": {},
  "cloud": {},
  "colors": [
    "#ff0066"
  ]
}
Edit on GitHub