Skip to content

Latest commit

 

History

History
25 lines (16 loc) · 3.09 KB

README.md

File metadata and controls

25 lines (16 loc) · 3.09 KB

Example Code header

Introduction

PyPI License: MIT Code style: black

This project aims to demonstrates the New Relic Telemetry SDK usage for Python for retrieving Owlet Smart Sock v2/v3 Sensor statistics such as heart rate, oxygen level, etc.

The script's implementation was made possible after others first reversed engineered the android app to understand how the data is recorded and fetched. Credit for the only known login API to work goes to @mbevand for their work in https://github.com/mbevand/owlet_monitor/blob/master/owlet_monitor. This script herein has been significantly enhanced for stability logic and Sock v3 sensor properties.

The script batch sends metrics and events when conditions are met every 10 seconds to New Relic. All credentials including NEW_RELIC_INSERT_KEY OWLET_USER, OWLET_PASS, and OWLET_REGION must be passed via environment variables. Log messages are printed to disk in INFO level fasion.

Technical details

Many details (app id/secret, property names) have been reverse-enginered from Owlet's Android app.

You can import the "dashboard.json" directory to your new relic account to see the chart and metics.

dashboard