{"id":18812788,"url":"https://github.com/machv/esp8266-irrigator","last_synced_at":"2026-05-09T05:32:10.948Z","repository":{"id":153512377,"uuid":"185956325","full_name":"machv/esp8266-irrigator","owner":"machv","description":"Simple irrigation controller based on ESP8266.","archived":false,"fork":false,"pushed_at":"2020-04-26T09:06:45.000Z","size":9061,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-10-26T10:51:42.970Z","etag":null,"topics":["esp8266","mqtt"],"latest_commit_sha":null,"homepage":"","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/machv.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":"2019-05-10T09:06:32.000Z","updated_at":"2020-04-26T09:06:47.000Z","dependencies_parsed_at":"2023-05-28T02:00:13.807Z","dependency_job_id":null,"html_url":"https://github.com/machv/esp8266-irrigator","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/machv/esp8266-irrigator","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/machv%2Fesp8266-irrigator","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/machv%2Fesp8266-irrigator/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/machv%2Fesp8266-irrigator/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/machv%2Fesp8266-irrigator/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/machv","download_url":"https://codeload.github.com/machv/esp8266-irrigator/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/machv%2Fesp8266-irrigator/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32808416,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-08T08:22:46.396Z","status":"online","status_checked_at":"2026-05-09T02:00:06.633Z","response_time":123,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["esp8266","mqtt"],"created_at":"2024-11-07T23:35:06.301Z","updated_at":"2026-05-09T05:32:10.910Z","avatar_url":"https://github.com/machv.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Simple Irrigator controller\n\nHW Parts used:\n\n  - NodeMCU v0.9\n  - Two Channel IIC I2C Logic Level Converter Bi-Directional Module 5V to 3.3V NEW\n  - Full Port Brass DN20 Normally Open Normally Close Valve AC/DC9V-24V BSP/NPT 3/4'' Electric Shut Off Valve For Home Water (https://www.aliexpress.com/item/AC-DC9-24V-3-4-full-port-brass-electric-ball-valve-normal-open-or-normal-closed/886318623.html)\n  - G1/2\"/G3/4\" Copper Hall Effect Liquid Water Flow Sensor Switch Flowmeter Meter J [G 3/4\"]  \n  - 5V Two 2 Channel Relay Module With optocoupler For PIC AVR DSP ARM Arduino\n\n## MQTT\n\n| Variable | Example | Meaning | \n| -------- | ------- | ------- |\n| `MQTT_PREFIX` | `zavlazovac/` | Left prefix appended to relay's channel, configurable in web interface. |\n| `RELAY_INDEX` | `1` | Index of the relay, numbering starts from 1 |\n\n### LWT channel\n\nLast will topic is used to detect availability, messages sent there are with retain tag enabled.\n```\n{MQTT_PREFIX}/status\n```\n| Payload | Value | Retain |\n| ------   | --- | -- |\n| Available     | `Online` | yes |\n| Not Available | `Offline` | sent as LTW |\n\n### State updates channel\n\nState topic publishes current status of the relays.\n\n```\n{MQTT_PREFIX}/state/{RELAY_INDEX}\n```\n\n| Payload | Value | Retain |\n| ------   | --- | -- |\n| Running     | `1` | no |\n| Not running | `0` | no |\n\n### Commands channel\n\nCommand topic accepts these state request changes and accepts both string `ON`, `OFF` or interger `1`, `0`.\n\n```\n{MQTT_PREFIX}/command/{RELAY_INDEX}/power\n```\n\n| Payload | Value |\n| ------   | --- |\n| Running     | `1` or `ON`  |\n| Not running | `0` or `OFF` |\n\n### Flow meter channels\n\nFlow meter updates are sent in format:\n\n```\n{MQTT_PREFIX}/{RELAY_INDEX}/{METRIC}\n```\n\nwhere `{METRIC}` is from:\n\n| Metric | Type | Unit |\n| ------  | ---  | --- |\n| `currentFlow` |  `float`  | L/s   |\n| `totalFlow` | `float` | ml |\n\n### VS Code tips\n\nYou can run your task through Quick Open (\u003ckbd\u003eCtrl\u003c/kbd\u003e+\u003ckbd\u003eP\u003c/kbd\u003e) by typing `task`, Space and the command name.\n\nBuild a solution using \u003ckbd\u003eCtrl\u003c/kbd\u003e+\u003ckbd\u003eAlt\u003c/kbd\u003e+\u003ckbd\u003eB\u003c/kbd\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmachv%2Fesp8266-irrigator","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmachv%2Fesp8266-irrigator","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmachv%2Fesp8266-irrigator/lists"}