Skip to content

Latest commit

 

History

History
91 lines (63 loc) · 3.03 KB

README.md

File metadata and controls

91 lines (63 loc) · 3.03 KB

MMM-Mopidy-MPD

This module uses MPD (Music Player Deamon) to connect to your favorite music player, for example mopidy, and shows the current state of your music player on your magic mirror. This is a fork from Tim Jongsma's MMM-MPD module. But after no respond from him due to pull request i decided to move this to a new module.

Platform

Example

screenshot of MMM-Mopidy-MPD

ToDo

This module will change in the near future to the available websocket solution (mopidy.js) from mopidy music server project.

Installation

In your terminal, go to your MagicMirror's Module folder:

cd ~/MagicMirror/modules

Clone this repository:

git clone https://github.com/coderpussy/MMM-Mopidy-MPD.git

Run npm install in the module folder:

npm install

Configure the module in your config/config.js file.

Updating

If you want to update your MMM-MPD module to the latest version, use your terminal to go to your MMM-MPD module folder and type the following command:

git pull && npm install

If you haven't changed the modules, this should work without any problems. Type git status to see your changes, if there are any, you can reset them with git reset --hard. After that, git pull should be possible.

Using the module

To use this module, add it to the modules array in the config/config.js file:

modules: [
	{
		module: "MMM-Mopidy-MPD",
		position: "top_right",	// This can be any of the regions.
		config: {
			// See 'Configuration options' for more information.
			hostname: "localhost",
			port: 6600
			
		}
	}
]

Configuration options

The following properties can be configured:

Option Description
hostname The hostname of the machine running the MPD server.

Example: '192.168.0.10'
Default value: 'localhost'
port The port of the MPD server.

Example: '6600
Default value: '6600'
showPlaylist Show playlist or not

Example: 'true
Default value: 'true'
maxRows The number of songs comming up in your playlist which will be displayed.

Example: '10
Default value: '10'
fade Enable fading effect.

Example: 'true
Default value: 'true'
fadePoint The point where the playlist starts to fade.

Example: '0.3
Default value: '0.3'

Displaying the MMM-MPD module

Stop and start your Magic Mirror (your exact method may vary)

pm2 restart mm

Credits