@aljosie thisis the first link I found on google.
Their’s tons of doc if you search .
https://www.tomsguide.com/us/connect-google-home-philips-hue,review-4217.html
Ejay
@aljosie thisis the first link I found on google.
Their’s tons of doc if you search .
https://www.tomsguide.com/us/connect-google-home-philips-hue,review-4217.html
Ejay
@aljosie You need some philips hue light a philps hue bridge and then you can use MMM-Hue module and see your light status. But you need first to configure your system for google home usage. Then with Mk2 assisant you can request to turn on/ off your lights as the philps hue system is be connected to google home account that you use as well on your miror.
there’s few setup to make before all works. But I have this at home and it work like a charm .
Ejay
@Cr4z33 it’s Mk2 assistant module that allow this, not core Magicmirror.
you must have this set in your config file in the mk2 module
youtubeAutoplay: 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
@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
@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 work
The 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
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
@F17MC
So in your config.js you have set your device id to ; a8caee9b12196a964f5a9b0fafaf7ef1
at 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
@F17MC That is interesting … that mean the result of the assistant research never bring a spotify url but a youtube one . a openspotify url is what the module expect to work .
So we know now that under some circumpstance the module doesn’t get the right payload from assistant to work.
Thanks for testing and reporting this guys .
I’ll work with sean to implement a search function directly with the spotify APIs call . With that we will make the search directly on spotify ( and not on google ) so we will bypass this issue .
I’m wondering where the difference is between you and I, because it work fine here and as well another German guy Mantha who is the original code creator .
Anyway, there’s no problem … only solution .
I’ll keep you informed once the module is updated .
Ejay .
@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 know
If 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
@F17MC @Cr4z33
I don’t think the issue is with the module but with what the assistant return to the module .
the module is expecting something like “”(open.spotify.com - https://open.spotify.com/artist/2Gkz5N7rWiCE3jlCgsw1yp""
So i’m not getting why your assistant doesn’t understand what to search for.
I’ll continue digging
Ejay