Comments (8)
The thing you describe here sounds a bit like raspotify is in discovery mode and not logged in.
I'll see if I can replicate when I get home from work.
from spotify-skill.
Hi, thanks for reporting.
Can you please provide three things for me:
The name set in raspotify, the name of the Mycroft install and the hostname of the raspberry-pi (cat /etc/hostname)
The code tries to find the local device and checks if the spotify service matches the hostname of the machine. (The log makes me think you have a name matching the hostname)
Regarding the edit 2:
Do you mean that after selecting the device on your phone and playing once Mycroft could use it?
from spotify-skill.
hi and thanks for the quick reply.
in raspotify
which I renamed raspotify.conf
(should I set it back ?):
DEVICE_NAME="johan"
that's the name of the device on mycroft.ai
mycroft install: Picroft
hostname of the machine: picroft
Regarding the edit 2:
Do you mean that after selecting the device on your phone and playing once Mycroft could use it?
Yes exactly. I went on spotify on my phone and it offered me to select the device so I selected johan
and it started playing on my raspberry/picroft. I could then play songs via mycroft as expected. I rebooted and then it wasn't working again.
from spotify-skill.
Hi, looking at the raspotify.service
file it looks like it's looking for the config in /etc/default/raspotify
so you should probably restore the filename.
I could not reproduce the issue here but I currently don't have a raspberry Pi to test on so I've tried to recreate the scenario as best as I can on my desktop.
If a device with the same name as the mycroft unit was found it should have reported DeviceType.MYCROFT
from spotify-skill.
Thanks for taking the time to look at it.
I guess I will try to reinstall everything from the beginning and see how it goes.
One question though, when I install the spotify-skill, the auth.py
file is missing. What I did then was to git pull
from the mycroft-spotify
folder and then pip install the requirements.txt
. Is it the right way to do it?
from spotify-skill.
Yes, the mycroft-skills repo hasn't accepted the latest release yet so that sounds like the correct way to do it. Just make sure to pip install into the mycroft virtual environment using mycroft-pip
(found in the mycroft-core/bin folder)
Before re-installing try to change the raspotify config file back to the original version. Also a good test is to ask what spotify devices are available
it should list all available devices online connected to your spotify user or complain about some credentials or similar if there is something missing.
from spotify-skill.
I uninstalled raspotify and then reinstalled it.
Same problem, I still get no device available
after what spotify devices are available
.
By going through my phone, I could select my device on the spotify app and then control it via mycroft, even when the app was closed.
After changing for another song, I got this error one time:
21:28:22.819 | INFO | 752 | Playback Control Skill | Resolving Player for: haut standing sch
21:28:25.229 | INFO | 752 | SpotifySkill | Handling "haut standing sch" as a genric query...
21:28:25.230 | INFO | 752 | SpotifySkill | Checking users playlists
21:28:25.231 | INFO | 752 | SpotifySkill | Checking artists
21:28:25.367 | INFO | 752 | SpotifySkill | Checking tracks
21:28:25.563 | INFO | 752 | SpotifySkill | Spotify confidence: 0.8666666666666667
~~~~R'}], 'limit': 10, 'next': None, 'offset': 0, 'previous': None, 'total': 4}}, 'name': None, 'type': 'track'}
21:28:30.067 | INFO | 752 | Playback Control Skill | Playing with: mycroft-spotify.forslund
21:28:30.137 | INFO | 752 | Playback Control Skill | Audio service status: {}
21:28:30.449 | INFO | 752 | SpotifySkill | Playing on an active device [johan]
21:28:30.450 | INFO | 752 | SpotifySkill | playing track
21:28:30.563 | INFO | 752 | SpotifySkill | Pausing Spotify...
~~~~m/v1/me/player/pause?device_id=496c7fde9083e4d7bb41e818429c4c140693ea31 returned 404 due to Device not found
~~~~04, code:-1 - https://api.spotify.com/v1/me/player/pause?device_id=496c7fde9083e4d7bb41e818429c4c140693ea31:
Device not found, reason: None
21:28:32.454 | INFO | 752 | SpotifySkill | spotify_play: 759412786bc533369b22377bf83fb9056c5b25b2
Even though there was the returned 404 due to Device not found
it played the next song on my device.
When working, it says Device detected: DeviceType.MYCROFT
as you mentioned, like in the following:
21:35:04.254 | INFO | 752 | Playback Control Skill | Resolving Player for: thriller michael jackson
21:35:06.364 | INFO | 752 | SpotifySkill | Handling "thriller michael jackson" as a genric query...
21:35:06.368 | INFO | 752 | SpotifySkill | Checking users playlists
21:35:06.512 | INFO | 752 | SpotifySkill | Checking artists
21:35:06.607 | INFO | 752 | SpotifySkill | Checking tracks
21:35:07.003 | INFO | 752 | SpotifySkill | Checking albums
~~~~64 | INFO | 752 | SpotifySkill | ('thriller michael jackson', 'thriller 25 super deluxe edition', 0.5)
21:35:07.164 | INFO | 752 | SpotifySkill | Checking tracks
21:35:07.362 | INFO | 752 | SpotifySkill | Spotify confidence: 0.75
~~~~y:playlist:3tZVXBYENxj4fMpH3DUE1C'}, 'name': 'thriller - michael jackson (totally 80s)', 'type': 'playlist'}
21:35:11.126 | INFO | 752 | Playback Control Skill | Playing with: mycroft-spotify.forslund
21:35:11.252 | INFO | 752 | Playback Control Skill | Audio service status: {}
21:35:11.266 | INFO | 752 | SpotifySkill | Device detected: DeviceType.MYCROFT
21:35:11.266 | INFO | 752 | SpotifySkill | playing thriller - michael jackson (totally 80s) using johan
21:35:13.271 | INFO | 752 | SpotifySkill | spotify_play: 759412786bc533369b22377bf83fb9056c5b25b2
After rebooting it stops working.
I will install everything anew tomorrow and document the steps. In case I did something stupid along the way. I will let you know :)
from spotify-skill.
It sounds exactly like the username and password isn't set in the Raspotify config file so it's in discovery mode. When I get your description I'll try to dig up a Raspberry Pi and set it up according to your description (probably during the weekend).
from spotify-skill.
Related Issues (20)
- Missing lower() at regex functions HOT 2
- Notice of diabled API HOT 4
- -cli-client HOT 1
- Followed new credential instructions but still no matches HOT 1
- Spotify devices do not match due to case-sensitivity HOT 2
- Auth.py missing; wrong import for SpotifyOAuth HOT 39
- Docker instructions HOT 5
- clear solution explanation for authentication HOT 2
- volume level control HOT 1
- Can't obtain song meta information HOT 6
- Followed all directions and still "missing SPOTIPY_CLIEND_ID" HOT 11
- Play a random album from an artist HOT 4
- auth.py file missing HOT 7
- Command to search for new spotify devices HOT 6
- Unable to authorize with the spotify service HOT 4
- Can't find XDG_CONFIG HOT 2
- package change in spotipy HOT 1
- Playback Control doesnt't find the Spotify Skill HOT 2
- Any plan to port this skill to OVOS HOT 2
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 spotify-skill.