-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #31 from melianmiko/release/v0.14_rebase
release/v0.14 rebase
- Loading branch information
Showing
84 changed files
with
1,864 additions
and
439 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,5 +8,7 @@ | |
/build | ||
/builddir | ||
/dist | ||
/scripts/tools | ||
/release.json | ||
|
||
/.idea |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
# v0.14.0 | ||
- [Core] Client-server architecture, close #14; | ||
- Now multiple instances of OpenFreebuds could be launched, for multi-user usage for example; | ||
- Built-in HTTP-server is now used as cross process communication protocol, so it can't be fully disabled, remote access is still disallowed out-of-box; | ||
- If you need to launch multiple instances from single user, use -c CLI flag; | ||
- [Core] Web-server authorization | ||
- [Core] Rewritten (mostly from scratch) to asyncio ; | ||
- [Core] Drop pybluez from dependencies, now will use predefined port numbers instead of SDP detection; | ||
- [UI] Rewritten from scratch to asyncio and PyQT6, introduce redesigned Settings UI; | ||
- [UI] Disable logging to CLI / `journalctl` if -v isn't present, close #29; | ||
- [Device compatibility] Bug fixes for modern HUAWEI Devices (5i, Pro 2, Pro 3); | ||
- [HUAWEI FreeBuds 5i & other] Better Dual-Connect configuration; | ||
- [HUAWEI FreeBuds 5i & other] Add low-latency mode setting; | ||
- [HUAWEI FreeBuds 5i & other] Add triple-tap settings; | ||
- [HUAWEI FreeBuds 5i & other] Fix SQ preference switch; | ||
- [Device compatibility] Add HUAWEI FreeLace Pro 2 compatibility; | ||
- Custom equalizer preset configuration (should also work with Pro 3); | ||
- [Linux] Flatpak installation option | ||
|
||
# Older releases | ||
WIP |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,92 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="UTF-8"> | ||
<title>OpenFreebuds</title> | ||
<link rel="stylesheet" href="https://unpkg.com/mvp.css"> | ||
</head> | ||
<body style="max-width: 600px; margin: 64px auto"> | ||
<h2> | ||
OpenFreebuds RPC | ||
</h2> | ||
<p> | ||
Use this web-server to control earphones from your software | ||
or scripts | ||
</p> | ||
<h3> | ||
Quick actions | ||
</h3> | ||
<p> | ||
Right-click on required action link and copy their URL. So you can trigger | ||
them from any app or script, for exmaple, via curl: | ||
</p> | ||
<pre><code>curl -s http://localhost:19823/mode_cancellation</code></pre> | ||
<h4>Available actions:</h4> | ||
<div id="actions"></div> | ||
<h3> | ||
Direct RPC command execution | ||
</h3> | ||
<pre><code>fetch( | ||
"http://localhost:19823/__rpc__/set_property", { | ||
method: "POST", | ||
headers: { | ||
"Content-Type": "application/json", | ||
"X-Secret": "SECRET_KEY_IF_ENROLLED", | ||
}, | ||
body: JSON.stringify({ | ||
"args": ["anc", "mode", "awareness"], | ||
"kwargs": {}, | ||
}), | ||
} | ||
) | ||
.then(d => d.json()) | ||
.then(r => console.log(r))</code></pre> | ||
<h3> | ||
Remote access | ||
</h3> | ||
<p> | ||
To access this page through other devices in network, | ||
make sure that you're enabled "Remote access" in GUI | ||
settings. | ||
</p> | ||
<p> | ||
If you plan to do that, it's strongly recommended to also | ||
enable secret key verification, and set strong, random key, | ||
to prevent unauthorized access to your devices. | ||
</p> | ||
<script> | ||
function setupShortcutLink(a, out, shortcutName) { | ||
a.href = location.href + shortcutName; | ||
a.innerHTML = `<code style="color: var(--text)">${shortcutName}</code>`; | ||
|
||
a.onclick = async (e) => { | ||
e.preventDefault(); | ||
|
||
out.innerText = "Loading..." | ||
const resp = await fetch(`/${shortcutName}`); | ||
out.innerText = await resp.text(); | ||
} | ||
} | ||
|
||
async function listActions() { | ||
const resp = await fetch("/list_shortcuts"); | ||
const data = await resp.json(); | ||
const root = document.getElementById("actions"); | ||
|
||
for(const shortcutName of data) { | ||
const p = document.createElement("p"); | ||
const a = document.createElement("a"); | ||
const out = document.createElement("code"); | ||
out.style.paddingLeft = "16px"; | ||
p.appendChild(a); | ||
p.appendChild(out); | ||
root.appendChild(p); | ||
|
||
setupShortcutLink(a, out, shortcutName); | ||
} | ||
} | ||
|
||
listActions() | ||
</script> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,3 @@ | ||
import json | ||
from typing import Optional | ||
|
||
from openfreebuds.constants import OfbEventKind | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.