Thank you for your donation!


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


Bluetooth auto-connection
#4
Hi,

1. Open an SSH session
2. Edit worker.php file
sudo nano /var/www/command/worker.php

3. Page down to the code block below and add the code that is bolded

//
// BEGIN WORKER JOB LOOP
//

while (1) {
sleep(3);

session_start();

if ($_SESSION['maint_interval'] != 0) {
chkMaintenance($maint_interval);
}
if ($_SESSION['cardnum'] == '1') { // TEST experimental usb audio hot-plug mgt
sysCmd('alsactl store');
}
if ($_SESSION['btsvc'] == '1' && $_SESSION['audioout'] == 'Local') {
chkBtActive();
}
if ($_SESSION['airplaysvc'] == '1') {
chkAplActive();
}
if ($_SESSION['extmeta'] == '1') {
updExtMetaFile();
}
  if ($_SESSION['ckrad'] == 'Clock Radio') {
chkClockRadio();
}
  if ($_SESSION['ckrad'] == 'Sleep Timer') {
chkSleepTimer();
}
if ($_SESSION['playhist'] == 'Yes') {
updPlayHistory();
}
if ($_SESSION['w_active'] == 1 && $_SESSION['w_lock'] == 0) {
runQueuedJob();
}

session_write_close();
}

4. Ctrl-o <return> Ctrl-x to save the file.
5. Reboot

BTW, if the UI is disabled how are u able to play any music to your Bluetooth Speaker ?

-Tim
Enjoy the Music!
moodeaudio.org | Mastodon Feed | GitHub
Reply


Messages In This Thread
Bluetooth auto-connection - by Marchino - 04-10-2018, 09:14 AM
RE: Bluetooth auto-connection - by Tim Curtis - 04-10-2018, 01:27 PM
RE: Bluetooth auto-connection - by Marchino - 04-10-2018, 05:33 PM
RE: Bluetooth auto-connection - by Tim Curtis - 04-10-2018, 06:26 PM
RE: Bluetooth auto-connection - by Marchino - 04-10-2018, 08:43 PM
RE: Bluetooth auto-connection - by Marchino - 04-10-2018, 09:29 PM
RE: Bluetooth auto-connection - by Tim Curtis - 04-10-2018, 11:30 PM
RE: Bluetooth auto-connection - by ptiLuLu - 03-31-2020, 01:25 PM
RE: Bluetooth auto-connection - by Tim Curtis - 03-31-2020, 01:37 PM
RE: Bluetooth auto-connection - by ptiLuLu - 03-31-2020, 01:59 PM
RE: Bluetooth auto-connection - by Tim Curtis - 03-31-2020, 02:03 PM
RE: Bluetooth auto-connection - by ptiLuLu - 03-31-2020, 02:21 PM
RE: Bluetooth auto-connection - by s_mury - 04-22-2020, 03:37 PM
RE: Bluetooth auto-connection - by Tim Curtis - 04-22-2020, 04:28 PM
RE: Bluetooth auto-connection - by s_mury - 04-25-2020, 09:35 PM
RE: Bluetooth auto-connection - by s_mury - 04-27-2020, 01:35 PM

Forum Jump: