Skip to content

fauzymadani/aws-mqtt

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Aws MQTT Practice

this is for learning purpose only.

Case Study II (Building a Simple IoT System)

A farmer wants to monitor the temperature in the plantation environment (up to the real time) You are required to:

  1. Create an MQTT System to receive data from sensors (sensor simulation using an application on a local computer)
  2. Received data is stored in DynamicDB
  3. The final data will be served in JSON form and visualized in HTML that can be accessed from a specific URL

Service Used

  • Amazon DynamoDB
  • Amazon IoT Core
  • Amazon EC2

Tools

  • nginx
  • php-fpm
  • pip/pip3
  • python/python3
  • paho-mqtt
  • boto3
  • python3/python venv
  • composer

Installation

git clone https://github.com/fauzymadani/aws-mqtt.git
cd aws-mqtt
composer require aws/aws-sdk-php
sudo mv mqtt_listener.service /etc/systemd/system/
sudo systemctl daemon-reexec
sudo systemctl daemon-reload
sudo systemctl enable mqtt_listener.service
sudo systemctl start mqtt_listener.service

move to /var/www/html/:

sudo mv index.html /var/www/html/
sudo mv data.php /var/www/html/

and don't forget to start and configure nginx first.

About

practice for AWS IoT.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published