[Automation] Vitals Trigger and Water Pump Actuation
CSIGildea opened this issue · comments
Need to:
- Setup cron lambda to trigger every X mins (X currently decided to be 30)
- Cron lambda needs to read all plant IDs in dynamo DB and trigger vitals request per plant id.
- Upon vitals message an AWS IoT rule needs to trigger a soil moisture threshold lambda function
- Moisture threshold lambda function needs to trigger water pump actuation when needed for the given plant (prototype actuation already built).
🎉 Completed and video recording added to google drive. 🎉
Some additional AWS IoT Core rule and IAM policy configuration is necessary and completed through the browser in a similar manner as the telegram chatbot. Should be self explanatory rules and policies permissions given the code.
Thresholds used are when <25% soil moisture, trigger water pump for 5 seconds as tested by @mmcatcd.