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. 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


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.3.tar.gz (8.1 kB view details)

Uploaded Source

Built Distribution

pyowletapi-2022.11.3-py3-none-any.whl (8.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pyowletapi-2022.11.3.tar.gz
  • Upload date:
  • Size: 8.1 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.3.tar.gz
Algorithm Hash digest
SHA256 6bbdec100ccd980f6e0f9c0ec8cf1d4b8209f2855820d8d60599804d0a71dc88
MD5 5a05e34bf58cf9ec2939671e896ac42a
BLAKE2b-256 7ce307006e1c4625a6527b210273404e00803cef27ddeb01fb7bbd0747f1cb6a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pyowletapi-2022.11.3-py3-none-any.whl
Algorithm Hash digest
SHA256 799445438e7991a2c33938fdbaccae4869ff98371fa3c18aeac849c01fb1b0a0
MD5 a74cf53efdffbb243e6d5be8311933a4
BLAKE2b-256 4a7ec8a1522821a208b175f86571ed1117217dc249e391e53fa92b0b423ecf11

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