Hi all,i have this message when test spotify.py,
Successfully got state from OpenHab: spotify_token_expiry
– Calling Service: Update
{
“timestamp” : 1502806217089,
“progress_ms” : 243053,
“is_playing” : true,
“item” : {
“album” : {
“album_type” : “compilation”,
“artists” : [ {
“external_urls” : {
“spotify” : “https://open.spotify.com/artist/711MCceyCBcFnzjGY4Q7Un”
},
“href” : “https://api.spotify.com/v1/artists/711MCceyCBcFnzjGY4Q7Un”,
“id” : “711MCceyCBcFnzjGY4Q7Un”,
“name” : “AC/DC”,
“type” : “artist”,
“uri” : “spotify:artist:711MCceyCBcFnzjGY4Q7Un”
} ],
“available_markets” : [ “AD”, “AR”, “AT”, “AU”, “BE”, “BG”, “BO”, “BR”, “CA”, “CH”, “CL”, “CO”, “CR”, “CY”, “CZ”, “DE”, “DK”, “DO”, “EC”, “EE”, “ES”, “FI”, “FR”, “GB”, “GR”, “GT”, “HK”, “HN”, “HU”, “ID”, “IE”, “IS”, “IT”, “JP”, “LI”, “LT”, “LU”, “LV”, “MC”, “MT”, “MX”, “MY”, “NI”, “NL”, “NO”, “NZ”, “PA”, “PE”, “PH”, “PL”, “PT”, “PY”, “SE”, “SG”, “SK”, “SV”, “TR”, “TW”, “US”, “UY” ],
“external_urls” : {
“spotify” : “https://open.spotify.com/album/4ydl8Ci7OsndhI2ALnrpIv”
},
“href” : “https://api.spotify.com/v1/albums/4ydl8Ci7OsndhI2ALnrpIv”,
“id” : “4ydl8Ci7OsndhI2ALnrpIv”,
“images” : [ {
“height” : 640,
“url” : “https://i.scdn.co/image/a6d307979309bfc1b8ba9ca64aeae4dc9f51f1ce”,
“width” : 640
}, {
“height” : 300,
“url” : “https://i.scdn.co/image/fed88d1739d842a4b706594ed2af44720634fdd3”,
“width” : 300
}, {
“height” : 64,
“url” : “https://i.scdn.co/image/9b3cc150a0fea3e7fdeb1c18253df9570046ca09”,
“width” : 64
} ],
“name” : “Iron Man 2”,
“type” : “album”,
“uri” : “spotify:album:4ydl8Ci7OsndhI2ALnrpIv”
},
“artists” : [ {
“external_urls” : {
“spotify” : “https://open.spotify.com/artist/711MCceyCBcFnzjGY4Q7Un”
},
“href” : “https://api.spotify.com/v1/artists/711MCceyCBcFnzjGY4Q7Un”,
“id” : “711MCceyCBcFnzjGY4Q7Un”,
“name” : “AC/DC”,
“type” : “artist”,
“uri” : “spotify:artist:711MCceyCBcFnzjGY4Q7Un”
} ],
“available_markets” : [ “AD”, “AR”, “AT”, “AU”, “BE”, “BG”, “BO”, “BR”, “CA”, “CH”, “CL”, “CO”, “CR”, “CY”, “CZ”, “DE”, “DK”, “DO”, “EC”, “EE”, “ES”, “FI”, “FR”, “GB”, “GR”, “GT”, “HK”, “HN”, “HU”, “ID”, “IE”, “IS”, “IT”, “JP”, “LI”, “LT”, “LU”, “LV”, “MC”, “MT”, “MX”, “MY”, “NI”, “NL”, “NO”, “NZ”, “PA”, “PE”, “PH”, “PL”, “PT”, “PY”, “SE”, “SG”, “SK”, “SV”, “TR”, “TW”, “US”, “UY” ],
“disc_number” : 1,
“duration_ms” : 273840,
“explicit” : false,
“external_ids” : {
“isrc” : “AUAP07900029”
},
“external_urls” : {
“spotify” : “https://open.spotify.com/track/1V6kRlJnTC4W319N0BvJag”
},
“href” : “https://api.spotify.com/v1/tracks/1V6kRlJnTC4W319N0BvJag”,
“id” : “1V6kRlJnTC4W319N0BvJag”,
“name” : “If You Want Blood (You’ve Got It)”,
“popularity” : 61,
“preview_url” : “https://p.scdn.co/mp3-preview/e964a5be5f2f6f13712e81ab02713df08d8421c2?cid=f1fbae74042d42c9816a88e6c04d4098”,
“track_number” : 7,
“type” : “track”,
“uri” : “spotify:track:1V6kRlJnTC4W319N0BvJag”
},
“context” : {
“external_urls” : {
“spotify” : “http://open.spotify.com/user/spotify/playlist/37i9dQZF1DXec50AjHrNTq”
},
“href” : “https://api.spotify.com/v1/users/spotify/playlists/37i9dQZF1DXec50AjHrNTq”,
“type” : “playlist”,
“uri” : “spotify:user:spotify:playlist:37i9dQZF1DXec50AjHrNTq”
},
“device” : {
“id” : “13cfd1cda5002a9b87b3302827b77404ffa855bc”,
“is_active” : false,
“is_restricted” : false,
“name” : “Spotify Web Player”,
“type” : “Computer”,
“volume_percent” : 100
},
“repeat_state” : “off”,
“shuffle_state” : false
}
Successfully posted state to OpenHab: spotify_current_track = If You Want Blood (You’ve Got It)
Successfully posted state to OpenHab: spotify_current_artist = AC/DC
Successfully posted state to OpenHab: spotify_current_cover = https://i.scdn.co/image/fed88d1739d842a4b706594ed2af44720634fdd3
Successfully posted state to OpenHab: spotify_current_duration = 273840
Successfully posted state to OpenHab: spotify_current_progress = 243053
Successfully posted state to OpenHab: spotify_current_progress = 243053
Successfully posted state to OpenHab: spotify_current_playing = ON
Successfully posted state to OpenHab: spotify_current_device = Spotify Web Player
Successfully posted state to OpenHab: spotify_current_volume = 100
Successfully posted state to OpenHab: spotify_current_device_id = 13cfd1cda5002a9b87b3302827b77404ffa855bc
-> Success
Successfully posted state to OpenHab: spotify_lastConnectionDateTime = 2017-08-15T14:13:49+0000
Done in 1.20426917076 seconds
Why?
thanks