This tools hosts a web API that is used to control bluetooth devices. It requires bluetoothctl to be installed and used.
Since bluetooth on linux devices is often janky and this tool is really simple it never fully worked unfortunately. I am not planning on finishing up the tool as there are probably other working tools already that fulfill a similar purpose.
Install NPM dependencies (express & bluetoothctl)
cd bluewebcontrol
npm install
Create a config.json file that contains a target element and a port
{
"target": "<bluetooth mac address>",
"port": "3000"
}Start the Express server
node app.js
Returns the latest information on the target bluetooth device
Turns scanning on or off
Connects to the target and turns scanning off to avoid interference
Disconnect the target