Name | sensorpush-bleak JSON |
Version |
1.0.7
JSON |
| download |
home_page | |
Summary | library to read from Sensorpush HW.t bluetooth sensor |
upload_time | 2023-01-19 16:20:44 |
maintainer | |
docs_url | None |
author | |
requires_python | >=3.9 |
license | Copyright (c) 2021 Edward McGrath and others Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE |
keywords |
sensorpush
hw.t
temperature
sensor
bluetooth
ble
|
VCS |
|
bugtrack_url |
|
requirements |
No requirements were recorded.
|
Travis-CI |
No Travis.
|
coveralls test coverage |
No coveralls.
|
# pysensorpush-bleak
Python library which uses gatttool to read temperature data from a Sensorpush HT.w temperature sensor.
1. Find the mac address of your sensor:<br>
```
pi@raspberrypi:~ $ sudo hcitool lescan
LE Scan ...
A4:34:F1:7F:CD:D8 SensorPush HT.w CDD8
```
2. 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
>>>
```
![pysensorpush_pic](https://user-images.githubusercontent.com/5443337/143657088-2a6d5793-24d3-4408-9d07-30b3f3f04577.jpg)
Raw data
{
"_id": null,
"home_page": "",
"name": "sensorpush-bleak",
"maintainer": "",
"docs_url": null,
"requires_python": ">=3.9",
"maintainer_email": "",
"keywords": "sensorpush,HW.t,temperature,sensor,bluetooth,ble",
"author": "",
"author_email": "Ed McGrath <edward@edwardmcgrath.com>",
"download_url": "https://files.pythonhosted.org/packages/9d/f4/e6195c5d8a158a8f717591278a5a94b8315c1c6deca5a14ace0ec968827a/sensorpush-bleak-1.0.7.tar.gz",
"platform": null,
"description": "# pysensorpush-bleak\n\nPython library which uses gatttool to read temperature data from a Sensorpush HT.w temperature sensor.\n\n1. Find the mac address of your sensor:<br>\n```\npi@raspberrypi:~ $ sudo hcitool lescan\nLE Scan ...\nA4:34:F1:7F:CD:D8 SensorPush HT.w CDD8\n```\n\n2. Example usage:\n```\npi@raspberrypi:~/p/pysensorpush-bleak/src/pysensorpush-bleak $ python\nPython 3.9.2 (default, Mar 12 2021, 04:06:34)\n[GCC 10.2.1 20210110] on linux\nType \"help\", \"copyright\", \"credits\" or \"license\" for more information.\n>>> import sensorpush as sp\n>>> import asyncio\n>>> from bleak import BleakClient\n>>> async def main():\n... client = BleakClient(\"A4:34:F1:7F:CD:D8\")\n... await client.connect()\n... temp_c = await sp.read_temperature(client)\n... print(\"temperature = {}\".format(temp_c))\n... client.disconnect()\n...\n>>> asyncio.run(main())\ntemperature = 13.92\n>>>\n```\n![pysensorpush_pic](https://user-images.githubusercontent.com/5443337/143657088-2a6d5793-24d3-4408-9d07-30b3f3f04577.jpg)\n",
"bugtrack_url": null,
"license": "Copyright (c) 2021 Edward McGrath and others Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the \"Software\"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE ",
"summary": "library to read from Sensorpush HW.t bluetooth sensor",
"version": "1.0.7",
"split_keywords": [
"sensorpush",
"hw.t",
"temperature",
"sensor",
"bluetooth",
"ble"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "e5e689c4ba4d5487b870c28ea99c2e9c460554ccfa310d4dcd111809ef27e550",
"md5": "7882d60ecd03f8aafc67d6aac1d4740b",
"sha256": "7ffe512834900550ec889441f1119bfbcc07e131a688d80d46a59eb26e745d11"
},
"downloads": -1,
"filename": "sensorpush_bleak-1.0.7-py3-none-any.whl",
"has_sig": false,
"md5_digest": "7882d60ecd03f8aafc67d6aac1d4740b",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.9",
"size": 8928,
"upload_time": "2023-01-19T16:20:42",
"upload_time_iso_8601": "2023-01-19T16:20:42.378725Z",
"url": "https://files.pythonhosted.org/packages/e5/e6/89c4ba4d5487b870c28ea99c2e9c460554ccfa310d4dcd111809ef27e550/sensorpush_bleak-1.0.7-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "9df4e6195c5d8a158a8f717591278a5a94b8315c1c6deca5a14ace0ec968827a",
"md5": "5ec85d27500dfd5626b170911c945e73",
"sha256": "eb737834a1cab082f0163b132916859082ea6196a5e1e67f780f6b9d374fe5d9"
},
"downloads": -1,
"filename": "sensorpush-bleak-1.0.7.tar.gz",
"has_sig": false,
"md5_digest": "5ec85d27500dfd5626b170911c945e73",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.9",
"size": 8067,
"upload_time": "2023-01-19T16:20:44",
"upload_time_iso_8601": "2023-01-19T16:20:44.585506Z",
"url": "https://files.pythonhosted.org/packages/9d/f4/e6195c5d8a158a8f717591278a5a94b8315c1c6deca5a14ace0ec968827a/sensorpush-bleak-1.0.7.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2023-01-19 16:20:44",
"github": false,
"gitlab": false,
"bitbucket": false,
"lcname": "sensorpush-bleak"
}