A dynamically generated Last.fm image.
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
DROIDSANSMONO-LICENSE.txt
DroidSansMono.ttf
README.md
bg.png
index.php
lfm.png

README.md

Lastfm-Dynamic-Image

This generates an image showing the last played song in your Last.fm history.

##Usage

Edit the first lines of the PHP files.

$username = 'YourLastFmUsername';
$apikey = 'YourLastFmApiKey';

If you don't have an API key, you can get one here.

This script is designed to be run on a cron. The suggested method is to add it to crontab via crontab -e.

For example, to regenerate the image every 5 minutes, add */5 * * * * php /var/www/index.php to your crontab.