Skip to content

HewlettPackard/python-rhusb

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

34 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

python-rhusb

This library provides a pure Python interface to the Omega RH-USB temperature/humidity sensor.The device includes a USB-Serial interface which is used to send commands and receive input from the device.

More information on this device is available at http://www.omega.com/pptst/RH-USB.html

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.

Prerequisites

The python-rhusb library uses the pyserial library.

pip install pyserial

Installing

From Source:

$ git clone https://github.com/HewlettPackard/python-rhusb.git
$ cd python-rhusb
$ python setup.py install --user # to install in the user directory (~/.local)
$ python setup.py install        # to install globally

Using PIP:

$ git clone https://github.com/HewlettPackard/python-rhusb.git
$ cd python-rhusb
$ pip install .

From Pypi:

TBD

Running the Sample Script

C:\Python36-32\python.exe sample.py
Platform: Windows
Device: COM4

PA: [b'42.1,74.1']
C: [b'23.4 C']
F: [b'74.1 F']
H: [b'42.1 %RH']

Starting 10 periodic readings every 1 seconds
--> b'42.1,74.1'
--> b'42.1,74.1'
--> b'42.1,74.1'
--> b'42.1,74.1'
--> b'42.1,74.1'
--> b'42.1,74.1'
--> b'42.1,74.1'
--> b'42.1,74.1'
--> b'42.1,74.1'
--> b'42.1,74.1'

Running the tests

TBD

Built With

TBD

Contributing

Please read CONTRIBUTING.md for details on our code of conduct, and the process for submitting pull requests to us.

Versioning

We use SemVer for versioning. For the versions available, see the tags on this repository.

Authors

  • Dave Brookshire - Initial work - HPE

License

This project is licensed under the Apache 2.0 License- see the LICENSE.md file for details

Acknowledgments

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages