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.
This module will change in the near future to the available websocket solution (mopidy.js) from mopidy music server project.
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.
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.
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
}
}
]
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' |
Stop and start your Magic Mirror (your exact method may vary)
pm2 restart mm
- Many thx to Tim Jongsma for the MMM-MPD module to inspire me to make it a bit more fancy. I reused a lot of his module code.
- Special thx to the members of Mopidy Music Server