Skip to main content

blester

BLE scanner daemon that publishes findings to an MQTT topic.

Installation

pip install g2labs-blester

Usage

blester --mqtt-host localhost --default-topic home/ble/findings

Options

Flag Default Description
--mqtt-host (required) MQTT broker hostname or IP
--mqtt-port 1883 MQTT broker port
--mqtt-username — MQTT username
--mqtt-password — MQTT password
--scan-duration 5.0 BLE scan window in seconds
--scan-interval 0.0 Pause between scans (0 = continuous)
--log-level INFO DEBUG / INFO / WARNING / ERROR

Filtering

By default, devices with no matching filter are discarded. Set --default-topic to publish unmatched devices to a catch-all topic.

Inline filters (--filter, repeatable)

blester --mqtt-host localhost \
  --filter AA:BB:CC:DD:EE:FF=home/ble/lamp \
  --filter 11:22:33:44:55:66=home/ble/sensor \
  --default-topic home/ble/unknown

Filter config file (--filter-config)

blester --mqtt-host localhost --filter-config filters.json

filters.json:

[
  {"mac": "AA:BB:CC:DD:EE:FF", "topic": "home/ble/lamp"},
  {"mac": "11:22:33:44:55:66", "topic": "home/ble/sensor"}
]

--filter and --filter-config are mutually exclusive.

MQTT payload

Each discovered device is published as a JSON object:

{
  "address": "AA:BB:CC:DD:EE:FF",
  "name": "MyDevice",
  "rssi": -72,
  "manufacturer_data": {"76": "0215..."},
  "service_uuids": ["0000180f-0000-1000-8000-00805f9b34fb"]
}

Requirements

  • Python 3.9+
  • Bluetooth adapter with BLE support
  • Linux: bluetoothd running; may need CAP_NET_ADMIN or run as root

License

MIT © Grzegorz Grzęda

Metadata

Release files for g2labs-blester 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for g2labs-blester 0.1.0
File Size Uploaded Provenance
g2labs_blester-0.1.0.tar.gz 6.9 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for g2labs-blester 0.1.0
File Interpreter ABI Platform
g2labs_blester-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 15.5 kB

Release files / g2labs_blester-0.1.0.tar.gz

Download URL g2labs_blester-0.1.0.tar.gz
Size 6.9 kB
Tags Source
SHA-256 checksum
How to use checksums
0210b3a7ffecb120f5286ed2655e2ceb83886798fae6bb2aea5cdf5f1658dabb
BLAKE2b-256 checksum
How to use checksums
8fd4eed8e42ca9f4bf534f8b6a1618e7667f71057fa41a5f5bd7c44132a684a8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.3

Release files / g2labs_blester-0.1.0-py3-none-any.whl

Download URL g2labs_blester-0.1.0-py3-none-any.whl
Size 8.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
9fb21b1492ef09ccbea0d872f6190cfb816fa6068bd7b492a92d0edea48bb196
BLAKE2b-256 checksum
How to use checksums
747f5afec0171deb9427f830e6a760684f8df48ffc44f1573a0f8ca1f8fc7222
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.3

Security for g2labs-blester 0.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page