04-27-2018, 03:04 PM
Hi Tim
Thanks for your help. I have amended wrk_mpdconf() to insert the FIFO configuration text from a file as follows
This appears to be working fine.
I am not sure how the other functions apply. Do they need any changes if I am not providing any configuration of the FIFO in the UI?
Adrian.
Thanks for your help. I have amended wrk_mpdconf() to insert the FIFO configuration text from a file as follows
PHP Code:
...
$output .= "device \"btstream\"\n";
$output .= "}\n";
// mpd_oled FIFO
$output .= file_get_contents('/usr/local/etc/mpd_oled_fifo.conf');
$fh = fopen('/etc/mpd.conf', 'w');
fwrite($fh, $output);
This appears to be working fine.
I am not sure how the other functions apply. Do they need any changes if I am not providing any configuration of the FIFO in the UI?
Adrian.