Skip to content

Nilet/lastcollage-cli

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

lastcollage-cli: Command Line Last.fm Collage Generator

Example collage

Introduction

This a Fork

For a web-based UI, check out Lastcollage.

This script generates a collage based on your Last.fm scrobbles, and saves it as a PNG image.

Prerequisites

  • Install Node.js version 8.0.0 or higher

Getting started

  • Clone the repository
git clone https://github.com/Nilet/lastcollage-cli.git
  • Install dependencies
cd lastcollage-cli
npm install
  • Edit config.json to configure the collage generated
  {
    "username": ["lastfm_username", "separated_by_comma"], 
    "period": "1week",    // Accepted values: "forever", "1week", "1month", "3month", "6month", "1year"
    "rowNum": "5",          // Supports integer values in the range of [1, 20]
    "colNum": "5",          // Same as above
    "type": "albums",       // Accepted values: "albums", "artists", "tracks"
    "showName": "false",    // "true" or "false"
    "hideMissing": "false"  // "true" or "false"
  }
  • Edit index.js and change the following line to alter the save path
//Change this to change where the files are stored
let savePath = `${process.env.HOME}/collages/`
  • Run the script
npm start

The file will be saved in the location you specified.

Changes

  • Config file is now a JSON
  • Supports an array of users instead of a single user
  • Save collage image with the user name instead of a number

About

Generate a collage of your most played Last.fm albums from the command line

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%