Skip to main content

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.

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()

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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pyowletapi-2022.11.2.tar.gz (5.5 kB view details)

Uploaded Source

Built Distribution

pyowletapi-2022.11.2-py3-none-any.whl (5.7 kB view details)

Uploaded Python 3

File details

Details for the file pyowletapi-2022.11.2.tar.gz.

File metadata

  • Download URL: pyowletapi-2022.11.2.tar.gz
  • Upload date:
  • Size: 5.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.9.5

File hashes

Hashes for pyowletapi-2022.11.2.tar.gz
Algorithm Hash digest
SHA256 82bea5119ade46c22e5488cd9b562338f5f8782846f8e345dc519748f111ab42
MD5 8eeaba3bbc95b0e895cfa8855aeb998a
BLAKE2b-256 ca56015c97da9fccf6c0f442a8b0d9f0bfcc4470f60c150f533f5bc483d275e9

See more details on using hashes here.

File details

Details for the file pyowletapi-2022.11.2-py3-none-any.whl.

File metadata

File hashes

Hashes for pyowletapi-2022.11.2-py3-none-any.whl
Algorithm Hash digest
SHA256 2a1f0ea854ed7245138eb605a1c0183ec591b7dc772d159fbd8cacfa915741ba
MD5 dffd6b9d8d8740452c07ace85cfc31b5
BLAKE2b-256 3ed05c340ec7be9de5792feba082c65105ad85a8f822c51aa49ee28a0f5a399d

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page