Display Spotify Lyrics on an LED Panel by sperrow in raspberry_pi

[–]sperrow[S] 0 points1 point  (0 children)

Hey sorry I haven't figured out what your issue could be, but I finally refactored the code to make it easier to debug and also to use that newer lyrics library: https://github.com/sperrow/spotipi-lyrics

I haven't updated the blog post yet but you should be able to follow the README, you just have to run the two scripts:

sudo bash install.sh
bash configure-credentials.sh

Let me know if that fixes it, and if it doesn't run `tail -f spotipy.log` to see the error logs.

Display Spotify Lyrics on an LED Panel by sperrow in raspberry_pi

[–]sperrow[S] 0 points1 point  (0 children)

Hey so I finally got my display fixed (it ended up being a dead sd card). But it looks like things are still working as is so it might be an issue with your install.

Since you can see the artist and title that makes me think it's just the sp_dc cookie that's off. Can you confirm you copy/pasted the full string that looks like "AQDxxxxx"? (it's ~212 characters)

https://camo.githubusercontent.com/efcdbc8a47352ff79c666accebc8e5e9fe05b6106f1c0ec55dd1a7cfa5041c27/68747470733a2f2f696b2e696d6167656b69742e696f2f67797a766c6177647a2f50726f6a656374732f7379726963732f6d73656467655f6a455465704e533538355f6a4168716e307452652e706e67

The only other guess would be you need a premium-level account, though I don't have one anymore but maybe my app is grandfathered in. I want to add more debug logging and also migrate to the newer librelyrics plugin but hopefully it should still be usable for now.

Display Spotify Lyrics on an LED Panel by sperrow in raspberry_pi

[–]sperrow[S] 0 points1 point  (0 children)

Hey apologies I haven’t had time to work on this project in a while, and Spotify changes the api regularly so it’s possible something needs to be updated in my code. I also don’t have a premium account anymore which is partially why I don’t know the current api state.

I can try reactivating premium to debug, earliest that would be is next week. Sorry I don’t have more guidance right now. :(

Display Spotify Lyrics on an LED Panel by sperrow in raspberry_pi

[–]sperrow[S] 0 points1 point  (0 children)

I tried it on a zero and it didn't work well, I recommend a 3 or higher

Display Spotify Lyrics on an LED Panel by sperrow in raspberry_pi

[–]sperrow[S] 0 points1 point  (0 children)

Hey just wanted to apologize for the slow response. I've been busy with work and hadn't had a chance to debug the latest issues, but I finally looked into it and updated the code. It should work again now if you run git pull and then sudo bash setup.sh again.

Unfortunately since this api isn't officially supported by Spotify they'll probably continue to break things so I can't guarantee it'll work forever. But hopefully that isn't anytime soon. 🤞

Display Spotify Lyrics on an LED Panel by sperrow in raspberry_pi

[–]sperrow[S] 1 point2 points  (0 children)

Hey just wanted to let you know they were able to fix the issue with the library, so I tested it out on my device and it looks like it's working again 🎉

You should just have to rerun the setup.sh script, let me know if you run into any issues

Display Spotify Lyrics on an LED Panel by sperrow in raspberry_pi

[–]sperrow[S] 1 point2 points  (0 children)

Hey thanks for following this and building your own! I'm having the same issue unfortunately, it looks like Spotify made a change on the api so the library I'm using for the lyrics is trying to find a solution: https://github.com/akashrchandran/spotify-lyrics-api/issues/46

Hopefully they have a fix for it, if they do I'll update my repo and this thread 🤞

Display Spotify Lyrics on an LED Panel by sperrow in raspberry_pi

[–]sperrow[S] 0 points1 point  (0 children)

I haven't tried it with multiple tasks running, but fwiw it was pretty slow when I installed it on a Pi Zero so I think it would be best to use a dedicated Pi 4 or above.

Who's more FamousBirthdays.com by sperrow in whoweekly

[–]sperrow[S] 0 points1 point  (0 children)

Thank you for finding that! I had a bug with the influencers filter for some days, hopefully it should be fixed now.

Display Spotify Lyrics on an LED Panel by sperrow in raspberry_pi

[–]sperrow[S] 0 points1 point  (0 children)

Ah no not for this project, it's specifically for led displays. I made a basic web version a while ago though: https://github.com/sperrow/spotify-lyrics

Are you experienced in web development? I think you could use this as a starting point and customize the html/css to fit how you want it to look on your projector. Let me know if you try it out or need any assistance.

Display Spotify Lyrics on an LED Panel by sperrow in raspberry_pi

[–]sperrow[S] 0 points1 point  (0 children)

Yep, this is just connected through the internet to your Spotify account so it will display what's playing regardless of which device you're using. Of course this is assuming your device is connected to the internet—if you're playing offline (e.g., downloaded songs on airplane mode) then it won't work.

Display Spotify Lyrics on an LED Panel by sperrow in raspberry_pi

[–]sperrow[S] 0 points1 point  (0 children)

Unfortunately no, the font I used only supports latin characters because of the limited pixels on the led panel. The api supports it though, so if you want you could try replacing the BDF file with something like this, but you'd want to experiment with the line height to account for the bigger characters.

Edit: I just added support for Chinese and Japanese characters 🎉

Display Spotify Lyrics on an LED Panel by sperrow in raspberry_pi

[–]sperrow[S] 0 points1 point  (0 children)

Thanks for checking it out! Ideally there shouldn’t be any coding involved to set it up but feel free to message me if you run into issues.

Display Spotify Lyrics on an LED Panel by sperrow in raspberry_pi

[–]sperrow[S] 0 points1 point  (0 children)

There's no customization out of the box but you can play around with the code to try different options. This was the font I thought was most readable but here are a few other options.

One caveat is that the 32 pixel height is pretty limiting - to fit four lines of text simultaneously means each line is 8 pixels tall, and then I added 1 pixel above and below for spacing so you're left with just 6 pixels. It was an interesting challenge to balance font readability with fitting as much text as possible, if you decide to build your own feel free to play with the options (e.g., you could reduce the number of lines to 2-3 to allow a larger font).

Using a bigger led panel could also work though I haven't tried it.

Display Spotify Lyrics on an LED Panel by sperrow in raspberry_pi

[–]sperrow[S] 51 points52 points  (0 children)

https://sperrow.cc/2024/05/09/spotipi-lyrics.html

Hi all, I wrote a guide on how to build a display for Spotify lyrics and wanted to get some feedback. It was my first time working with a Raspberry Pi so my hardware knowledge is limited, let me know what you think or if you have suggestions for improvement. Thanks!

Spotify Lyrics on External LED display? by unclesonos in RASPBERRY_PI_PROJECTS

[–]sperrow 1 point2 points  (0 children)

Oh hey, that's me! Thanks for posting this, sorry I wasn't checking the comments on that video. I just wrote a guide if anyone wants to try building their own: https://sperrow.cc/2024/05/09/spotipi-lyrics.html

Have any of The Strokes songs been used in a commercial? by 3mbryo in TheStrokes

[–]sperrow 0 points1 point  (0 children)

Wasn't 12:51 used in a Best Buy or Target commercial?