Skip to content
A MagicMirror module for playing music from USB pen drive as soon as it is inserted.
JavaScript CSS
Branch: master
Clone or download
Latest commit deeb3a4 May 31, 2018
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
Capture1.JPG Add files via upload May 8, 2018
Capture2.JPG Add files via upload May 8, 2018
LICENSE
MMM-MP3Player.js Add files via upload May 8, 2018
README.md Update README.md May 31, 2018
music.png Add files via upload May 8, 2018
node_helper.js Add files via upload May 8, 2018
package.json Add files via upload May 8, 2018
style.css Add files via upload May 8, 2018

README.md

MMM-MP3Player

A MagicMirror² module for playing music from USB pen drive as soon as it is inserted. A music player object is built inside the module, no iframe is used. The best position is bottom left, although it depends upon the user. The player has nice rounded and shadow borders which adds a nice aesthetic sense to the overall MM. The player then waits for the user to insert/attach a USB pen drive containing the MP3 files. As soon as a USB drive is plugged, the music starts playing!

The module is built with error handling procedures. Beside the core modules, this module uses 3 other dependencies:

Module URL
usb https://github.com/tessel/node-usb
node-id3 https://www.npmjs.com/package/node-id3
drivelist https://www.npmjs.com/package/drivelist

picture
picture

Using the module

  • Navigate to the modules directory via the follow command: cd MagicMirror/modules
  • Clone the module from github: git clone https://github.com/asimhsidd/MMM-MP3Player.git
  • Navigate to the MMM-MP3Player directory: cd MMM-MP3Player
  • Install the dependencies: npm install
  • Add the following configuration to the modules array in the config/config.js file:
    modules: [
        {
			module: 'MMM-MP3Player',
			position: 'top_left'
        }
    ]

Configuration options for MMM-MP4Player

Option Description
position Required The position of the screencast window.
Options: ['bottomRight', 'bottomCenter', 'bottomLeft', 'center', 'topRight', 'topCenter', 'topLeft']
Type: string
Note: This module config actual sets the location, not the magic mirror position config.
You can’t perform that action at this time.