Skip to content

Latest commit

 

History

History
33 lines (23 loc) · 1.22 KB

README.md

File metadata and controls

33 lines (23 loc) · 1.22 KB

Last.fm Now Playing Widget - Rework by wlanowski

A simple widget that displays a user's currently played song on last.fm.

This work is based on the Last.fm Now Playing Widget by cj123 (MIT-License)

Usage

  • load the last.fm widget in an iframe (recommended). e.g. for html5 doctype
<iframe src="https://wlanowski.de/lastfmwidget/plugin.php?username=<user>" scrolling="no" height="300px"></iframe>
  • replacing <user> with your username
  • If you wish to prevent autorefresh, add &autorefresh=no

Demo

Link

Credits and used software:

Feel free to fork and customize to your requirements!

Host on your own server

  • Upload the content of this repo to your webserver.
  • Get your own Last.fm-API-Key here.
  • Insert your API-Key on line 6 of include/model.php.
  • Insert your prefered username in line 9 of include/model.php.
  • Change the widget.css to your requirements.