Unsolved Installed EXT-MusicPlayer but no music loading
-
Will post logs soon.
Just want to add that if I plug a USB flash drive in then the music plays. It seems to be the local music path portion that isn’t working… -
magicmirror@2.23.0 start
DISPLAY=“${DISPLAY:=:0}” ./node_modules/.bin/electron js/electron.js[15.05.2023 10:05.14.038] [LOG] Starting MagicMirror: v2.23.0
[15.05.2023 10:05.14.046] [LOG] Loading config …
[15.05.2023 10:05.14.049] [DEBUG] config template file not exists, no envsubst
[15.05.2023 10:05.14.057] [LOG] Loading module helpers …
[15.05.2023 10:05.14.201] [LOG] Initializing new module helper …
[15.05.2023 10:05.14.203] [LOG] Module helper loaded: MMM-Remote-Control
[15.05.2023 10:05.14.203] [LOG] No helper found for module: MMM-Carousel.
[15.05.2023 10:05.14.228] [LOG] Initializing new module helper …
[15.05.2023 10:05.14.231] [LOG] Module helper loaded: MMM-Buttons
[15.05.2023 10:05.14.236] [LOG] Initializing new module helper …
[15.05.2023 10:05.14.239] [LOG] Module helper loaded: EXT-MusicPlayer
[15.05.2023 10:05.14.244] [LOG] Initializing new module helper …
[15.05.2023 10:05.14.245] [LOG] Module helper loaded: EXT-Alert
[15.05.2023 10:05.14.246] [LOG] No helper found for module: compliments.
[15.05.2023 10:05.14.656] [LOG] Initializing new module helper …
[15.05.2023 10:05.14.657] [LOG] Module helper loaded: MMM-RTSPStream
[15.05.2023 10:05.14.661] [LOG] Initializing new module helper …
[15.05.2023 10:05.14.661] [LOG] Module helper loaded: MMM-GoogleAssistant
[15.05.2023 10:05.14.666] [LOG] Initializing new module helper …
[15.05.2023 10:05.14.666] [LOG] Module helper loaded: Gateway
[15.05.2023 10:05.14.673] [LOG] Initializing new module helper …
[15.05.2023 10:05.14.674] [LOG] Module helper loaded: EXT-Detector
[15.05.2023 10:05.14.678] [LOG] Initializing new module helper …
[15.05.2023 10:05.14.679] [LOG] Module helper loaded: EXT-Background
[15.05.2023 10:05.14.682] [LOG] Initializing new module helper …
[15.05.2023 10:05.14.683] [LOG] Module helper loaded: EXT-Volume
[15.05.2023 10:05.14.683] [LOG] No helper found for module: alert.
[15.05.2023 10:05.14.684] [LOG] No helper found for module: clock.
[15.05.2023 10:05.14.911] [LOG] Initializing new module helper …
[15.05.2023 10:05.14.912] [LOG] Module helper loaded: calendar
[15.05.2023 10:05.15.226] [LOG] Initializing new module helper …
[15.05.2023 10:05.15.227] [LOG] Module helper loaded: MMM-DarkSkyForecast
[15.05.2023 10:05.15.227] [LOG] No helper found for module: MMM-LoadShedding.
[15.05.2023 10:05.15.228] [LOG] All module helpers loaded.
[15.05.2023 10:05.15.241] [LOG] Starting server on port 8080 …
[15.05.2023 10:05.15.248] [WARN] You’re using a full whitelist configuration to allow for all IPs
[15.05.2023 10:05.15.263] [LOG] Server started …
[15.05.2023 10:05.15.265] [LOG] Connecting socket for: MMM-Remote-Control
[15.05.2023 10:05.15.267] [LOG] Starting node helper for: MMM-Remote-Control
[15.05.2023 10:05.15.276] [LOG] Connecting socket for: MMM-Buttons
[15.05.2023 10:05.15.276] [LOG] Starting node helper for: MMM-Buttons
[15.05.2023 10:05.15.277] [LOG] Connecting socket for: EXT-MusicPlayer
[15.05.2023 10:05.15.277] [LOG] Connecting socket for: EXT-Alert
[15.05.2023 10:05.15.278] [LOG] Starting module helper: EXT-Alert
[15.05.2023 10:05.15.278] [LOG] Connecting socket for: MMM-RTSPStream
[15.05.2023 10:05.15.279] [LOG] PM2: Stopping all OMXPlayer Streams…
[15.05.2023 10:05.15.283] [LOG] Connecting socket for: MMM-GoogleAssistant
[15.05.2023 10:05.15.283] [LOG] Connecting socket for: Gateway
[15.05.2023 10:05.15.284] [LOG] Connecting socket for: EXT-Detector
[15.05.2023 10:05.15.285] [LOG] Connecting socket for: EXT-Background
[15.05.2023 10:05.15.286] [LOG] Starting module helper: EXT-Background
[15.05.2023 10:05.15.287] [LOG] Connecting socket for: EXT-Volume
[15.05.2023 10:05.15.287] [LOG] Connecting socket for: calendar
[15.05.2023 10:05.15.288] [LOG] Starting node helper for: calendar
[15.05.2023 10:05.15.289] [LOG] Connecting socket for: MMM-DarkSkyForecast
[15.05.2023 10:05.15.289] [LOG] ====================== Starting node_helper for module [MMM-DarkSkyForecast]
[15.05.2023 10:05.15.290] [LOG] Sockets connected & modules started …
[15.05.2023 10:05.15.586] [LOG] Launching application.
MESA-LOADER: failed to retrieve device information
MESA-LOADER: failed to retrieve device information
MESA-LOADER: failed to retrieve device information
[15.05.2023 10:05.16.879] [ERROR] ERROR! Could not find main module js file for ewelink-api
MESA-LOADER: failed to open kms_swrast: /usr/lib/dri/kms_swrast_dri.so: cannot open shared object file: Permission denied (search paths /usr/lib/arm-linux-gnueabihf/dri:$${ORIGIN}/dri:/usr/lib/dri)
failed to load driver: kms_swrast
MESA-LOADER: failed to open swrast: /usr/lib/dri/swrast_dri.so: cannot open shared object file: Permission denied (search paths /usr/lib/arm-linux-gnueabihf/dri:$${ORIGIN}/dri:/usr/lib/dri)
failed to load swrast driver
[15.05.2023 10:05.19.204] [LOG] cors url: https://developer.sepush.co.za/business/2.0/area?id=ekurhuleni3-6-clayville
[15.05.2023 10:05.20.030] [LOG] Initialize button monitor_control on PIN 25
[15.05.2023 10:05.20.036] [LOG] Initialize button power on PIN 24
[15.05.2023 10:05.20.146] [LOG] Create new calendarfetcher for url: http://www.calendarlabs.com/ical-calendar/ics/68/South_Africa_Holidays.ics - Interval: 300000
[15.05.2023 10:05.20.196] [LOG] [GA] MMM-GoogleAssistant Version: 5.1.4 rev: 230407
[15.05.2023 10:05.21.476] [LOG] [GA] [LIB] All libraries loaded!
[15.05.2023 10:05.21.480] [LOG] [GATEWAY] Gateway Version: 3.2.0 rev: 230415
[15.05.2023 10:05.21.483] [LOG] [GA] [CONFIG_MERGE] Read config.js and check ConfigDeepMerge…
[15.05.2023 10:05.21.485] [LOG] [GA] [CONFIG_MERGE] Perfect ConfigDeepMerge activated!
[15.05.2023 10:05.21.485] [LOG] [GA] [SECURE] Check digital footprint…
[15.05.2023 10:05.21.534] [LOG] [GA] [DATA] Platform: ‘raspberry-pi’; attempting to use ‘arecord’ to access microphone …
[15.05.2023 10:05.21.540] [LOG] [GA] [DATA] Google Assistant is initialized.
[15.05.2023 10:05.27.338] [LOG] [GATEWAY] [LIB] All libraries loaded!
[15.05.2023 10:05.27.347] [LOG] [GATEWAY] no CLIENT_ID found in your config!
[15.05.2023 10:05.27.347] [WARN] [GATEWAY] SmartHome functionality is disabled
[15.05.2023 10:05.27.348] [WARN] [GATEWAY] WARN: You are using default username or default password
[15.05.2023 10:05.27.348] [WARN] [GATEWAY] WARN: Don’t forget to change it!
[15.05.2023 10:05.27.993] [LOG] [GATEWAY] [HyperWatch] Logger is enabled
[15.05.2023 10:05.27.994] [LOG] [GATEWAY] Start listening on port 8081
[15.05.2023 10:05.27.995] [LOG] [GATEWAY] Available locally at http://10.10.24.116:8081
[15.05.2023 10:05.27.995] [LOG] [GATEWAY] Gateway Ready!
[15.05.2023 10:05.28.045] [LOG] [GA] [SECURE] Happy use !
[15.05.2023 10:05.28.087] [LOG] Starting stream stream1 using VLC with args --no-audio --width 352 --height 242 -I dummy --video-on-top --no-video-deco --no-embedded-video --video-title=stream1 rtsp://admin:password@192.168.8.127:554/Streaming/channels/102…
[15.05.2023 10:05.28.173] [LOG] [MUSIC] EXT-MusicPlayer Version: 1.1.1 rev: 230407
[15.05.2023 10:05.28.829] [LOG] [ALERT] EXT-Alert Version: 1.2.1 rev: 230328
[15.05.2023 10:05.28.830] [LOG] [DETECTOR] EXT-Detector Version: 2.1.1 rev: 230417
[15.05.2023 10:05.28.832] [LOG] [VOLUME] EXT-Volume Version: 2.3.0 rev: 230420
[15.05.2023 10:05.28.833] [LOG] [VOLUME] SyncVolume Started
[15.05.2023 10:05.28.985] [LOG] [MUSIC] All needed @bugsounet library loaded !
[15.05.2023 10:05.29.934] [LOG] [DETECTOR] [LIB] All libraries loaded!
[15.05.2023 10:05.29.937] [LOG] [DETECTOR] [DATA] Platform: ‘raspberry-pi’; attempting to use ‘arecord’ to access microphone …
[15.05.2023 10:05.29.941] [LOG] [DETECTOR] [DATA] Snowboy is initialized with 1 Models: jarvis
[15.05.2023 10:05.29.942] [LOG] [DETECTOR] [DATA] Initialized
[15.05.2023 10:05.31.159] [LOG] [DETECTOR] [RULES] Start listening. 1 Models
[15.05.2023 10:05.31.553] [INFO] DP2: Running window resizers…
[15.05.2023 10:05.31.671] [LOG] [MUSIC] No Audio files Found!
[15.05.2023 10:05.32.644] [INFO] Calendar-Fetcher: Broadcasting 9 events.
[15.05.2023 10:05.38.593] [INFO] DP2: Running window resizers…
[15.05.2023 10:05.43.384] [LOG] Shutting down server…
[15.05.2023 10:05.43.388] [LOG] Stopping module helper: MMM-Buttons
[15.05.2023 10:05.43.390] [LOG] Stopping module helper: EXT-MusicPlayer
[15.05.2023 10:05.43.392] [LOG] Stopping module helper: EXT-Alert
[15.05.2023 10:05.43.393] [LOG] Shutting down MMM-RTSPStream streams that were using vlc
[15.05.2023 10:05.43.394] [LOG] Killing DevilsPie2…
[15.05.2023 10:05.43.395] [LOG] Killing All VLC Streams…
[15.05.2023 10:05.43.399] [LOG] Stopping module helper: MMM-GoogleAssistant
[15.05.2023 10:05.43.399] [LOG] Stopping module helper: Gateway
[15.05.2023 10:05.43.400] [LOG] Stopping module helper: EXT-Detector
[15.05.2023 10:05.43.405] [LOG] Stopping module helper: EXT-Background
[15.05.2023 10:05.43.406] [LOG] Stopping module helper: EXT-Volume
[15.05.2023 10:05.43.408] [LOG] Stopping module helper: calendar
[15.05.2023 10:05.43.410] [LOG] Stopping module helper: MMM-DarkSkyForecast
[15.05.2023 10:05.43.419] [LOG] Node_helpers stopped … -
And config of this plugin?
Note: by ready main code. It’s USB key or Local files but not both
It’s means:
- if
useUSB
is true. Local file are ignored and use USB key only - If
useUSB
is false. USB key is ignored and use local file path only
I will update wiki for this, sorry
- if
-
This post is deleted! -
{
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
}
}, -
Another issue I have is that I cant control the EXT-MusicPlayer module via voice commands through MMM-GoogleAssistant.
I get a response “Sorry, I didnt understand” -
Hi,
- from your deleted post:
musicPath: “…/home/leighf/Music/”,
is not good musicPath: “/home/leighf/Music”,
is better
can you try this in a terminal:
cd /home/leighf/Music ls -la
past the content.
Thanks - from your deleted post:
-
leighf@MagicMirror:~ $ cd /home/leighf/Music
ls -la
total 30844
drwxr-xr-x 2 leighf leighf 4096 May 5 15:24 .
drwxr-xr-x 26 leighf leighf 4096 May 17 07:39 …
-rwxr-xr-x 1 leighf leighf 7752444 Jun 17 2020 ‘Brett Young - Mercy.mp3’
-rwxr-xr-x 1 leighf leighf 6011232 Jul 6 2022 ‘Carly Pearce - Every Little Thing.mp3’
-rwxr-xr-x 1 leighf leighf 6404107 Mar 26 2020 ‘Caroline Jones - Rise.mp3’
-rwxr-xr-x 1 leighf leighf 11400391 Mar 26 2020 ‘Caroline Jones - The Difference (Goshdamn).mp3’
leighf@MagicMirror:~/Music $ -
{
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)