bearpaw-daemon
Headless control and telemetry service for Uniden BC125AT and SR30C handheld scanners. Exposes an HTTP + WebSocket API designed as a first-class contract for any client that wants to drive a scanner — dashboards, kiosks, voice assistants, custom integrations.
The daemon's HTTP API (documented via OpenAPI at /openapi.json and
/docs) is the public contract. Any consumer that speaks HTTP and
WebSocket can use it.
Install
pip install bearpaw-daemon
# or
uv pip install bearpaw-daemon
Requires Python 3.10+. On Linux you'll need libusb-1.0 available at
runtime; apt install libusb-1.0-0 covers it on Debian-family systems.
Running
bearpaw --print-example-config > config.yaml # tune as needed
bearpaw --config ./config.yaml
The example config ships inside the package; --print-example-config
writes it to stdout so you can pipe it to wherever you want.
The daemon starts on 127.0.0.1:8000 by default. Browse /docs for
the live OpenAPI UI, or /openapi.json for the raw schema.
Generating typed clients
The OpenAPI document is the canonical contract. Generate clients with your tool of choice:
# Python
openapi-python-client generate --url http://localhost:8000/openapi.json
# TypeScript
npx openapi-typescript http://localhost:8000/openapi.json -o bearpaw.d.ts
Linux systemd installation
For a production Linux deployment (Debian, Ubuntu, Raspberry Pi OS, or any Debian-family host), use the installer:
git clone https://github.com/jeremyfuksa/bearpaw-daemon.git
cd bearpaw-daemon
sudo ./scripts/install-linux.sh
The installer is idempotent — safe to re-run after updates. It:
- Installs system packages (
libusb-1.0-0-dev,python3-venv) - Creates a
scannersystem user withdialoutgroup membership (for/dev/ttyACM0access) - Installs the daemon into
/opt/bearpaw/venv - Creates
/usr/local/bin/bearpawas a wrapper pointing at the venv - Seeds
/etc/bearpaw/config.yamlfromconfig.example.yaml(only if it doesn't already exist — your config is never clobbered) - Installs the systemd unit and enables it (does not start it)
After install, edit /etc/bearpaw/config.yaml (at minimum, pick the
right serial port for your scanner), then:
sudo systemctl start bearpaw
sudo journalctl -u bearpaw -f # watch logs
To upgrade: git pull, then re-run the installer.
A Raspberry Pi (3 or newer) running Raspberry Pi OS is the typical
deployment target, but nothing in the daemon or installer is
Pi-specific — any Debian-family Linux box with a USB port and Python
3.10+ works the same way. For non-Debian distros, install
libusb-1.0 and python3-venv (or equivalents) manually, then
pip install bearpaw-daemon into a venv and adapt
packaging/systemd/bearpaw.service to your paths.
Hardware and host notes
- Scanner cable: USB-A to mini-B (BC125AT) or USB-C (SR30C).
- PC mode: Some Uniden scanners need to be put into "PC/IF" mode manually before they accept serial commands. Consult your scanner's manual.
- Permissions on Linux: The daemon needs read/write access to the
scanner's serial device (typically
/dev/ttyACM0). Either add your user to thedialoutgroup or run via the systemd unit, which uses thescannersystem user. - USB transport: USB transport is the default and preferred path
on the BC125AT. Use
transport: serialinconfig.yamlonly if you have a specific reason. - ALSA discovery for audio consumers:
arecord -llists capture devices; the typical USB audio adapter shows up ashw:1,0.
Audio
The daemon does not stream audio. Scanner audio is hardware passthrough
from the scanner's headphone jack to whatever you want — speakers
directly, an ALSA loopback into another process, an Icecast encoder,
etc. Consumers that want software-gated audio can subscribe to the
squelch_open event on the WebSocket and gate their own pipeline.
API
OpenAPI docs are served at /docs when the daemon is running.
Endpoints are grouped by tag (status, commands, memory, settings,
analytics, preferences) for discoverability.
Config
See the full schema in
src/bearpaw/config.example.yaml,
or run bearpaw --print-example-config once installed.
Development
git clone https://github.com/jeremyfuksa/bearpaw-daemon.git
cd bearpaw-daemon
python -m venv .venv && source .venv/bin/activate
pip install -e .
pip install pytest pytest-asyncio pytest-cov ruff
pytest
See TESTING.md for the test layout and hardware-in-the-loop guidance.
License
MIT.
Metadata
Release files for bearpaw-daemon 1.4.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| bearpaw_daemon-1.4.0.tar.gz | 57.5 kB | With provenance | Details for bearpaw_daemon-1.4.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| bearpaw_daemon-1.4.0-py3-none-any.whl | Python 3 | none | any | Details for bearpaw_daemon-1.4.0-py3-none-any.whl |
Total release size: 117.8 kB
Release files / bearpaw_daemon-1.4.0.tar.gz
| Download URL | bearpaw_daemon-1.4.0.tar.gz |
|---|---|
| Size | 57.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
6fc34889e044ed521b0c249ef282c4363acceef897d2a8dd955dae3264de7d5d
|
|
BLAKE2b-256 checksum How to use checksums |
112aba6adf7586f1c60fe64b18873ae2959bfdc6af57a085d2902fea5c2ab186
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on May 19, 2026.
Transparency logRelease files / bearpaw_daemon-1.4.0-py3-none-any.whl
| Download URL | bearpaw_daemon-1.4.0-py3-none-any.whl |
|---|---|
| Size | 60.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
7dac5e603bd5646f7335f6c939a498f680497d4313d9e7481a512f9ca0afb573
|
|
BLAKE2b-256 checksum How to use checksums |
4b4726a74e1c7a6a72398074511e548501b7cb6fb2f4d21e896eaf9f59cabd70
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on May 19, 2026.
Transparency logSecurity for bearpaw-daemon 1.4.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.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for bearpaw_daemon-1.4.0.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on May 19, 2026.
Transparency logA 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.