Skip to main content

Python driver for Omega iTHX-W and iBTHX-W transmitters.

Project description

omega-tx

NOTE: This is in very early stages of development.

Python ≥3.8 driver and command-line tool for Omega ITHX and IBTHX transmitters.

Installation

python3 pip install omega-tx

Usage

Command Line

omega-tx <MODEL> 192.178.6.12 --port 2000 --timeout 1.0 --unit_system metric

where MODEL is either ibthx or ithx

Python

This driver uses Python ≥3.8's async/await syntax to asynchronously communicate with the transmitter. For example:

import asyncio
from omega_tx import Barometer

async def read_once():
    async with Barometer('the-tx-ip-address', 'the-tx-port') as tx:
        print(await tx.get())

asyncio.run(read_once())

Returns:

{
    "Dewpoint in °C": 10.9,
    "Humidity in %": 35.9,
    "Pressure in mbar/hPa": 996.0,
    "Pressure in mmHg": 747.1,
    "Temperature in °C": 27.3,
}

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

omega-tx-0.2.1.tar.gz (13.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

omega_tx-0.2.1-py3-none-any.whl (14.4 kB view details)

Uploaded Python 3

File details

Details for the file omega-tx-0.2.1.tar.gz.

File metadata

  • Download URL: omega-tx-0.2.1.tar.gz
  • Upload date:
  • Size: 13.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.6.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.8.6

File hashes

Hashes for omega-tx-0.2.1.tar.gz
Algorithm Hash digest
SHA256 3aaafbf8c38c92e822da8a806bfeef3bb0fa836e08acd2443e1cd24fc3d10bf9
MD5 bc88e75a758803adf2364d4cb85ffa0e
BLAKE2b-256 d6ab6e6e7b711cb1502e50846f65ad1f5defe9719c5bbbb26b3fa8c1dac820f3

See more details on using hashes here.

File details

Details for the file omega_tx-0.2.1-py3-none-any.whl.

File metadata

  • Download URL: omega_tx-0.2.1-py3-none-any.whl
  • Upload date:
  • Size: 14.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.6.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.8.6

File hashes

Hashes for omega_tx-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 a177e2d064976efb0abe80bef27cd245177bc08b8c689f6cd623029fcfd6eaee
MD5 e69509286f64899c7b02e01db33b15e0
BLAKE2b-256 c8b1bb32193c3ec5d5a799d346ecaef349449cdb5695855488c7c23e2c474154

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