This generates an image showing the last played song in your Last.fm history.
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
For example, to regenerate the image every 5 minutes, add
*/5 * * * * php /var/www/index.php to your crontab.