/soggy-client

Controller to water plants. Written in Javascript with Johnny Five for Arduino.

Primary LanguageJavaScriptMIT LicenseMIT

Planty :: The Soggy🌱 - Client

  • reads hygrometer
  • starts water pump
  • sends mails
  • sends data to API
  • optimize hygrometer corrosion by only adding power when measuring
  • add ultrasonic water level measurement

Configuration

Environment Variables

API_ENDPOINT : Backend URL
WATERING_TRIGGER_VALUE : 1024 (dry) - 200 (in water)
WATERING_TIME : in MS (5000 is a good value)
MEASURE_INTERVAL : How often should be measured in ms (the more often you measure, faster corrosion on Hygro)
PLANT_ID : From API
WATER_TANK_DEPTH: in mm
MIN_WATER_LEVEL : in mm

send mail additionaly to api call
*gmail account required

MAIL_USER: 'you@gmail.com' 
MAIL_PASS: 'yourpassword'
MAIL_RECEIVER: 'yourPlant@your-domain.com'

Pin Setup

Hygro:

Hygro {pin: 'A0'}

Power {pin: 3}

Water

Pump {pin: A1}

Proximity:

Pin: {pin: 2}

Todo

  • Create Authentification Stuff
  • Create initialization Script
  • Create secure crash system // Shut down all pins
  • Create Script to connect Soggy automatically to Web-Server

Parts

Tutorials

http://www.instructables.com/id/Automatically-water-your-small-indoor-plant-using-/

https://diyhacking.com/ultrasonic-arduino-water-level-indicator/

Contribute

If you like please contribute... Any help appreciated :)

alt text


Created with ❤️ by Jan Fanslau