• Recent
  • Tags
  • Unsolved
  • Solved
  • MagicMirror² Repository
  • Documentation
  • 3rd-Party-Modules
  • Donate
  • Discord
  • Register
  • Login
MagicMirror Forum
  • Recent
  • Tags
  • Unsolved
  • Solved
  • MagicMirror² Repository
  • Documentation
  • 3rd-Party-Modules
  • Donate
  • Discord
  • Register
  • Login
A New Chapter for MagicMirror: The Community Takes the Lead
Read the statement by Michael Teeuw here.

MMM-MPD

Scheduled Pinned Locked Moved Entertainment
7 Posts 3 Posters 5.1k Views 3 Watching
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • T Offline
    timjong93
    last edited by yawns Oct 26, 2017, 8:02 AM Oct 13, 2017, 8:11 PM

    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

    alt text

    Download

    [card:timjong93/MMM-MPD]

    1 Reply Last reply Reply Quote 3
    • G Offline
      gizmo90
      last edited by Oct 22, 2017, 9:58 AM

      hi,

      it will not show me anything

      0_1508666166319_mpd.JPG

      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

      T 1 Reply Last reply Oct 25, 2017, 2:17 PM Reply Quote 0
      • T Offline
        timjong93
        last edited by Oct 25, 2017, 11:17 AM

        I will have a look this afternoon ;)

        1 Reply Last reply Reply Quote 0
        • T Offline
          timjong93 @gizmo90
          last edited by Oct 25, 2017, 2:17 PM

          @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.

          1 Reply Last reply Reply Quote 0
          • G Offline
            gizmo90
            last edited by Oct 25, 2017, 5:33 PM

            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

            Y 1 Reply Last reply Oct 26, 2017, 8:05 AM Reply Quote 0
            • Y Offline
              yawns Moderator @gizmo90
              last edited by Oct 26, 2017, 8:05 AM

              @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

              1 Reply Last reply Reply Quote 0
              • G Offline
                gizmo90
                last edited by Oct 26, 2017, 5:34 PM

                ok now its correkt … i think. but now, the mirror is black.
                node start without any error

                1 Reply Last reply Reply Quote 0
                • 1 / 1
                • First post
                  Last post
                Enjoying MagicMirror? Please consider a donation!
                MagicMirror created by Michael Teeuw.
                Forum managed by Sam, technical setup by Karsten.
                This forum is using NodeBB as its core | Contributors
                Contact | Privacy Policy