Owlet baby montior API wrapper
Project description
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. But the intention is that this library will always be usable standalone
Install
To install via pip run command
pip install pyowletapi
To do
Tidy up exception logging
Create test routines
Use
import the base Olwet object
from pyowletapi.owlet import Owlet
create an Owlet object passing your region, username and password
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)
await owlet.authenticate()
devices = await owlet.devices()
to get current reading from sock call the update_properties function on each sock object
device.update_properties()
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.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file pyowletapi-2023.5.4.tar.gz
.
File metadata
- Download URL: pyowletapi-2023.5.4.tar.gz
- Upload date:
- Size: 2.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a581e68ebf2b458daf8128750ad8fc8f62c671800fff12b68348cfbddcaac4b6 |
|
MD5 | b1b4b216c89fd538a25876e266dd67c3 |
|
BLAKE2b-256 | a26964fc61e6907bdca170d3e32199a5a291f6fd17d0198f24bc8c7534cef17c |