Read the statement by Michael Teeuw here.
MMM-MPD
-
Description
I just created my first module and thought it would be nice to share it with you.
Its an MPD (music player deamon) integration.
It show the current state of your music player and songs coming up.It’s an early version, i still need to do some refactoring but if anyone would like to try it feel free to do so.
Next up is propably an integration with the Home Assistant API.
Screenshot
Download
[card:timjong93/MMM-MPD]
-
hi,
it will not show me anything
localhost:6600 says
OK MPD 0.19.0 ACK [5@0] {} unknown command "GET" ACK [5@0] {} Invalid word character
but android mpd app listen to port 6600 and it works
-
I will have a look this afternoon ;)
-
@gizmo90 Could you please specify in which logs you see these errors, and tell me a little bit more about which mpd server you are using? (Personaly i use mopidy.)
I did push a maybe fix which was definitely a bug to github, so you can try to pull and run npm install. But i have not been able to reproduce your error with this limited amount of info.
-
please correct me when i am wrong but i think this is wrong
modules: [ { module: "mpd_config",
i think it has to be called:
module:“MMM-MPD” like the folder or mpd_client like the js
i have no idea what happend but after pi reboot, the node server wont start when your module is activated
WARNING! Could not validate config file. Please correct syntax errors. Starting with default configuration. Loading module helpers ... No helper found for module: alert. No helper found for module: clock. No helper found for module: calendar_monthly. Initializing new module helper ... No helper found for module: currentweather. No helper found for module: weatherforecast. Initializing new module helper ... Initializing new module helper ... Whoops! There was an uncaught exception... [SyntaxError: Block-scoped declarations (let, const, function, class) not yet supported outside strict mode] MagicMirror will not quit, but it might be a good idea to check why this happened. Maybe no internet connection? If you think this really is an issue, please open an issue on GitHub: https://github.com/MichMich/MagicMirror/issu
config:
///////////////////////////////// { module: "mpd_client", position: "top_right", // This can be any of the regions. config: { // See 'Configuration options' for more information. hostname: "localhost", port: 6600 } }, //////////////////////////////////
folder and .js name are mpd_client
i use raspian with standart MPD version from the repository
-
@gizmo90
No, the config was right.If you look at the file
mpd_client.js
you see this:Module.register("mpd_client",{
which defines the name of the module inside MagicMirror. But you are right, it should be consistent with module names and folder names to keep it clean -
ok now its correkt … i think. but now, the mirror is black.
node start without any error