https://github.com/uriel1998/lastfm_chart_services
Locally hosted version of the Last.FM collage generator at http://tapmusic.net/
https://github.com/uriel1998/lastfm_chart_services
bash imagemagick last-fm
Last synced: 2 months ago
JSON representation
Locally hosted version of the Last.FM collage generator at http://tapmusic.net/
- Host: GitHub
- URL: https://github.com/uriel1998/lastfm_chart_services
- Owner: uriel1998
- License: mit
- Created: 2016-07-17T01:05:50.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2019-08-21T15:28:10.000Z (almost 7 years ago)
- Last Synced: 2025-07-03T07:51:16.143Z (12 months ago)
- Topics: bash, imagemagick, last-fm
- Language: Shell
- Homepage:
- Size: 421 KB
- Stars: 3
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# lastfm_chart_services
There's a Last.FM collage generator at http://tapmusic.net/ which is
good and fine (and I donated money to them as well). But I wanted to
self-host, get a little more experience with REST APIs (even if it's
with CURL) and imagemagick, so I'm aiming to recreate it here with bash
and formatted the way I want it.

This implies that you're going to have some way to post to social media
automagically like ttytter (or the project that's replaced it).
# Requires
* curl
* [jq](https://github.com/stedolan/jq)
* awk
* [imagemagick](http://www.imagemagick.org)
* last.fm account (duh) and [API key](https://www.last.fm/api)
Optional
* [simple_placeholder_images](https://github.com/uriel1998/simple_placeholder_images) to deal with missing album covers
* [vindauga](https://github.com/uriel1998/vindauga) cache used if last.fm fails
# Usage
Make sure you get a last.fm API key. :)
Create lastfm_collage.rc in $HOME/.config with these lines (in order!)
```
YOUR_API_KEY
YOUR_USERNAME
7day
/DIRECTORY/FOR/OUTPUT
```
Then run the script!
# TODO
* Have the script use vindauga first
* See if there's a better way to get play counts instead of relying on last.fm