Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/asimhsidd/MMM-MP3Player
A MagicMirror module for playing music from USB pen drive as soon as it is inserted.
https://github.com/asimhsidd/MMM-MP3Player
Last synced: 22 days ago
JSON representation
A MagicMirror module for playing music from USB pen drive as soon as it is inserted.
- Host: GitHub
- URL: https://github.com/asimhsidd/MMM-MP3Player
- Owner: asimhsidd
- License: mit
- Created: 2018-05-08T12:10:24.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2024-03-06T09:42:24.000Z (9 months ago)
- Last Synced: 2024-08-04T10:02:32.502Z (4 months ago)
- Language: JavaScript
- Size: 23.4 KB
- Stars: 10
- Watchers: 1
- Forks: 8
- Open Issues: 8
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-mmm - **MMM-MP3Player**
README
# MMM-MP3Player
A [MagicMirror²](https://github.com/MichMich/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](Capture1.JPG)
![picture](Capture2.JPG)## 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:
```js
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.