wyze-scale-tool


Namewyze-scale-tool JSON
Version 1.0.0 PyPI version JSON
download
home_page
SummaryA utility for reading from and managing a Wyze Scale X
upload_time2024-02-08 17:37:21
maintainer
docs_urlNone
author
requires_python>=3.8
license
keywords scale wyze wyze scale x
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # wyze_scale_tool - A utility for reading from and managing a Wyze Scale X

This is a proof-of-concept python library and stand-alone program
for communicating with a Wyze Scale X.

## Installation

```pip install wyze_scale_tool```

## CLI Usage

The CLI interface supports most of the functionality of the protocol, including creating, modifying and deleting users, 
querying weights, changing scale settings (units, etc.), and even a live-weighing mode that continuously
shows the current measured weight from the scale.

### Example Usage

To get a list of all cached weights of all users on the scale

```wyze_scale_tool weights```

To explore more of the options that are available, you can use --help

```wyze_scale_tool --help```

## API Usage

This also exposes an API that can be used to communicate with a Wyze Scale X

```python
import asyncio

from wyze_scale_tool import WyzeScale

async def main():
    mac_address = "AA:BB:CC:DD:EE:FF"

    scale = WyzeScale(mac_address)

    async with scale:
        users = await scale.get_users()
        for user in users:
            async for weight in scale.get_weights(user):
                print("User: %s Time: %s Weight: %s" % (
                    bytes.hex(user.user_id), weight.timestamp_str(), weight.weight_lbs))


if __name__ == "__main__":
    try:
        asyncio.run(main())
    except asyncio.CancelledError:
        pass
```
            

Raw data

            {
    "_id": null,
    "home_page": "",
    "name": "wyze-scale-tool",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">=3.8",
    "maintainer_email": "",
    "keywords": "scale,wyze,wyze scale x",
    "author": "",
    "author_email": "Ben Gruver <jesusfreke@jesusfreke.com>",
    "download_url": "https://files.pythonhosted.org/packages/5c/1f/a563219bde07b6af1a41c2962b8850c7c3f4bdc356d7e0c3dcc7a4c37126/wyze_scale_tool-1.0.0.tar.gz",
    "platform": null,
    "description": "# wyze_scale_tool - A utility for reading from and managing a Wyze Scale X\n\nThis is a proof-of-concept python library and stand-alone program\nfor communicating with a Wyze Scale X.\n\n## Installation\n\n```pip install wyze_scale_tool```\n\n## CLI Usage\n\nThe CLI interface supports most of the functionality of the protocol, including creating, modifying and deleting users, \nquerying weights, changing scale settings (units, etc.), and even a live-weighing mode that continuously\nshows the current measured weight from the scale.\n\n### Example Usage\n\nTo get a list of all cached weights of all users on the scale\n\n```wyze_scale_tool weights```\n\nTo explore more of the options that are available, you can use --help\n\n```wyze_scale_tool --help```\n\n## API Usage\n\nThis also exposes an API that can be used to communicate with a Wyze Scale X\n\n```python\nimport asyncio\n\nfrom wyze_scale_tool import WyzeScale\n\nasync def main():\n    mac_address = \"AA:BB:CC:DD:EE:FF\"\n\n    scale = WyzeScale(mac_address)\n\n    async with scale:\n        users = await scale.get_users()\n        for user in users:\n            async for weight in scale.get_weights(user):\n                print(\"User: %s Time: %s Weight: %s\" % (\n                    bytes.hex(user.user_id), weight.timestamp_str(), weight.weight_lbs))\n\n\nif __name__ == \"__main__\":\n    try:\n        asyncio.run(main())\n    except asyncio.CancelledError:\n        pass\n```",
    "bugtrack_url": null,
    "license": "",
    "summary": "A utility for reading from and managing a Wyze Scale X",
    "version": "1.0.0",
    "project_urls": {
        "Homepage": "https://github.com/jesusfreke/wyze_scale_tool"
    },
    "split_keywords": [
        "scale",
        "wyze",
        "wyze scale x"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "a685fbd053fe4091ec02c7f69d91ff7023150335e467a1f3303428cd86ecae71",
                "md5": "eb97271d72f0325bc613fdb86e28b224",
                "sha256": "b5feb523010d77ee23e87f07566f0aa2dbd774676ed5bbdd30d518c91826bea7"
            },
            "downloads": -1,
            "filename": "wyze_scale_tool-1.0.0-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "eb97271d72f0325bc613fdb86e28b224",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.8",
            "size": 13272,
            "upload_time": "2024-02-08T17:37:20",
            "upload_time_iso_8601": "2024-02-08T17:37:20.476465Z",
            "url": "https://files.pythonhosted.org/packages/a6/85/fbd053fe4091ec02c7f69d91ff7023150335e467a1f3303428cd86ecae71/wyze_scale_tool-1.0.0-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "5c1fa563219bde07b6af1a41c2962b8850c7c3f4bdc356d7e0c3dcc7a4c37126",
                "md5": "e96d5487b1da377850e701d3e8d01a15",
                "sha256": "6a9b0ccd4775cdda4d2373e9fc28a4d022533fc378a51b1852d3281e95a71920"
            },
            "downloads": -1,
            "filename": "wyze_scale_tool-1.0.0.tar.gz",
            "has_sig": false,
            "md5_digest": "e96d5487b1da377850e701d3e8d01a15",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.8",
            "size": 10392,
            "upload_time": "2024-02-08T17:37:21",
            "upload_time_iso_8601": "2024-02-08T17:37:21.957369Z",
            "url": "https://files.pythonhosted.org/packages/5c/1f/a563219bde07b6af1a41c2962b8850c7c3f4bdc356d7e0c3dcc7a4c37126/wyze_scale_tool-1.0.0.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-02-08 17:37:21",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "jesusfreke",
    "github_project": "wyze_scale_tool",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "lcname": "wyze-scale-tool"
}
        
Elapsed time: 0.18285s