Skip to main content

qingping client library

Tool for configuring your Qingping Air Monitor Lite without internet or app.

WARNING

Carefully check your device model before use. Author is not responsible for possible damage or device bricking.

In practive device can not be killed by bluetooth packets, but incompatibilities between firmware and/or hardware may cause fatal damage when operating on unknown opcodes. You must understand and accept the risks before using this utility.

How to use

Install with

pip install qingping

If you want to connect your device to your MQTT server, put it into pairing mode and do

python3 -m qingping.bluetooth \
    --verbose \
    --mac MAC__ADDRESS__HERE \
    --wifi-ssid "WIFI__SSID__HERE" \
    --wifi-password "WIFI__PASSWORD__HERE" \
    --link-token "00112233445566778899AABBCCDDEEFF" \
    --mqtt-host "MQTT__HOST__HERE" \
    --mqtt-port 1883 \
    --mqtt-login qingping \
    --mqtt-password qingping \
    --mqtt-client "MQTT__CLIENT__HERE" \
    --mqtt-read "MQTT__TOPIC__READ__HERE" \
    --mqtt-write "MQTT__TOPIC__WRITE__HERE"

Optionally change mqtt-login, mqtt-pasword and link-token.

Supported devices

Currently supported devices:

  • Qingping Air Monitor Lite (CGDN1)

Features

  • Full offline device setup
  • Support of all (known) bluetooth commands with docs and examples
  • Support of all (known) MQTT configuration commands with docs and examples
  • Library and a standalone script

Bluetooth

See bluetooth.md

Pipeline

Connection pipeline described pipeline.md

TODO:

  • Discover other packet types
  • Documentation for MQTT commands
  • Support cli configuration over MQTT

License

qingping - python tools for air monitor
Copyright (C) 2025  bitrate16 (bitrate16@gmail.com)

This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU Affero General Public License for more details.

You should have received a copy of the GNU Affero General Public License
along with this program.  If not, see <https://www.gnu.org/licenses/>.

Metadata

Release files for qingping 0.3

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

Source distribution (sdist)

Source distribution for qingping 0.3
File Size Uploaded Provenance Actions
qingping-0.3.tar.gz 14.4 kB Without provenance Details for qingping-0.3.tar.gz

Release files / qingping-0.3.tar.gz

Download URL qingping-0.3.tar.gz
Size 14.4 kB
Tags Source
SHA-256 checksum
How to use checksums
bd2c1897926e6a851832518d75a616f00254ce099fe4eda7410fe1449a865186
BLAKE2b-256 checksum
How to use checksums
4ee49de75fad8c6ebcff58a3f6c11bbc028550cf392e19d4a51d957043676476
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.5

Security for qingping 0.3

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.3 This release

1 release file 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