Skip to content

About

Library to communicate with OMRON connect API

Resources

Stars

2 stars

Watchers

1 watching

Forks

Latest commit

 

History

14 Commits

Folders and files

Repository files navigation

Build, test and publish

omron-connect-api

Library to communicate with OMRON connect API.

Only the blood pressure readings are provided in the current version.

Supported country codes:

  • North america: CA, US

Feel free to submit a PR to add support for other country codes.

Usage

import aiohttp
import asyncio
import os

from omron_connect_api import OmronConnectApi


async def run():
    async with aiohttp.ClientSession() as session:
        api = OmronConnectApi(os.environ['EMAIL'], os.environ['PASSWORD'], os.environ['COUNTRY_CODE'], session)
        blood_pressure_readings = await api.async_get_blood_pressure_readings()
        print(blood_pressure_readings)


asyncio.run(run())

Build and test locally

make venv
source .venv/bin/activate
make test
make build

Logging

Enable debug level to log API requests and responses.

import logging
logging.basicConfig(level=logging.DEBUG)

Release version

make release bump=patch|minor|major

About

Library to communicate with OMRON connect API

Resources

Stars

2 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages