{"id":14978066,"url":"https://github.com/mausy5043/pylywsdxx","last_synced_at":"2025-04-10T01:33:24.866Z","repository":{"id":65823154,"uuid":"600703205","full_name":"Mausy5043/pylywsdxx","owner":"Mausy5043","description":"A Python3 class to interrogate Xiaomi Mijia LYWSD* sensors.","archived":false,"fork":false,"pushed_at":"2024-04-13T12:33:36.000Z","size":138,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"devel","last_synced_at":"2024-04-13T21:14:05.927Z","etag":null,"topics":["ble","bluetooth-low-energy","iot","lywsd02","lywsd03mmc","pypi","python","python3","raspberry-pi"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Mausy5043.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null}},"created_at":"2023-02-12T10:24:55.000Z","updated_at":"2024-07-07T09:20:08.561Z","dependencies_parsed_at":"2023-02-21T12:16:20.743Z","dependency_job_id":"81e2490e-807b-411a-ac0c-980ce54b9d12","html_url":"https://github.com/Mausy5043/pylywsdxx","commit_stats":{"total_commits":70,"total_committers":1,"mean_commits":70.0,"dds":0.0,"last_synced_commit":"889dedff0990e952f268f54f5cb65d3f30c43572"},"previous_names":[],"tags_count":9,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Mausy5043%2Fpylywsdxx","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Mausy5043%2Fpylywsdxx/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Mausy5043%2Fpylywsdxx/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Mausy5043%2Fpylywsdxx/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Mausy5043","download_url":"https://codeload.github.com/Mausy5043/pylywsdxx/tar.gz/refs/heads/devel","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248140826,"owners_count":21054355,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ble","bluetooth-low-energy","iot","lywsd02","lywsd03mmc","pypi","python","python3","raspberry-pi"],"created_at":"2024-09-24T13:56:48.817Z","updated_at":"2025-04-10T01:33:24.858Z","avatar_url":"https://github.com/Mausy5043.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n[![License](https://img.shields.io/github/license/mausy5043/pylywsdxx)](LICENSE)\n[![PyPI version](https://img.shields.io/pypi/v/pylywsdxx.svg?logo=pypi\u0026logoColor=FFE873)](https://pypi.org/project/pylywsdxx)\n[![Supported Python versions](https://img.shields.io/pypi/pyversions/pylywsdxx.svg?logo=python\u0026logoColor=FFE873)](https://pypi.org/project/pylywsdxx)\n[![PyPI downloads](https://img.shields.io/pypi/dm/pylywsdxx.svg)](https://pypistats.org/packages/pylywsdxx)\n[![Code style: black](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/psf/black)\n[![pre-commit.ci status](https://results.pre-commit.ci/badge/github/Mausy5043/pylywsdxx/devel.svg)](https://results.pre-commit.ci/latest/github/Mausy5043/pylywsdxx/devel)\n\n# pylywsdxx\n\nThis is a Python3 library to allow interrogation of Xiaomi Mijia LYWSD* sensors via Bluetooth Low Energy (BLE).\n\n**Note**: This is an unofficial project, and is in no way supported or endorsed by Xiaomi.\n\n## Requirements\n\nThis module requires [`bluepy3`](https://pypi.org/project/bluepy3/) which should be installed automagically when using the installation instructions below.\n\nDevelopment of this package is done in Python 3.12. The package is considered forwards compatible at least upto Python 3.12 and probably also beyond. Backwards compatibility is not guaranteed; if it works on Python 3.9 or before consider yourself lucky. [Python versions that are end-of-life](https://devguide.python.org/versions/) are not supported.\n\nThe package has been extensively tested on a Raspberry Pi 3 Model B+ (aarch64) with Debian GNU Linux 12 /w Python 3.11.*.\n\n\n## Installation\n\n```\npip install pylywsdxx\n```\n\n## Usage\n\n```\nimport pylywsdxx as pyly\n\nmac = \"A4:C1:38:0D:EA:D0\"\n\ndevice2 = pyly.Lywsd02(mac)\ndata2 = device2.data\nprint(f\"Temperature: {data2.temperature}˚C\")\n\ndevice3 = pyly.Lywsd03(mac)\ndata3 = device3.data\nprint(f\"Temperature: {data3.temperature}˚C\")\n```\n\nPlease note that this module has completely and intentionally broken backwards compatibility with previous\nand existing versions of `lywsd02` and `lywsd03mmc` and with v1.* versions of itself.\n\n## Acknowledgements\n\nBased on previous work stolen from Mikhail Baranov (`h4`) : [lywsd02](https://github.com/h4/lywsd02)\nand Duncan Barclay (`uduncanu`) : [lywsd03mmc](https://github.com/uduncanu/lywsd03mmc)\n\n\n## Disclaimer \u0026 License\nAs of September 2024 `pylywsdxx` is distributed under [AGPL-3.0-or-later](LICENSE).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmausy5043%2Fpylywsdxx","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmausy5043%2Fpylywsdxx","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmausy5043%2Fpylywsdxx/lists"}