Heart rate monitoring using aws-iot,aws-kinesis,amazon-athena and visualize the data using amazon quicksight
you run a script to mimic multiple sensors publishing messages on an IoT MQTT topic, with one message published every second. The events get sent to AWS IoT, where an IoT rule is configured. The IoT rule captures all messages and sends them to Firehose. From there, Firehose writes the messages in batches to objects stored in S3. In S3, you set up a table in Athena and use QuickSight to analyze the IoT data.
Running the heartrate.py python script generates fictitious IoT messages from multiple userid values. The IoT rule sends the message to Firehose, which writes the data out to S3.
The script assumes that it has access to AWS CLI credentials and that boto3 is installed on the machine running the script.
create table using athenaquery.sql after the query completes u see new table being created.
Now, analyze this data using Athena via QuickSight.
Set up a data source
Log into QuickSight and choose Manage data, New data set. Choose Athena as a new data source.
Build an analysis