This is a quick application I made that utilizes Express.js + Node.js + postgreSQL.
- Reads moisture-sensor readings from Pub/Sub subscription
- Stores them in postgreSQL
- For each input event, evaluates if a watering event needs to be triggered. (pretty primitive TBH)
- 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
Ha!
-
Have your Argon publishing to Particle Cloud + have Particle Cloud Integration to GCP Pub/Sub topic
-
Start postgreSQL
-
Start event-hub
-
????
-
Profit