[SOLVED] Auto Play Music

Raspberry Pi related support

Re: Auto Play Music

Postby mikeoh » 15 Apr 2015, 16:03

mikeoh
 
Posts: 3
Joined: 16 Jun 2014, 00:24

Re: Auto Play Music

Postby liddle1992 » 10 Feb 2016, 22:14

liddle1992
 
Posts: 1
Joined: 10 Feb 2016, 22:07

Auto Play Music

Postby meandnobodyelse » 26 Feb 2017, 19:12

@wimpie007:
the problem is sitting in rune_SY_wrk (RuneOs: 0.3-beta, RuneUI: 1.3-beta, Hw-env: RaspberryPi 2).
after the line 286 the main loop starts but the local storage (usb) ist still not properly mounted.
a 'mpc play' throws an 'error no such file here as your playlist-file'.
so a:
sysCmdAsync('/var/www/command/refresh_nics ; /var/www/command/debug_collector');

$mount='';
while (!$mount){
sleep(1);
$mount=implode('',glob('/mnt/MPD/USB/<your volume name comes here>/*'));
}
`/usr/bin/mpc play`;

runelog('WORKER MAIN LOOP ---');

does the trick for now. but it's still rather very dirty.
A nice 'start playing on boot' option in the UI would be much better, of course.
meandnobodyelse
 
Posts: 1
Joined: 26 Feb 2017, 18:53

Re: [SOLVED] Auto Play Music

Postby SteveberryPi » 27 Feb 2017, 16:09

Ok..

Reading this post..

Dose this edit make the RuneAudio play Automatically when start up...

Im looking at useing the RuneTune on a Pi for a in store music stream and when the power goes out i would like the Pi to start back up Automatically and play a internet stream or if it dose not connect to the stream it will play a playlist is this possible with the above code ?
SteveberryPi
 
Posts: 2
Joined: 26 Jan 2017, 21:00

support RuneAudio Donate with PayPal

Previous

Return to Raspberry Pi

Who is online

Users browsing this forum: Google [Bot] and 13 guests