GithubHelp home page GithubHelp logo

ehorohorin / openfreebuds Goto Github PK

View Code? Open in Web Editor NEW

This project forked from melianmiko/openfreebuds

0.0 1.0 0.0 674 KB

Open source app for HUAWEI FreeBuds (Linux + Windows + Android)

License: GNU General Public License v3.0

Python 96.98% Makefile 0.58% HTML 0.93% NSIS 1.50%

openfreebuds's Introduction

Icon OpenFreebuds Desktop

Last release AUR last modified Crowdin

Desktop application to manage your HUAWEI FreeBuds device. Written in Python, available for Windows and Linux.

Features:

  • Toggle noise cancellation mode directly from PC
  • Change device settings (like touch reactions)
  • Hotkeys, web-server included
  • Open source and free forever

Supported devices:

  • HUAWEI FreeBuds 5i
  • HUAWEI FreeBuds 4i
  • HUAWEI FreeLace Pro
  • HONOR Earbuds 2 Lite

Partially supported devices (some features are missing):

  • HUAWEI FreeBuds 5i
  • HUAWEI FreeBuds Pro 2

Installation

Windows: get binary packages here.

Arch Linux: available in AUR

Debian, Ubuntu 22.04-23.04:

curl -Sl https://deb.mmk.pw/setup | sudo bash -
sudo apt install openfreebuds

Build from source code

Windows

Requirements:

  • Windows 10/11, with Microsoft-compatible Bluetooth adapter
  • Python 3.10-3.11 (NOT from Microsoft Store, don't forgot to set "Add to PATH" checkbox doing installation)
  • NSIS (optional, for installer)
  • UPX Packager (optional)

Grab sources from here, if you don't. Open PowerShell or Windows Terminal in this directory. Create venv and install python packages:

python -m venv venv
.\venv\Scripts\activate
pip install -r requirements.txt

Now, run pyinstaller to build an executable:

pyinstaller .\openfreebuds.spec

Optional, make an installer package:

& 'C:\Program Files (x86)\NSIS\Bin\makensis.exe' .\openfreebuds.nsi

Result files will appear in dist directory.

Linux

Install dependencies: Python3, Pip3, Python3 GObject bindings (gi), Python3 Tkinter, Python3 DBus, Python3 Pillow with ImageTk, Appindicator3 or AyatanaAppindicator3, Bluez sources (libbluetooth-dev), UPX (optional), Gtk3, Git, gcc, make

For Debian/Ubuntu:

sudo apt install make git gcc upx-ucl python3 python3-pip python3-wheel \
  python3-gi python3-tk python3-dbus python3-pil python3-pil.imagetk \
  gir1.2-appindicator3-0.1 | gir1.2-ayatanaappindicator3-0.1 \
  libgtk-3-0 libbluetooth-dev

Run from source code

python3-venv and build-essentials are required, also as big part of libraries listed above.

python -m venv venv
source venv/bin/activate
pip install -r requirements.txt
python src/ofb_launcher.py

Install

Grab sources and run make:

git clone https://github.com/melianmiko/OpenFreebuds
cd OpenFreebuds
make
sudo make install # Install

Build debian package

dpkg-buildpackage -b # binary pkg
dpkg-buildpackage -S # source pkg

That's all.

openfreebuds's People

Contributors

melianmiko avatar ehorohorin avatar sprootik avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.