Skip to main content

Owlet baby monitor API wrapper

Project description

Introduction

Inspiration and API reverse engineering taken from various projects:

https://github.com/BastianPoe/owlet_api

https://github.com/mbevand/owlet_monitor

Install

To install via pip run command

pip install pyowletapi

To do

Tidy up exception logging

Create test routines

Use

import the api and sock objects

from pyowletapi.api import OwletAPI
from pyowlet.sock import Sock

create an api object passing your region, username and password, the OwletAPI will also take a aiohttp session as a keyword argument

api = OwletAPI('europe', username, password)

you can then authenticate against the Owlet servers using this object and create a list of sock objects

await api.authenticate()
socks = {device['device']['dsn']: Sock(api, device['device']) for device in devices}

to get current reading from sock call the update_properties function on each sock object

device.update_properties()

This will return a dictionary, the key 'raw_properties' contains the raw response as a dict and the 'properties' key is a more cut down dict version of the response showing only the most relevant data and the 'tokens' key will return a dictionary if the api tokens have changed since the last call

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

Uploaded Source

File details

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

File metadata

  • Download URL: pyowletapi-2025.4.5.tar.gz
  • Upload date:
  • Size: 12.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.6

File hashes

Hashes for pyowletapi-2025.4.5.tar.gz
Algorithm Hash digest
SHA256 04d2dcc97c6d80a8c99ded876160de374ac7bf19d04b1ddbafb3b93cf286bad4
MD5 df25aee850cc0d65cd07af85570bad8b
BLAKE2b-256 afc6e0e2495a42db64015d42895a56972ec577c368742f09e4d6ae9aa5d9da21

See more details on using hashes here.

Supported by

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