Skip to content

vervaekejonathan/rpi-last.fm-coverart

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Last.fm Coverart

This has been tested on a RPI3 running raspbian and on Ubuntu 19.10

Installation

apt install python3-pip
apt install python3-tk
pip3 install pylast
pip3 install guizero[images]

If you get this error about resizing, (re-)install PIL

------------------------------------------------------------
*** GUIZERO WARNING ***
Image resizing - cannot scale the image as PIL is not available.
------------------------------------------------------------
python3 -m pip install --upgrade Pillow

Configure

Be sure to create and add a last.fm api key and your username in the config.ini file.

More settings are available to play with.

Run

On Ubuntu, just use

python3 sound.py

For the RPI use the following script to start the application. It allows to be run from a remote shell and disables the mouse cursor

#!/bin/bash
export DISPLAY=:0.0
killall unclutter
unclutter -idle 0 &
python3 sound.py

Exit

You can exit the fullscreen application by pressing esc. Then you can close the window. Killing the script also works fine.

Example

I've attached an 'Optoma pico pk201' projector to my RPI. This projector's size is almost equal to my RPI. Leaves a nice projection on my wall next to my computer.

PC

Projection

Issues

Sometimes, nothing is shown. This can have 2 reasons. One is that last.fm is temporary down, most of the time it's back in a minute. It's also possible that no album cover is present. A backup was implemented display the artist coverart instead, but I've noticed most of the time both are not there. Just wait for the next song I guess! Or.. Add the coverart yourself on last.fm!

About

Projects the coverart of your current song (via last.fm)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages