Metadata-Version: 2.1
Name: pyowletapi
Version: 2022.11.2
Summary: Owlet baby montior API wrapper
Home-page: https://github.com/RyanClark123/pyowletapi
Author: Ryan Clark
Keywords: owlet,api,baby
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3.9
Requires-Python: >=3.9
Description-Content-Type: text/markdown

# Introduction

First pass at creating a wrapper for the Owlet baby monitor api, this currently only supports the sock v3 as I do not have a v2 to test with

inspiration and API reverse engineering taken from various projects:

https://github.com/BastianPoe/owlet_api
https://github.com/mbevand/owlet_monitor


End goal is to create a homeassistant integration using this API.


## To do
Tidy up exception logging
Create test routines

## Use
import the base Olwet object 

```python
from pyowletapi.owlet import Owlet
```

create an Owlet object passing your region, username and password

```python
owlet = Owlet('europe', username, password)
```

you can then authenticate against the Owlet servers using this object and get a list of devices (as sock objects)

```python
await owlet.authenticate()
devices = await owlet.devices()
```

for each object call `device.update_properties()` to get the current readings from the sock, this will return a tuple, the first element being the raw response as a dict and the second element is a more cut down dict version of the response showing only the most relevant data.
