timjong93 / mmm-mpd Goto Github PK
View Code? Open in Web Editor NEWMusic Player Deamon module for Magic Mirror
Music Player Deamon module for Magic Mirror
Hello, I hope anybody can help me.
I installed it as described in the readme and the other issues.
When I start MM, following error appears:
WARNING! Could not validate config file. Starting with default configuration.
Please correct syntax errors at or above this line:
ReferenceError: NodeHelper is not defined
at Object.<anonymous> (/home/pi/MagicMirror/modules/mpd_client/node_helper.js:4:18)
at Module._compile (internal/modules/cjs/loader.js:786:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:798:10)
at Module.load (internal/modules/cjs/loader.js:645:32)
at Function.Module._load (internal/modules/cjs/loader.js:560:12)
at Module.require (internal/modules/cjs/loader.js:685:19)
at require (internal/modules/cjs/helpers.js:16:16)
at loadModule (/home/pi/MagicMirror/js/app.js:124:17)
at loadNextModule (/home/pi/MagicMirror/js/app.js:158:5)
at /home/pi/MagicMirror/js/app.js:160:6
MPD-Server is running on the same machine, my config is
{
module: "mpd_client",
position: "top_right", // This can be any of the regions.
config: {
// See 'Configuration options' for more information.
hostname: "localhost",
port: 6600
}
},
The git clone create a folder MMM-MPD in modules folder, the module doesn't work till the folder renaming as in config file.
Any chance of getting this module working again? I've installed, added to my config and it never actually shows on my magicmirror, tried all the advace from the other issues and nothing. I see it hasn't been worked on since 2018 but i'd be nice to get this module working again.. And yes i've tried 'coderpussy' fork but that's a no go either, plus it doesn't say it's had any changed from the main branch so idk?
Hallo,
here is my log:
0|mm | Loading module helpers ...
0|mm | No helper found for module: alert.
0|mm | Initializing new module helper ...
0|mm | Module helper loaded: updatenotification
0|mm | No helper found for module: clock.
0|mm | Initializing new module helper ...
0|mm | Module helper loaded: calendar
0|mm | Initializing new module helper ...
0|mm | Module helper loaded: email
0|mm | Initializing new module helper ...
0|mm | Module helper loaded: MMM-MPD
0|mm | No helper found for module: compliments.
0|mm | No helper found for module: currentweather.
0|mm | No helper found for module: MMM-forecast-io.
0|mm | No helper found for module: weatherforecast.
0|mm | Initializing new module helper ...
0|mm | Module helper loaded: newsfeed
0|mm | All module helpers loaded.
0|mm | Starting server on port 8080 ...
0|mm | Server started ...
0|mm | Connecting socket for: updatenotification
0|mm | Connecting socket for: calendar
0|mm | Starting node helper for: calendar
0|mm | Connecting socket for: email
0|mm | email helper started ...
0|mm | Connecting socket for: MMM-MPD
0|mm | Starting module helper: MMM-MPD
0|mm | Connecting socket for: newsfeed
0|mm | Starting module: newsfeed
0|mm | Sockets connected & modules started ...
0|mm | Launching application.
here my config:
` {
module: "MMM-MPD",
position: "middle_right", // This can be any of the regions.
config: {
hostname: 'localhost',
port: '6600'
}
},
`
I change the line in mpd_clients.js to:
Module.register("MMM-MPD",{
npm install:
npm WARN [email protected] No repository field.
npm WARN [email protected] license should be a valid SPDX license expression
But no connection to mpd-demon and nothing shows on the screen.
Can you help?
Hi, I tried your mpd client and it works great. Thank you very much. I can see the State of the player.
Could you add a touch function to start and stop the player?
So if I click on the state symbol it changes and starts playing or if it is playing it goes to pause?
That would be nice!
Have a wonderful day!
Hi, I have an issue getting this module to show on the mirror. I am running mopidy on the same rpi. MPD is running and I am able to control playback MPdroid on my phone on "192.168.1.81" "6600".
I have used "localhost", "::", "127.0.0.1" and finally "192.168.1.81" in the configuration to try and it get it working. Unfortunately, I can't.
Is there sone thing silly I am missing
I did this to make the module work:
I was receiving the following error when I was starting my Magicmirror after having installed MMM-MPD:
"ERROR! Could not find main module js file for MMM-MPD" and MMM-MPD would not start.
I solved this issue by renaming the MMM-MPD directory in modules to mpd_client.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.