Metadata-Version: 2.4
Name: wittiot
Version: 1.0.39
Summary: WSView Plus support
Home-page: https://github.com/PPw096/wittiot
Author: PPw096
Author-email: 1225835565@qq.com
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Requires-Python: >=3.8
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: aiohttp
Requires-Dist: requests
Dynamic: author
Dynamic: author-email
Dynamic: classifier
Dynamic: description
Dynamic: description-content-type
Dynamic: home-page
Dynamic: license-file
Dynamic: requires-dist
Dynamic: requires-python
Dynamic: summary

# Wittiot

Python library for accessing Wittiot / WSView Plus weather station data via local LAN API.

## Installation

```bash
pip install wittiot
```

## Usage

```python
import asyncio
import logging
from aiohttp import ClientSession
from wittiot import API

async def main():
    # Replace with your device IP
    HOST = "192.168.1.110"
    
    async with ClientSession() as session:
        api = API(HOST, session=session)
        
        try:
            # Get all sensor data
            data = await api._request_loc_allinfo()
            print(f"Data from {HOST}:")
            print(data)
        except Exception as e:
            print(f"Error: {e}")

if __name__ == "__main__":
    logging.basicConfig(level=logging.INFO)
    asyncio.run(main())
```

## Supported Devices

- GW1100
- GW2000
- WN1900
- And other Ecowitt/Wittiot devices supporting local API
