Name Mode Size
LICENSE 100644 1 kb
README.md 100644 1 kb
current_collage.jpg 100644 202 kb
lastfm_chart_collage.sh 100755 6 kb
lastfm_collage.rc 100644 0 kb
README.md
# 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. ![Example](https://s26.postimg.org/45icvxk3t/current_collage.jpg) 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