strautomator / core

Strautomator Core
MIT License
41 stars 5 forks source link

Spotify integration not working #34

Closed halvorson closed 11 months ago

halvorson commented 1 year ago

Hey, the Strava integration for listened tracks does not seem to be working.

I tried troubleshooting using a ride on Aug 19 (9680302450), which should have returned a lot of Taylor Swift. IMG_0782

I’m not seeing any errors, and I unlinked Spotify and relinked, which didn’t fix it, so figured it might not be on my end.

Let me know if there’s any add’l information I can provide to help.

Thanks!

igoramadas commented 1 year ago

Thanks for the report. I'll investigate it and update the issue once I have more details.

igoramadas commented 1 year ago

One thing to note: Spotify only exposes the most recent 50 tracks via their API. I'll add this information to the help page, which is missing.

I see you triggered the automation manually for the activity, but the activity was too old so no data came through (as the timestamp was older than your last 50th track listened). On the initial trigger, there were 11 tracks on the response.

Can you please confirm if you're having issues with the automated triggers that happen right after your activity has finished as well?

halvorson commented 1 year ago

Yes. I am having difficulties with the automated triggers as well. I noticed it was missing, and believe I tried syncing it manually immediately after that ride, which is when I re-linked Spotify, and also turned on full tracking to make it easier to diagnose.Lemme create an example event right now and I’ll see if that works. On Aug 28, 2023, at 1:53 AM, Igor Ramadas @.***> wrote: One thing to note: Spotify only exposes the most recent 50 tracks via their API. I'll add this information to the help page, which is missing. I see you triggered the automation manually for the activity, but the activity was too old so no data came through (as the timestamp was older than your last 50th track listened). On the initial trigger, there were 11 tracks on the response. Can you please confirm if you're having issues with the automated triggers that happen right after your activity has finished as well?

—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you authored the thread.Message ID: @.***>

github-actions[bot] commented 11 months ago

Issue flagged as stale for being inactive for 28 days, please report status if this is still relevant.

github-actions[bot] commented 11 months ago

Issue closed due to inactivity, feel free to update and re-open it if necessary.

greenbigfrog commented 4 months ago

I've had a automation setup using spotify for a while now, but it has never worked for me. It's always added a empty string. Listened to: ${trackList}

igoramadas commented 4 months ago

@greenbigfrog are you using that exact tag? It's missing the "spotify" prefix. The right one should be "${spotify.trackList}". Can you please let me know if that one works for you?