尚未偵測到更新。GitHub 發布版本後會顯示在這裡。
製作者的介紹僅有上面的一句話。 更多詳情請閱讀儲存庫 README。 儲存庫 README ↗
正在載入完整 README。
檢視完整 README ↗Your Last.fm history meets Spotify playback. An endless radio of your own past.
Use it: https://stm-lastfm.vercel.app/ (bring your own Spotify app, see Getting started)
Scrobble Time Machine connects your Last.fm scrobble history with Spotify playback. Start an endless radio of your own scrobbles: random songs from any year, or whole moments played back in the order you played them, so you hear exactly what you were listening to months or years ago.
Spotify only lets an app in Development Mode serve 5 people, so everyone brings their own Spotify app. It's free and takes about 3 minutes. The first screen walks you through it; here are the same steps.
You need: a Last.fm account with a public profile, and Spotify Premium (Spotify requires it to own a developer app and to play in the browser).
https://stm-lastfm.vercel.app/ into Redirect URIs, press Add, then Save. It must match exactly, slash included. (The first screen shows the address to use, with a Copy button.)Your Client ID stays in your browser. It isn't a password: it only tells Spotify which app is asking. To switch apps later, open the Spotify menu in the header and choose Use a different Spotify app.
| What you see | What to do |
|---|---|
| Spotify says INVALID_CLIENT: Invalid redirect URI | The Redirect URI in your Spotify app is not exactly the app's address (check https, the domain and the trailing slash) |
| Spotify says INVALID_CLIENT: Invalid client | The Client ID was mistyped, or the app was deleted: choose Use a different Spotify app and paste it again |
| "This Spotify account isn't on that Spotify app's user list yet" | Using a friend's app: they add your Spotify email under User Management. Your own app: sign in with the Spotify account that created it |
| "Spotify Premium is needed to play in this browser" | That account is not Premium; it can still play on another device where Spotify is open |
| Nothing works with your app anymore | The app owner's Premium lapsed: Spotify turns Development Mode apps off until it is renewed |
| "Spotify is limiting searches" | Spotify's rate limit for your app; wait the time shown |
No build step, no dependencies. Everything runs in the browser (plain HTML, CSS and JS files), plus two small Vercel functions:
api/lfm-station.js fetches Last.fm's recommended station for Discover (Last.fm does not let a browser fetch it directly; it needs no key, only your username)api/session.js keeps a small note per Spotify user, so a radio can be picked up on another device (needs an Upstash Redis store)Sign-in is Spotify's PKCE flow with your own app's Client ID, so there is no client secret anywhere. The Last.fm API key in js/config.js is shared: it only names the app, and Last.fm answers for whichever public username is asked.
localStorage); Disconnect removes the tokens, and Use a different Spotify app also forgets the Client ID.api/session.js keeps the running radio's song list and state under your Spotify user id for 12 hours, so another device can pick it up. Your token is sent to it only to ask Spotify who you are; it is never stored or logged.You don't need your own copy to use the app. If you want one anyway:
以上為 README 的開頭部分。其餘內容請閱讀原文。 檢視完整 README ↗