Resolve: Implement Lambda: predict_air_quality
Implemented Lambda to predict air quality.
Tested by setting up the DynamoDB table with the following measurements:
- Measurement 1:
- PK: station#station_1
- SK: measurement#1704631200
- airQuality: 0.1
- Measurement 2:
- PK: station#station_1
- SK: measurement#1704631800
- airQuality: 0.2
- Measurement 3:
- PK: station#station_1
- SK: measurement#1704632400
- airQuality: 0.3
- Measurement 4:
- PK: station#station_1
- SK: measurement#1704633000
- airQuality: 0.4
- Measurement 5:
- PK: station#station_1
- SK: measurement#1704633600
- airQuality: 0.5
Executing Lambda with following input data:
- predictFor: 1704634200
- stationId: "station_1"
Lambda creates following entry in table:
- PK: station#station_1
- SK: prediction#1704634200
- airQuality: 0.6000000000349245965480804443359375
Closes #24 (closed)