Giter VIP home page Giter VIP logo

esp-moisture-notifier's Introduction

esp-moisture-notifier (v2)

A simple platformio project to trigger a notification (through Discord) if my precious plant's moisture sensor reads low values. Measurements gets logged into a Google Spreadsheet too (every 12 hours by default - but this is configureable). Proper https useage not yet implemented.

Dropped IFTTT from the original version because of their changes in the free plan. You can find the backup of the original as a release package in this repo.

Hardware is a D1-mini, with a capacitive soil moisture sensor, supplied by a 18650 power cell. I made a simple d1 mini shield for the parts to connect to.

Sensor connections

Discord/GoogleSheets

Discord has a really good open api for messages and lately it's becoming my go-to notifyer. You just need to generate a channel webhook and add it to the local.h file as the pattern in main.cpp shows. Intro-to-webhooks

With some research I found a way to append a Google Spreadsheet with simple rest calls. It's needs some setup in the Google side to work, but in my opinion this is a really great utility that I will totally use in future project too. You can find a tutorial here. I just got rid of the uneccessary parts from the example GScript, and it works like a charm.

So basically both of the events is a simple rest api call without auth, data mod, etc to reduce the worktime of the esp. (Like before, with the IFTTT, but it's better.)

calibration

Calibration is key when using a moisture sensor. The values differ based on many aspects (soil denseness, saltness, sensor position, depth etc.). Be sure to find out the proper value for the DRYNESS_ALARM_VALUE before you trust the plant's life on the system.

PRO TIP: you can make the sensor's pcb sides, and smds waterproof with nail polish. | You can extend the battery's lifespan by removing the LED from the microcontroller.

Update - 2022.11.13

The rework/redesign was really successful. The original version drained the 18650 cell with 8 hour measurement cycles in about a month. It really was not optimal...
The new version was able to go a whole year with 4 hour measurement cycles from the same 18650 battery cell. So, much longer operating time, with more frequent measurements. (Its still not drained after 13 months when writing this, we will see how long it can go.)

esp-moisture-notifier's People

Contributors

danielbene avatar

Stargazers

 avatar

Watchers

 avatar  avatar

esp-moisture-notifier's Issues

Separate power manager lib

The power manager class is modularized/generalized on purpose for reusability. It sould get separated from this project into a lib.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.