Giter Club home page Giter Club logo

Comments (11)

huberf avatar huberf commented on July 30, 2024 1

@fergyfresh That library isn't lightweight enough for what I want. The last.fm API is dead simple (a single POST request will scrobble a song), so writing my own shouldn't be very hard.

@Danondso I don't think a skill can get access to the APIs needed to acquire the currently playing song, but I'll look into it and see if it could be done. That would definitely be optimal, and if it is possible, I'll definitely build a skill for it.

from geemusic.

fergyfresh avatar fergyfresh commented on July 30, 2024

This is going to sound a bit naïve, but could we trigger the 'scrobbling' outside of this skill and do it based on what is currently playing on Alexa so that way the last.fm skill can integrate with the Spotify skill?

from geemusic.

huberf avatar huberf commented on July 30, 2024

@fergyfresh IFTTT has the ability to fire a trigger whenever a new song is played, and one could build a Maker endpoint that would then log the song in Last.fm for you (one would have to create the logging code yourself as Last.fm isn't supported by IFTTT). However, the IFTTT trigger only fires when an official music service is being used such as Spotify, whereas GeeMusic wouldn't be able to access this functionality. I suppose I can write a general purpose python scrobbler library, and then it can be included in this code base and also used with IFTTT or another service to scrobble Spotify.

from geemusic.

huberf avatar huberf commented on July 30, 2024

I've gone ahead and started the code in a separate GitHub repo, and will open a PR once it is complete. I'll leave this issue open for now, in case someone else is interested in chiming in.

from geemusic.

fergyfresh avatar fergyfresh commented on July 30, 2024

https://github.com/pylast/pylast would that do what you want? The documentation is kind of lacking, but I just found it and wanted to push out the info to you before you got too far down the rabbit hole.

from geemusic.

Danondso avatar Danondso commented on July 30, 2024

Hmm what about a standalone scrobbling skill for Alexa? No clue about the work involved with that but it would be nice to have a scrobbler independent of service.

from geemusic.

arimk avatar arimk commented on July 30, 2024

Count me in, also using lastFM on all of my devices, just missing the Echo now !

from geemusic.

huberf avatar huberf commented on July 30, 2024

I likely would have finished the entire system by now if the Last.fm API dashboard wasn't down. No matter what I do (using different devices, different URL endpoints) it always returns a 500 error when I try to acces the place where my API keys are controlled from. I have the code fully working except for this, and will update you all when it resolved. I haven't been able to get a response from support.

from geemusic.

huberf avatar huberf commented on July 30, 2024

The API wrapper should be complete now and seems to function correctly. All the code can be accessed, tested, and contributed to at https://github.com/huberf/lastfm-scrobbler

Now, I just need to work on correctly integrating this into the GeeMusic repo.

from geemusic.

huberf avatar huberf commented on July 30, 2024

I now have Last.fm support fully working. You can view it in this PR or at my cloned repo. If you have any questions about setup, or recommendations for improving the setup directions, let me know and I will assist as quickly as possible.

from geemusic.

stevenleeg avatar stevenleeg commented on July 30, 2024

#54 is merged 👍 🎉

from geemusic.

Related Issues (20)

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.