Goal is to read current and voltage on a houshold AC circuit via an ADS1115 I2C ADC, rendering a simple UI on a textual multi-line display, finally logging data to an AWS lambda function for historical analysis plus a web UI.
Contains libraries for reading the sensors, updating the text display, and pushing to AWS IoT via MQTT.
Download certificates for the device to hardware/certificates
- ADS 1115 - I2C ADC
- I2C Multiline Textual Display
Contains code to create DynamoDB tables, configure IoT, and upload Lambda functions, etc.
Run aws configure
and enter the access key for an IAM user with the necessary permissions.
- Missing Data
- For every hour, identify <60 minute entries, interpolate and insert.
- Run every hour for prior two hours
- Alarm if >6(?) missing
- Make app boot on Pi.
- Have API Gateway spit out static HTML/JS from S3 and AJAX response from Lambda to render dashboard.
- Hardware client - batch into 5min uploads. Flush on keyboardInterrupt.