Display currently playing song from MPD or other music players in a sidebar widget.
Unpack the archive.
widget.php to a
directory in your WordPress plugins directory. Or just unpack the
archive under your plugins directory - all the python stuff will be
Activate the plugin.
Goto Options->SGWhatsPlaying, and set the "password". Don't use a password you use for any real access - this is just key to keep random losers from screwing with your blog, and is not secure in any real way.
Unpack the archive on the machine with access to your music player.
If you don't have Python installed, install it.
python setup.py install to install the program and
module into your regular Python site directories. But you can skip
sgwpupdate.py will run fine out of any directory.
Copy sgwpupdate.conf to your
Edit the configuration file to set
blog in the
sgwpupdate section, and (if using MPD)
sgwpmpd section. See later in this document for complete
sgwpupdate.py --debug to test. If you're not using MPD, you can
sgwpupdate.py --debug --title 'Some Song Title' --artist
'Some Artist' --album 'Album Name' --state 'play'.
To start in daemon mode, run
sgwupdate.ini is a Debian-compatible initrc file. Copy it
/etc/init.d/sgwpupdate and create the desired links in
/etc/rc?.d to have sgwpupdate.py automatically start on system
Requires: 2.2.0 or higher
Compatible up to: 2.3
Last Updated: 9 years ago
Active Installs: Less than 10
Got something to say? Need help?