Thank you for your donation!


Cloudsmith graciously provides open-source package management and distribution for our project.


Solved: Boos2 OLED configuration
#7
The oled script should be started automatically during moode startup. 

The code block is below. There should also be long entries in the startup log (moodeutl -l)

/var/www/daemon/worker.php
Code:
// Allo Boss 2 OLED
// The Allo installer adds lines to rc.local which are not needed because we start/stop it via systemd unit
if (!empty(sysCmd('grep "boss2" /etc/rc.local')[0])) {
    sleep(1); // Allow rc.local script time to exit after starting worker.php
    sysCmd('sed -i /boss2/d /etc/rc.local');
    $scriptMsg = 'manually installed script, rc.local updated';
} else {
    $scriptMsg = 'OLED script ok';
}
if ($_SESSION['i2sdevice'] == 'Allo Boss 2 DAC' && !file_exists($_SESSION['home_dir'] . '/boss2oled_no_load')) {
    sysCmd('systemctl start boss2oled');
    $msg = 'OLED started, ' . $scriptMsg;
} else {
    $msg = 'not detected, ' . $scriptMsg;
}
workerLog('worker: Allo Boss 2:      ' . $msg);

If there are bugs in the script included with moode someone with a Boss 2 is going to need to help debug it. Remember Allo is not around anymore to support their software and so its every man for himself.

Btw, if the Allo downloaded script is installed it will overwrite the script supplied with moode and thats not something that can be supported.
Enjoy the Music!
moodeaudio.org | Mastodon Feed | GitHub
Reply


Messages In This Thread
Boos2 OLED configuration - by Akhil Vjn - 05-28-2024, 03:24 PM
RE: Boos2 OLED configuration - by TheOldPresbyope - 05-28-2024, 03:33 PM
RE: Boos2 OLED configuration - by Akhil Vjn - 05-28-2024, 03:53 PM
RE: Boos2 OLED configuration - by Tim Curtis - 05-28-2024, 04:05 PM
RE: Boos2 OLED configuration - by TheOldPresbyope - 05-28-2024, 04:15 PM
RE: Boos2 OLED configuration - by Akhil Vjn - 05-28-2024, 06:34 PM
RE: Boos2 OLED configuration - by Tim Curtis - 05-28-2024, 06:49 PM
RE: Boos2 OLED configuration - by Akhil Vjn - 05-28-2024, 07:24 PM
RE: Boos2 OLED configuration - by Nutul - 05-28-2024, 08:16 PM
RE: Boos2 OLED configuration - by Akhil Vjn - 05-29-2024, 11:17 AM

Forum Jump: