/SENG-5130

Primary LanguageJavaScript

Overview

This is a quick application I made that utilizes Express.js + Node.js + postgreSQL.

High-Level Description

  1. Reads moisture-sensor readings from Pub/Sub subscription
  2. Stores them in postgreSQL
  3. For each input event, evaluates if a watering event needs to be triggered. (pretty primitive TBH)
  4. If a watering event should be triggered, utilize Dev's Particle Cloud Basic Auth to get OAuth2 Access Token to Particle Cloud, then publish a toggle on event

Local setup

Ha!

  1. Have your Argon publishing to Particle Cloud + have Particle Cloud Integration to GCP Pub/Sub topic

  2. Start postgreSQL

  3. Start event-hub

  4. ????

  5. Profit

GKE setup