meas_simple demonstrates some simple custom measurements

meas_simple.py

meas_simple.amp_temp(inval)

measures amp temperature

meas_simple.batt_load()

Reads battery voltage under load Returns -999 if no such reading

Returns:battery voltage under load.
Return type:float
meas_simple.dew_point(inval)

Computes dew point based on relative humidity and air temperature. It is assumed that two other measurements have been setup, one called AT and another called RH. This script should be associated with a third measurement that is setup as a Manual Entry. Manual Entry is used because this measurement is based on the inputs of two other sensors rather than the input associated with this measurement.

Parameters:inval – this value is ignored
Returns:dew point
Return type:float
meas_simple.temp_compensation(inval)

compensates the value based on temperature

meas_simple.twelve_more(inval)

returns 12+input