Skip to content

andrew-lozoya/owletsock-newrelic

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages