Comments (11)
@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.
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.
@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.
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.
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.
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.
Count me in, also using lastFM on all of my devices, just missing the Echo now !
from geemusic.
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.
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.
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.
#54 is merged
from geemusic.
Related Issues (20)
- How to create an Alexa Skill in new Developer Console HOT 17
- Alexa - recognition issues? HOT 2
- ImportError: No module named 'pip.req' HOT 3
- Error after deploying via Lambda HOT 2
- AttributeError: module 'lib' has no attribute 'X509V3_EXT_get' HOT 1
- TypeError: Can't compile non template nodes HOT 7
- "AttributeError: module 'lib' has no attribute 'X509V3_EXT_get' " error message when GeeMusic server receives a request HOT 1
- Docker image won't start HOT 2
- Unable to Play Playlists & Uploaded from Paid Account HOT 1
- Tracks end early
- trouble getting this working - there was a problem with the response HOT 3
- Play on a speaker group or stereo pair?
- Undefined Variable Reference
- Is gee music still working? HOT 1
- Heroku : Playlist fails to play, but finds the tracks
- Support for Alexa-Hosted Skill?
- Heroku : Fails to deploy - No module named 'pip.req' HOT 1
- Docker Image Build Fails HOT 2
- ngrok assigning a new URL on each start HOT 1
- Cannot log in
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from geemusic.