{"id":15603934,"url":"https://github.com/pcboy/planty","last_synced_at":"2025-07-29T17:15:36.776Z","repository":{"id":146100702,"uuid":"129056632","full_name":"pcboy/planty","owner":"pcboy","description":"Get notifications on slack when you need to water your plants.","archived":false,"fork":false,"pushed_at":"2019-01-07T02:24:58.000Z","size":10,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-12T15:17:35.407Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/pcboy.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-04-11T07:56:58.000Z","updated_at":"2019-01-07T02:24:59.000Z","dependencies_parsed_at":"2023-05-15T01:00:22.418Z","dependency_job_id":null,"html_url":"https://github.com/pcboy/planty","commit_stats":{"total_commits":10,"total_committers":1,"mean_commits":10.0,"dds":0.0,"last_synced_commit":"bef313a2122f993b96a1cc2bb20d4ca077d89b37"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pcboy%2Fplanty","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pcboy%2Fplanty/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pcboy%2Fplanty/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pcboy%2Fplanty/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pcboy","download_url":"https://codeload.github.com/pcboy/planty/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247463609,"owners_count":20942935,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-03T03:22:12.958Z","updated_at":"2025-04-06T09:29:32.850Z","avatar_url":"https://github.com/pcboy.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Planty\n\n# BOM\nYou basically need a moisture sensor like [this one](https://www.aliexpress.com/item/Crowtail-Moisture-Sensor-Module-DIY-Kit-with-3-Pin-Cable-Open-Source-Free-Shipping/32605171440.html?spm=2114.search0104.3.86.233c62e1jlUu0r\u0026ws_ab_test=searchweb0_0,searchweb201602_2_10152_10151_10065_10344_10130_10068_5722815_10324_10342_10547_10343_10340_5722915_10341_10545_5722615_10696_10084_10083_10618_10307_5722715_5711215_10059_308_100031_10103_10624_10623_10622_5711315_5722515_10621_10620,searchweb201603_31,ppcSwitch_5\u0026algo_expid=bdfea328-2821-43f2-b724-253a9e82eccd-12\u0026algo_pvid=bdfea328-2821-43f2-b724-253a9e82eccd\u0026priceBeautifyAB=0)\n\nAnd an esp8266. Code works right now with the Huzzah Esp8266 from Adafruit. You may have to change the SENSOR\\_PIN and SENSOR\\_POWER\\_PIN values in src/main.cpp if you have different pinouts.\nYou have to add your secrets (influxdb username and password to the planty database) in src/secrets.h  \nImportant thing to note. Because these moisture sensors tend to corrode easily you have to be careful for the sensor not to draw current continously. So the sensor is actually attached to a gpio pin (called SENSOR\\_POWER\\_PIN in my source) set to LOW 99% of the time, I set the pin to HIGH when I actually want a reading and set it back to LOW immediatly after to preserve the sensor.\n\n# Upload to esp8266\nInstall [PlatformIO](https://platformio.org/) and then from the root directory do:\n\n  pio run -t upload\n\n# Influxdb\nTo init the database properly:\nmake influx password=whateveryouwant\n\n# Grafana\nFor the nice graphs you can setup grafana to use InfluxDB data.\n\n  docker-compose up -d grafana\n\nThen you should be able to access grafana on http://localhost:4242/\nuser: admin, password: admin\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpcboy%2Fplanty","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpcboy%2Fplanty","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpcboy%2Fplanty/lists"}