Source : datalogger

source code: datalogger

class dhtioc.datalogger.DataLogger(ioc_prefix, path=None)[source]

Record raw values in data files.

PARAMETERS

ioc_prefix
str : EPICS IOC prefix
path
str : Base directory path under which to store data files. (default: ~/Documents/dhtioc_raw)
create_file(fname)[source]

Create the data file (and path as necessary)

PARAMETERS

fname
str : File to be created. Absolute path.
get_daily_file(when=None)[source]

Return absolute path to daily file.

PARAMETERS

when
obj : Path will be based on this instance of datetime.datetime. (default: now)
record(humidity, temperature, when=None)[source]

Record new values of humidity & temperature.

Create new file and path as needed.

PARAMETERS

humidity
float : Relative humidity, %.
temperature
float : Temperature, C.
when
obj : datetime.datetime of these values. (default: now)