Circleview / nanismus

project for an arduino controlled watering pump with a website to view the moisture and controll the watering events
GNU General Public License v2.0
1 stars 0 forks source link

Connect the service with Amazon Echo #102

Closed Circleview closed 7 years ago

Circleview commented 7 years ago

February 05, 2017 at 01:23AM

Circleview commented 7 years ago

Prototype done via https://ifttt.com/amazon_alexa and https://zapier.com/app/explore

I trigger the watering event by saying "Alexa, trigger [phrase]". This triggers an ifttt applet that creates an entry into an google spreadsheet.

I constantly monitor this spreadsheet using zapier. Whenever zapier recognizes a new spreadsheet entry it runs an automation.

  1. Check if the soil is "dry". Which means check the MySQL table for the latest moisture entry. If the soil is below a specific value (currently 51% moisture) then proceed. Otherwise stop the zap.
  2. Create an entry into the watering initiation table in the MySQL "database".
  3. This entry is captured from the arduino process and processed.
  4. If the soil is still dry enough a watering event is initiated. This proceeds until the soil is moist again or 60 seconds are elapsed.

I am going to leave the prototype for now since I don't want to invest into alexa skill development.