Skip to content

Print last played track and music stats from last.fm to an e-ink display

Notifications You must be signed in to change notification settings

hankhank10/ink-music-stats

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 

Repository files navigation

This repo is now deprecated - see music-screen-api for this functionality and more

Details below are included in case you are still using this library, but I recommend moving to music-screen-api

Ink music stats

This repositary uses my lastfm-user-data-api to pull the last played track and some music stats from last.fm and print them to an e-ink display, specifically the Pimoroni inky what which has a github here

Example of what it looks like

Installation

Purchase and install the Pimoroni inky wHAT on your Raspberry Pi. Ensure that you have enabled I2C in raspi-config

Install inky library with:

sudo pip install inky

Clone the ink-music-stats repo to your Raspberry Pi.

Edit the go_ink.py to set your preferences (or not - the defaults are fine).

Test the module works by entering python3 go_ink.py at the command line in the directory.

Running at startup

Once you have it running right you can set it up to run at startup without your intervention.

There are a variety of ways to do this. I like PM2 (which is really built for node.js but can also automate python):

sudo npm install -g pm2
pm2 start ink-music-stats/go_ink.py --interpreter=python3 -- LASTFMUSERNAMETOCHECK
pm2 startup systemd

This will generate something which looks like

sudo env PATH=$PATH:/usr/bin /usr/local/lib/node_modules/pm2/bin/pm2 startup systemd -u pi --hp /home/pi

Put this (or, rather, whatever your system generates) into the command line followed by

pm2 save
sudo reboot

About

Print last played track and music stats from last.fm to an e-ink display

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages