pyupm_rhusb module

class pyupm_rhusb.RHUSB(device)[source]

Bases: object

UPM API for the Omega RH-USB Temperature and Humidity Sensor.

ID: rhusb

Name: Omega RH-USB Temperature and Humidity Sensor

Category: temp

Manufacturer: omega

Connection: uart

Link:http://www.omega.com/pptst/RH-USB.html This module implements support for the Omega RH-USB Temperature and Humidity Sensor Probe. It connects via an integrated USB cable, and is accessed via a serial port. It is suitable for wall or duct mounting.

C++ includes: rhusb.hpp

getFirmwareID()[source]

string getFirmwareID()

Get the firmware identification string.

The firmware identification

getHumidity()[source]

float getHumidity()

Get the current relative humidity. update() must have been called prior to calling this method.

The last humidity reading

getTemperature(fahrenheit=False)[source]

float getTemperature(bool fahrenheit=false)

Get the current temperature. update() must have been called prior to calling this method.

fahrenheit: true to return the temperature in degrees fahrenheit, false to return the temperature in degrees celsius. The default is false (degrees Celsius).

The last temperature reading in Celsius or Fahrenheit

update()[source]

void update()

Read current values from the sensor and update internal stored values. This method must be called prior to querying any values, such as temperature or humidity.