pysensorpush-bleak
Python library which uses gatttool to read temperature data from a Sensorpush HT.w temperature sensor.
- Find the mac address of your sensor:
pi@raspberrypi:~ $ sudo hcitool lescan
LE Scan ...
A4:34:F1:7F:CD:D8 SensorPush HT.w CDD8
- Example usage:
pi@raspberrypi:~/p/pysensorpush-bleak/src/pysensorpush-bleak $ python
Python 3.9.2 (default, Mar 12 2021, 04:06:34)
[GCC 10.2.1 20210110] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import sensorpush as sp
>>> import asyncio
>>> from bleak import BleakClient
>>> async def main():
... client = BleakClient("A4:34:F1:7F:CD:D8")
... await client.connect()
... temp_c = await sp.read_temperature(client)
... print("temperature = {}".format(temp_c))
... client.disconnect()
...
>>> asyncio.run(main())
temperature = 13.92
>>>
Metadata
Release files for sensorpush-bleak 1.0.7
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 |
|---|---|---|---|---|
| sensorpush-bleak-1.0.7.tar.gz | 8.1 kB | Without provenance | Details for sensorpush-bleak-1.0.7.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| sensorpush_bleak-1.0.7-py3-none-any.whl | Python 3 | none | any | Details for sensorpush_bleak-1.0.7-py3-none-any.whl |
Total release size: 17.0 kB
Release files / sensorpush-bleak-1.0.7.tar.gz
| Download URL | sensorpush-bleak-1.0.7.tar.gz |
|---|---|
| Size | 8.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
eb737834a1cab082f0163b132916859082ea6196a5e1e67f780f6b9d374fe5d9
|
|
BLAKE2b-256 checksum How to use checksums |
9df4e6195c5d8a158a8f717591278a5a94b8315c1c6deca5a14ace0ec968827a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.9.2
|
Release files / sensorpush_bleak-1.0.7-py3-none-any.whl
| Download URL | sensorpush_bleak-1.0.7-py3-none-any.whl |
|---|---|
| Size | 8.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
7ffe512834900550ec889441f1119bfbcc07e131a688d80d46a59eb26e745d11
|
|
BLAKE2b-256 checksum How to use checksums |
e5e689c4ba4d5487b870c28ea99c2e9c460554ccfa310d4dcd111809ef27e550
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.9.2
|
Security for sensorpush-bleak 1.0.7
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.