Skip to content


Folders and files

Last commit message
Last commit date

Latest commit



7 Commits

Repository files navigation

now playing printer

🎧🔥🖨️🖼️ print out the album art music you're currently listening to

Uses to get the tracks you're listening to and then prints them out on a thermal receipt printer.

Picture of a song printed out

here's a vid of it working:

I did a talk about this, here are my slides:

what you need

  • thermal printer
  • 57mm thermal paper
  • Arduino Uno (Works with other devices that can use serial port too use the corresponding RX and TX)
  • Arduino IDE
  • some jumper wires
  • 9V power supply (splice wires and shove into thermal printer)
  • API key


  1. upload the StandardFirmata example code to your Arduino Uno (File/Examples/Firmata/StandardFirmata -> Upload)
  2. set-up your thermal printer

Visual set-up

you will probably need to tweak the settings for your printer, see the thermalprinter module comments

  1. add environment variables. (Copy .env-sample to .env)
 LASTFM_API= # sign-up for a key at
 LASTFM_SECRET= # also at
 LASTFM_USERAGENT= # this is to tell who is requesting info
 LASTFM_USERNAME= # your last fm username to track what music is playing

 PRINTER_USB= # this is where the arduino is mounted at, see your Arduino IDE (Tools/Port)
 PRINTER_BAUDRATE= # hold the power button and plug the power in, the baudrate is printed on the test page
 PRINTER_ROTATION= # this changes the orientation of the print, 180 is upside down for example
  1. install non-node dependencies: GraphicsMagick
sudo apt-get update
sudo apt-get install graphicsmagick
  1. install node dependencies
npm install


listen to music and then run the script:

sudo node main.js

everytime picks up a new song streaming it'll print it out!

you probably need to run a root to get access to the USB port


🎧🔥🖨️🖼️ print out the album art music to a thermal printer receipt







No releases published


No packages published