Introduction

To ensure consistent sensor data collection for the ThriveWell project, I implemented an auto-notification system using AWS Lambda and EventBridge (CloudWatch Scheduler). The goal was to send timely reminders to users who haven't uploaded data recently — specifically those who haven't sent a heartbeat signal within the last 30 minutes.

This system works by:

Through this setup, the system ensures passive sensing is maintained without manual intervention, enhancing both data reliability and user engagement


Implementation Steps

Lambda Function

  1. Upload zip folder including node_modules, package.json, index.js (notification sending logic) (Notification sending & Heartbeat checking functionalities was implemented via AWS Lambda by Rahul, so I just copy & pasted relevent code in the lambda functions)
  2. Set configurations and evironment variables:

IAM Role