GithubHelp home page GithubHelp logo

jacc / music-box Goto Github PK

View Code? Open in Web Editor NEW
107.0 4.0 77.0 580 KB

🎧 Get your last weeks listening report from last.fm in a GitHub Gist.

License: Apache License 2.0

JavaScript 98.39% Shell 1.61%
github-gist gistbox awesome-pinned-gists pinned-gist

music-box's Introduction

music-box

Update a gist to contain your weekly plays on Last.fm


πŸ“Œβœ¨ For more pinned-gist projects like this one, check out: https://github.com/matchai/awesome-pinned-gists

✨ Inspiration

This code was heavily inspired by @JohnPhamous's strava-box.

πŸŽ’ Prep Work

  1. Create a new public GitHub Gist (https://gist.github.com/)
  2. Create a token with the gist scope and copy it. (https://github.com/settings/tokens/new)
  3. Create a Last.fm Application (https://www.last.fm/api/account/create)
  4. Copy the API token

πŸ–₯ Project Setup

  1. Fork this repo
  2. Go to your fork's Settings > Secrets > Add a new secret for each environment secret (below)

🀫 Environment Secrets

  • GIST_ID: The ID portion from your gist url https://gist.github.com/<github username>/6d5f84419863089a167387da62dd7081.
  • GH_TOKEN: The GitHub token generated above.
  • LASTFM_KEY: The API key you got from creating a Last.fm API account.
  • LFMUSERNAME: Your Last.fm username.

πŸ’Έ Donations

Feel free to use the GitHub Sponsor button to donate towards my work if you're feeling generous <3

music-box's People

Contributors

1conan avatar casperdcl avatar dependabot[bot] avatar jacc avatar jonimettala avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

music-box's Issues

Shorter width for new GitHub UI

After the GitHub UI update with more padding in featured repos/gists, my musicbox looks like this:

Screen Shot 2020-06-27 at 2 32 12 AM

Maybe we can decrease the width of the text, perhaps have it configurable?

Improvements, etc to eventually get done

  • make artist1, artist2, etc. into an array instead of singular objects completed in pull request #4
  • eventually expand/inflate the play count to fill in the bar
  • allow users to change from artist of week to month, year
  • allow users to change to top songs, etc.

Issue when running for the first time

Hey there!
Thanks for the awesome tool, you've inspired me to make my own that uses rescuetime data πŸ‘

Wanted to raise a bit of an issue with getting it working though. Please see the error below. Let me know if you need any more info πŸ‘

Screenshot 2019-10-30 at 09 55 08

Should I use circleCI ?

Do you need anything other than those mentioned in README.md? Should I integrate with Circle CI here?

Struggling to see past revisions

Hey there,

Great work on music-box. I absolutely love it and the difference it makes in my listening history on Spotify. When I first set up music-box I recalled being able to see past revisions; however, now, I cannot. Is there any way to have the past revisions visible when revised? You can take a look at my gist here (if that helps).

Thanks!

Update padding for new gists size

Apparently GitHub updated the Gist padding/size/whatever, so update the padding value. Can be seen in projects like waka-box, etc.

imperfect alignment due to Asian language

The alignment has bug if text contains Asian language word like Japanese or Chinese.

γƒ’γƒˆγƒͺエ            β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–‘β–‘β–‘β–‘     75 plays
Polyphia        β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘     50 plays
CHON            β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘     43 plays
θ‰ζ±ζ²’ζœ‰ζ΄Ύε°          β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘     18 plays
amazarashi      β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘     16 plays

Sorry that I'm not a programmer so not able to handle this, hope you can fix it.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.