Locally hosted version of the Last.FM collage generator at http://tapmusic.net/
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Steven Saus
8954bb76b1
|
5 years ago | |
---|---|---|
LICENSE | 8 years ago | |
README.md | 5 years ago | |
current_collage.jpg | 5 years ago | |
lastfm_chart_collage.sh | 5 years ago | |
lastfm_collage.rc | 7 years ago |
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.
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
- awk
- imagemagick
- last.fm account (duh) and API key
Optional
- simple_placeholder_images to deal with missing album covers
- 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