NYUCC2020 / ExpenseTrackerApp

0 stars 0 forks source link

Receive fake IoT device message via AWS #14

Closed iamnwi closed 4 years ago

iamnwi commented 4 years ago

Assumptions:

iamnwi commented 4 years ago

I set up a new project for this IoT feature. In this way, we can avoid re-deploying all components of our App every time a single component is changed. IoT feature project here: https://github.com/NYUCC2020/ExpenseTrackerIoT

What I have did:

  1. Deployed a MQTT server for our APP
  2. "Home Device" topic messages sent to our MQTT server will be forward to AWS IoT
  3. Deployed a "Home Device" topic Subscriber that collects and processes all home device messages and then store them to our DB
  4. A simple fake-device script to publish "Home Device" topic message to our MQTT server
  5. Deploy this feature into K8s using Continuous Delivery(Build and Deploy whenever there're changes)

Upcoming:

  1. Improve and deploy the fake-device script to the Cloud so that it publishes "Home Device" topic messages to our MQTT server periodically

Need help:

  1. We need to device_id for such device that sending message to our MQTT. Now I just pick one for the fake-device. However, we need to set up a way to map device_id with user_id so that user can and only can see their device data
  2. A UI to visualize the device usage data
  3. A UI to let user register their device(pick device_id by themselves)