Skip to content
/ omega-tx Public

Python driver and command line tool for Omega transmitters.

License

Notifications You must be signed in to change notification settings

numat/omega-tx

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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,
}

About

Python driver and command line tool for Omega transmitters.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages