05-28-2024, 06:49 PM
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
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.
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.