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.
- Install Node.js version 8.0.0 or higher
- Clone the repository
git clone https://github.com/Nilet/lastcollage-cli.git
- Install dependencies
cd lastcollage-cli
npm install
- Edit
config.jsonto 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.jsand 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.
- 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
