Read the statement by Michael Teeuw here.
MMM-MP3Player
-
Hi there,
This is a 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. Feel fee to test it and let me know of any issues.
Happy coding!
;)Screenshot
Download
[card:asimhsidd/MMM-MP3Player]
-
Just thinking aloud here about this…
Portable HD… with some kind of powered switch/usb hub… smart socket/inline switch that can be voice activated by either the mirror itself through voice module, or by Alexa/Google Home to Turn on/off HD.
Leave HD in place behind mirror to save having a USB extention lead dangling to insert/unplug USB Stick.
Share that HD on the Pi, so you can add/change your MP3’s from another Source on your network?
-
Good idea… I like the thought process. Personally I like to avoid dependence on any external switch/equipment simply because I cant test it as I am making these modules on office windows PC (:p). Also the fact I am not a seasonal programmer, so I have certain limitations.
However, I am reading about how to connect with the PI through Bluetooth and steam music on the go from the cellphone. Help me if you can!
Thanks.
-
got it to work on the latest build by lowering my node version to 57. however it works when i plug my usb in and then power on the pi but only then. not when the mirror is running and pluggin it in after or repluggin it in? any adive or pointers on how to fix that ?
-
@asimhsidd first of all thank you for your module it is really what i need for my mirror but i got a problem when i try to run it, in my terminal i have this
WARNING! Could not load config file. Starting with default configuration. Error found: Error: Cannot find module ‘usb’
so if you or another can help me i will be thankful
-
@Artech I have the same problem - while running npm install for dependencies I got the errors shown in screenshot - I suspect the install package needs updating.

-
@patrickirvin so what will you do? for me this module is important but i put it in stand by first i’ll look on it after
-
@patrickirvin the file needed is built locally on your machine…
but the stuff needed for the build is missing… do
sudo apt-get install libusb-1.0-0-dev sudo apt-get install libudev-devthen close the terminal window, re-open
and then do the npm install again -
This post is deleted! -
@sdetweil itried t but what i got in my terminal when i use npm start is the same errors
-
@Artech ok, do this
cd ~ find /usr 2>/dev/null | grep libudev\.hmine is in
/usr/include/libudev.hafter the two commands above
-
@sdetweil Thanks! That got me past the errors when installing dependencies. Now when using npm start the MM exits when it hit the MMM-MP3Player part of the config file. I will look into the logs further.
-
@sdetweil thank i guive you a feedback later
-
@patrickirvin that usually means there is some other dependency missing
-
i got the same errors for this module
-
Greetings
Did you ever get MMM-MP3Player working? I was able to get it installed, running MagicMirror without issues (thank you to another post where we have to rebuild some stuff for newer node.js versions), and it shows the widget on the Mirror, but doesn’t do anything once a USB stick is plugged in.
Also tried rebooting with the stick inserted, but does not play. Watching the console after
npm run startshows it started the socket and started the MMM-MP3Player module, but no info is displayed when inserting the USB stick.
-
@pillbug22
exactly the same situation. Was able to install with the help of https://stackoverflow.com/a/52796884
Get no errors, but the module doesn’t see the USB stick.Find out, smth wrong with ‘drivelist’. Module can not get list of drives: it stucks at lines 27 and 42 in node_helper.js.
-
@pillbug22, hi! Check it out: https://github.com/x3mEr/MMM-MP3Player.
-
Hi, How can I enable mp3 player only between 3 hours in a day ?
05.00 AM - 08.00 AM
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login
