Read the statement by Michael Teeuw here.
MMM-SpotifyControl . Control your Spotify music player using Mk2 assistant.
-
@ejay-ibm said in MMM-SpotifyControl . Control your Spotify music player using Mk2 assistant.:
@F17MC
So in your config.js you have set your device id to ; a8caee9b12196a964f5a9b0fafaf7ef1at this step
Error while refreshing:
{ StatusCodeError: 404 - {“error”:{“status”:404,“message”:“Device not found”}}currentDeviceID variable is passed by case ‘PLAY_SPOTIFY’:
payload[“deviceId”] = this.config.deviceId;"If I don’t say a command before, I get error 404. " what do you mean ? could you clarify ?
“But when I try it with the device which is the deviceID that I wrote in the module code, it works.”
Yes that is expected .For now you can only start playing on the device ID given in the config file as mentioned in the readme :
This Module allow to control Spotify player on your Mirror . For now you can only control a single device. It could be your mirror if you are running Raspotify on it. Request to play a song it will be played on your select device in the config.js file. other command doesn’t need a device to be set. So if you are already playing a song on another device, the modules allow you to control this device from your module. But if you request a new song or playlist the set device in config file will play it on it you can not start a new song on a different device from now .
Does that clarify the point ?
Ejay
If I don’t say a command before, I get error 404. " what do you mean ? could you clarify ?
I wanted to erase this sentence but I could not edit my post. It should not be there.Yes, the module is working perfect now!
Thanks. -
Fantastic news !
So just for other user.
Could you clarify what you did wrong earlier ? and what you changed to make it work ?
Any special sentence to call the module ? any change in config file ?thank you
-
@ejay-ibm
I really want the module to control only one device. I configured that device in the configuration file, but then used the magicmirror as an output device. Then that was the error.
I started disabling youtube and its automatic playback of mmm-assistantmk2, but then I turned it back on.A doubt. As I really only want to control a device with your module, I could do that if, for example, I’m listening to spotify on my computer, but I say to magicmirror: “start music on spotify” make the change directly to the deviceID that I have in the config file and start the music?
-
@F17MC said in MMM-SpotifyControl . Control your Spotify music player using Mk2 assistant.:
I say to magicmirror: “start music on spotify” make the change directly to the deviceID that I have in the config file and start the music?
Yes That is correct .
BUT
in all the API call i’m using the device is optional .If you want to control only one device that is the current playing device you can comment line 216 of /core/SpotifyConnector.js
That way you don’t pass the device ID to the api.
that should workThe only condition for this to work is you must have an active device.
The constraint is that if you want to play a song on your mirror, then you have to select it manually as a device from the spotify app.hope this helps.
Ejay
-
@ejay-ibm said in MMM-SpotifyControl . Control your Spotify music player using Mk2 assistant.:
@Cr4z33 I’m already working on it with @Sean ;)
quick question : if you just say “micheal jackson smooth criminal”
does it start playing youtube ?
if yes then just try “micheal jackson smooth criminal spotify”
and let me knowIf that doesn’t work I’ll ask you some patience so I can implement the spotify search function directly in my module and not from the assistant. We will just use a hook in the assisant .
Ejay
Look there might be some misunderstanding because I NEVER configured something in MagicMirror to be able to run YouTube. :smiling_face_with_open_mouth_cold_sweat:
In fact the sentence ‘michael jackson smooth criminal’ brings me always to the voice GA reply ‘I am sorry, but I don’t know how to help you’. -
@Cr4z33
Then That is maybe your issue . Youtube should work by default . nothing to configure .
If your GA doesn’t bring you a youtube video when you say ‘michael jackson smooth criminal’ then I guess that explain why it doesn’t work as well for spotify .Anyway we are working with sean to rebuild this module completely and so we should get rid of this issue .
Please be patient and wait for the update ;)
Ejay
-
@ejay-ibm huh really?
Can you then please link me where is it mentioned that MagicMirror or MMM-AssistantMk2 has embedded YouTube playing? :hushed_face:
I have never seen that.
-
@Cr4z33 it’s Mk2 assistant module that allow this, not core Magicmirror.
you must have this set in your config file in the mk2 moduleyoutubeAutoplay: true, //If set as true, found Youtube video will be played automatically. pauseOnYoutube:true, //If set as true, You cannot activate Assistant during youtube playing. Recommended for the performance (Because permanent hotword detecting might make performance lower) youtubePlayerVars: { // You can set youtube playerVars for your purpose, but should be careful. "controls": 0, "loop": 1, "rel": 0, }, youtubePlayQuality: "default", //small, medium, large, hd720, hd1080, highres or default
ejay
-
@ejay-ibm oh now I understand.
Sorry I forgot I disabled it when I configured that module because I don’t want YouTube. :smiling_face_with_open_mouth_cold_sweat:
I will definitely wait then for the update of MMM-SpotifyControl. ;)
-
@Cr4z33 @F17MC .
This Module is now deprecated and replaced by
https://forum.magicmirror.builders/topic/10091/mmm-spotify
git here :
https://github.com/eouia/MMM-SpotifyThanks to @sean for the hard work!
Ejay