Skip to content

A script to display on the Pimoroni OLED SPI screen the last track that was scrobbled and your live scrobbles

Notifications You must be signed in to change notification settings

resal1510/LastFm-OLED-Stats

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 

Repository files navigation

LastFm-OLED-Stats

A script to display on the Pimoroni OLED SPI screen what you are actually scrobbling.

The screen used : https://shop.pimoroni.com/products/1-12-oled-breakout?variant=12628508704851

Features

This script can read the LAST.FM API to know what are you listening right now, and write the "Artist - Track" on the screen. When the script detects that you aren't listening to something, it displays an "Offline ..." message with the number of your total scrobbles.

As soon as we listening again to something, the screen "wakes up" and show the current time and the "Artist - Track".

My setup for this project

  • A Raspberry PI Zero W
  • Updated Raspbian distro
  • An internet connection (to connects by SSH, to install/update packages and for the LastFM API)
  • Python 3 (Python 2 will work too, normally, i think)
  • The Pimoroni OLED 1.12" mini screen
  • The Pimoroni Breakout garden mini

Prerequisites

How to use it

  1. Download the "LastFmOLED" folder
  2. CD into the folder
  3. Launch the python script with this command :
python3 /LastFmOLED/LastFmOLED.py --display sh1106 --height 128 --rotate 2 --interface spi --gpio-data-command 9 --spi-device 1

About

A script to display on the Pimoroni OLED SPI screen the last track that was scrobbled and your live scrobbles

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages