Read the statement by Michael Teeuw here.
audio problem
-
hi there, I am using my mirror as a jukebox
and everything works fine on manual start
hello lucy welcomes me with a message and mmm jukebox plays my music
with no problem, but i have used a bash file to autostart my mirror which works well except there is no audio until i close the mirror and manual start it,
could anyone please help
thanks
tommyk -
@tommyk can you describe the environment, how does the music get played?
What do you mean by manual start bs auto?
What version of MagicMirror are you running?Show the system info section of the output from startup
As for your other post, all messages from users with reputation below 2 are reviewed before posting on the forum
-
@tommyk looking at the code, I think the system is busy during bootup, and this causes an uncaught failure
There is a new notification , sent after updateDom() is called, to inform the app that the content has been drawn.
See
https://docs.magicmirror.builders/module-development/notifications.html#system-notificationsMODULE_DOM_UPDATEDI think the module needs to use that notification to wait to start the play of the audio element it just added
-
@sdetweil Hi sam
thanks for your reply, and thanks to everyone for all these wonderful modules
firstly I must say that I am a complete novice ,but love messing about with this mirror thing
I am running a pi 4 with debian 13 (trixie).
so when I type in terminal (cd MagicMirror npm start) the mirror starts with audio… ie Manual start
but when I created a bash file to autostart the mirror, which I got on utube from the fuzz guy
the mirror starts up automatically when the pi has loaded up… but there is no audio…
then if i click control and m to close the mirror and type in terminal the audio is on again.
so it seems something is not loading on autostart.
thats about all I know, sorry but I dont know how to show system infothanks
tommyk -
@tommyk I understand
Maybe there will be some info here
After starting from boot , where the audio fails,
Open the browser developers window
ctrl-shift-i
Select the console tab, and put juke in the filter field
To see if there are any errors, usually marked in redIf so, copy paste them here
Same keystroke to get out of dev window
Let me know what you find
Another test thing to try, is add a sleep 30
In the script before launching MagicMirror to see if that makes a difference
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