Unsolved Installed EXT-MusicPlayer but no music loading
-
{
module: “EXT-MusicPlayer”,
position: “top_left”,
header: “MusicPlayer”,
config: {
debug: false,
useUSB: false,
random: true,
musicPath: “/home/leighf/Music”,
checkSubDirectory: false,
autoStart: true,
minVolume: 30,
maxVolume: 100
}
}, -
And another thing I have noticed is that random play doesn’t work.
-
random
feature don’t existautoStart
AutoStart USB key Music at boot of MagicMirror or when USB key is plugged in`
I don’t use autoStart for local files
why ? if an update is done at night … MM² will play music at restart. I don’t think that family member will love this -
Note your config is good in all case
Do you add recipe in GA ?
-
Yes. Recipe added in GA.
-
What do you say for activate music ?
-
Pause Music
-
wiki says this
-
/** music commands for GoogleAssistant v4 /
/ multi Lang EN/FR/ (And Others…) /
/ modify pattern to your language if needed /
/ @bugsounet **/var recipe = {
transcriptionHooks: {
/* EN Language /
“EN_START_MUSIC” : {
pattern : “music play”,
command: “START_MUSIC”
},
“EN_STOP_MUSIC” : {
pattern : “music stop”,
command: “STOP_MUSIC”
},
“EN_PAUSE_MUSIC” : {
pattern: “music pause”,
command: “PAUSE_MUSIC”
},
“EN_NEXT_MUSIC” : {
pattern: “music next”,
command: “NEXT_MUSIC”
},
“EN_PREVIOUS_MUSIC”: {
pattern: “music previous”,
command: “PREVIOUS_MUSIC”
},
“EN_VOLUME_MUSIC”: {
pattern: "music volume (.)",
command: “VOLUME_MUSIC”
},
“EN_REBUILD_MUSIC”: {
pattern: “music rebuild”,
command: “REBUILD_MUSIC”
},
“EN_SWITCH_MUSIC”: {
pattern: “music switch”,
command: “SWITCH_MUSIC”
},/* FR Language */ "FR_START_MUSIC" : { pattern : "musique play", command: "START_MUSIC" }, "FR_STOP_MUSIC" : { pattern : "musique stop", command: "STOP_MUSIC" }, "FR_PAUSE_MUSIC" : { pattern: "musique pause", command: "PAUSE_MUSIC" }, "FR_NEXT_MUSIC" : { pattern: "musique suivante", command: "NEXT_MUSIC" }, "FR_PREVIOUS_MUSIC": { pattern: "musique précédente", command: "PREVIOUS_MUSIC" }, "FR_VOLUME_MUSIC": { pattern: "musique volume (.*)", command: "VOLUME_MUSIC" }, "FR_REBUILD_MUSIC": { pattern: "musique base de données", command: "REBUILD_MUSIC" }, "FR_SWITCH_MUSIC": { pattern: "musique change source", command: "SWITCH_MUSIC" }, /* Other Language ? */
},
commands: {
“START_MUSIC”: {
notificationExec: {
notification: “EXT_MUSIC-PLAY”
},
soundExec: {
chime: “open”
}
},
“STOP_MUSIC”: {
notificationExec: {
notification: “EXT_MUSIC-STOP”
},
soundExec: {
chime: “close”
}
},
“PAUSE_MUSIC”: {
notificationExec: {
notification: “EXT_MUSIC-PAUSE”
}
},
“NEXT_MUSIC”: {
notificationExec: {
notification: “EXT_MUSIC-NEXT”
},
},
“PREVIOUS_MUSIC”: {
notificationExec: {
notification: “EXT_MUSIC-PREVIOUS”
},
},
“VOLUME_MUSIC”: {
notificationExec: {
notification: “EXT_MUSIC-VOLUME_SET”,
payload: (params) => {
return params[1]
}
},
},
“REBUILD_MUSIC”: {
notificationExec: {
notification: “EXT_MUSIC-REBUILD”
}
},
“SWITCH_MUSIC”: {
notificationExec: {
notification: “EXT_MUSIC-SWITCH”
}
}
}
}
exports.recipe = recipe -
Even if I say it otherbway around: music pause still doesnt accept the command.
-
when you says: `music Pause" (and match to the screen transcription)
google respond this:
get a response “Sorry, I didnt understand”
right ?
-
if recipe loaded:
you must have this:(with recipe icon)
-
@bugsounet dont get that icon when command is given.
-
So you don’t install the recipe in GA config
past your GA config and I will correct
-
{ module: "MMM-GoogleAssistant", configDeepMerge: true, config: { debug: false, stopCommand: "disable", assistantConfig: { lang: "en-UK", latitude: -26.268141, longitude: 28.225651, }, responseConfig: { useFullscreen: false, useResponseOutput: true, responseOutputCSS: "response_output.css", screenOutputTimer: 5000, activateDelay: 250, useAudioOutput: true, useChime: true, confirmationChime: true, useInformations: true }, chimes: {}, imgStatus: {}, zoom: {} }, recipes: [ "EXT-MusicPlayer.js", ], },
Edit: added code tag for visibility
-
- recipes must be inside
config:{}
, you have past it ouside
many feature don’t exist, I don’t know how it’s on config (UseInformations, activateDelay for example)
corrected (and simplified config):
{ module: "MMM-GoogleAssistant", configDeepMerge: true, config: { debug: false, stopCommand: "disable", assistantConfig: { lang: "en-UK", latitude: -26.268141, longitude: 28.225651, }, recipes: [ "../../EXT-MusicPlayer/recipe/EXT-MusicPlayer.js" ] } },
- recipes must be inside
-
can you try this ?
Activate Jarvis and say: “music play”
-
Hi Cedric.
I am happy to report that you are a super star and that the above worked. Thank you thank you thank you.
Would you be able to write in the “Random” music play feature into this module in the future?