pi_weather.api.agg_models module¶
Logic to merge 2 sensors data into one aggregate reading
- pi_weather.api.agg_models.get_latest_aggregate_reading(data_bmp390=None, data_stcc4=None)[source]¶
Function to merge 2 inputs readings into an aggregate reading
- Parameters:
data_bmp390 (
LatestSensorReading|None) – Latest reading data for BMP390data_stcc4 (
LatestSTCC4SensorReading|None) – Latest reading data for STCC4
- Returns:
Agg readings
- Return type: