Skip to content

JPInert/BT-KeepAlive

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

KeepAlive Scripts

Prevent Bluetooth speakers from turning off due to inactivity

Overview

This repository includes two Python scripts designed to keep Bluetooth speakers active by sending inaudible sounds at regular intervals:

  1. keepalive.py: A basic Python script for Windows, macOS, and Linux.
  2. keepalive_win.py: An enhanced version for Windows with system tray functionality.

Installation Guide

Windows

  1. Download and install Python from the official website.
  2. Open the command prompt and verify the installation by running python --version.
  3. Clone or download this repository to your desired location.
  4. Navigate to the project directory in the command prompt.
  5. Run the script using the command python keepalive.py for keepalive.py or python keepalive_win.py for keepalive_win.py.

macOS

  1. macOS usually comes with Python pre-installed. Open the Terminal application and verify the installation by running python --version.
  2. Clone or download this repository to your desired location.
  3. Open the Terminal and navigate to the project directory.
  4. Run the script using the command python3 keepalive.py.

Linux

  1. Linux distributions often have Python pre-installed. Open the Terminal application and verify the installation by running python --version.
  2. Clone or download this repository to your desired location.
  3. Open the Terminal and navigate to the project directory.
  4. Run the script using the command python3 keepalive.py.

Scripts Description

keepalive.py

A basic Python script that keeps Bluetooth speakers active by sending inaudible sounds at regular intervals. It is compatible with Windows, macOS, and Linux.

keepalive_win.py

An enhanced version of keepalive.py specifically for Windows, offering additional features:

  • Creates a system tray icon for easy access and control.
  • Provides an option to exit the script using the system tray icon.
  • Can be converted to a standalone executable using tools like PyInstaller.

Ensure you have Python installed on your system before running these scripts. Refer to the installation guide for platform-specific instructions.

Feel free to explore and utilize these scripts to prevent your Bluetooth speakers from going inactive. For Windows users, the enhanced keepalive_win.py provides a more user-friendly experience with the system tray icon and exit functionality.

Please note that these scripts are provided as-is, and any usage or modification is at your own discretion. For any questions or issues, please refer to the repository's issue tracker. Enjoy uninterrupted audio experience with your Bluetooth speakers!

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages