Skip to content

wlanowski/lastfm-nowplaying-widget

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

41 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

Releases

No releases published

Packages

No packages published

Languages

  • PHP 85.2%
  • CSS 11.8%
  • HTML 3.0%