datalogd.plugins.sensoridentifierdatafilter module

class datalogd.plugins.sensoridentifierdatafilter.SensorIdentifierDataFilter(sinks=[], rules='sensoridentifier_rules.json')[source]

Bases: DataFilter

NOT_PRESENT = 'not present'

Message for when a sensor has never sent any data.

NO_UPDATES = 'no updates since {}'

Message for when a sensor has previously sent data, but hasn’t updated within the expected timeframe.

OUT_OF_RANGE = 'out of range'

Message for when a sensor value has exceeded it’s expected range.

receive(data)[source]

Accept the provided data, and assign identifier and additional properties based on the matching rules.

Parameters:

data – Data to filter.