raspyre.sensors package

Submodules

raspyre.sensors.mockup module

A mockup sensor to test framework functionality. It returns random values. The only configurable parameter is “sps” that defines the samples per second the sensor produces. It implements the Sensor interface provided by the raspyre framework and can be used as a reference.

class raspyre.sensors.mockup.Mockup(sps)

Bases: raspyre.sensor.Sensor

getAttributes()
getConfig()

Returns a dictionary of all configuration parameters the sensor has with their values.

getRecord(*args)

Returns a Record object containing the requested values. The Parameters to the function specify the attributes that will be measured.

sensor_attributes = {'x': ('g', 'd'), 'y': ('g', 'd'), 'z': ('g', 'd')}
updateConfig(**kwargs)

Pass a list of parameter names and values. The parameters of the sensor will be changed accordingly

raspyre.sensors.mockup.build(**kwargs)