Skip to content

ksdenisova/Plower

Repository files navigation

Plower

Moisture Monitoring System

A full-stack React + Node.js application allows you to monitor the humidity level of your plants.

The Plower app is running on Raspberry Pi, which communicates with moisture sensors.

IMG_0859

Tech Stack

Hardware

How to Setup App

To set up Plower, run the following commands in your Terminal:

git clone [email protected]:ksdenisova/Plower.git

cd Plower

How to Build

To build the Plower app, run the following commands in the Terminal:

cd client

npm run build

How to Setup Hardware

  • Set up Raspberry Pi 3 with balenaOS using this official guide. It is important to choose a device type that supports 64bit OS to be able to use MongoDB.

  • Connect Sensors to ADS1115 using this diagram:

Wiring-Diagram

  • Install ADS1115 to Raspberry Pi.

After all setups, your hardware should look like this:

2022-04-12 09 37 49

To check if Raspberry Pi sees the ADS1115, run the following command in the Balena Terminal:

i2cdetect -y 1

If everything is set up correctly, you will see the following (48 address set by default):

CleanShot 2022-04-10 at 15 13 49@2x

How to Calibrate Sensors

You should calibrate sensors when they dry first.

Open the Terminal in Balena Cloud and run the following command:

npm start calibrate dry

Then place sensors in water and run the following command:

npm start calibrate wet

How to Run Plower

Open Balena Dashboard, copy local/global IP Address or public device URL (if enabled), and open it in your browser.

How to Run Tests

To run the Unit tests for the React app, run this command in the Terminal:

npm test

How to Deploy

To deploy the Plower app to Raspberry Pi locally, run this command in the Terminal:

balena push Plower

How to Use Plower

  • The Plower app's home page displays the list of your plants.
  • Last added plants displayed first.
  • The humidity updates when the app starts and every half an hour.
  • The color of the humidity bar depends on the humidity level.
  • When the last updated humidity increased by 10 % and more, the last watered date and time will be updated.
  • To create a new plant, click on + button, enter the name of the plant, and press Enter/click +.
  • If there are available sensors, the first one will be assigned to your plant.
  • Place the assigned sensor in your plant's pot.

Home Page

CleanShot 2022-04-13 at 17 00 04@2x

Add Plant

CleanShot 2022-04-13 at 16 58 25@2x

Usefull Resources

About

Moisture Monitoring System

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published