{"id":23891623,"url":"https://github.com/stephendade/esp_influx","last_synced_at":"2026-04-20T04:06:12.659Z","repository":{"id":148321016,"uuid":"540207084","full_name":"stephendade/esp_influx","owner":"stephendade","description":"Networked ESP32 and LoRA boards with DHT22 sensors sending data to an InfluxDB instance","archived":false,"fork":false,"pushed_at":"2022-09-30T02:00:38.000Z","size":486,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-02-23T05:25:39.469Z","etag":null,"topics":["dht22sensor","esp32","lora","ttgo"],"latest_commit_sha":null,"homepage":"","language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/stephendade.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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":"2022-09-22T23:34:53.000Z","updated_at":"2024-02-16T21:29:42.000Z","dependencies_parsed_at":"2023-05-25T16:15:45.574Z","dependency_job_id":null,"html_url":"https://github.com/stephendade/esp_influx","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/stephendade/esp_influx","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stephendade%2Fesp_influx","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stephendade%2Fesp_influx/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stephendade%2Fesp_influx/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stephendade%2Fesp_influx/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/stephendade","download_url":"https://codeload.github.com/stephendade/esp_influx/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stephendade%2Fesp_influx/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32032306,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-20T00:18:06.643Z","status":"online","status_checked_at":"2026-04-20T02:00:06.527Z","response_time":94,"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":["dht22sensor","esp32","lora","ttgo"],"created_at":"2025-01-04T13:00:19.336Z","updated_at":"2026-04-20T04:06:12.654Z","avatar_url":"https://github.com/stephendade.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"esp_influx\n==========\n\nThis repository contains code for running a small ESP32 LoRA network of DHT22 temperature and humidity sensors, which push data to a local InfluxDB installation.\n\nThis does not require a LoRA gateway or concentrator. One of the ESP32 LoRA modules acts as a receiver for all other \"nodes\".\n\nHardware\n--------\n\nThis has been tested with LILIGO ESP32 LoRA (https://www.aliexpress.com/item/32872078587.html?spm=a2g0o.store_pc_groupList.8148356.15.5bd1391cdaYoBA\u0026pdp_npi=2%40dis%21AUD%21AU%20%2426.56%21AU%20%2426.56%21%21%21%21%21%402100bdec16645014319921715e42bf%2112000022840374525%21sh) modules.\n\nThe DHT sensor is connected to IO13 (and the 3.3V and GND) ports on the ESP32.\n\nA small box is recommended for waterproofing if using outside:\n\n![Alt text](images/node_inside.jpg?raw=true \"Inside a node box\")\n![Alt text](images/nodes.jpg?raw=true \"All the node boxes\")\n\nSoftware\n--------\n\nThe overall architecture is:\n- LoRA Nodes poll attached DHT22 sensors for temperature and humidity readings\n- LoRA Nodes send this information (plus module voltage and unique device ID) via (encrypted) LoRA to a Main Node\n- The Main Node decrypts the readings, adds in the RSSI value and onsends this to a local InfluxDB installation via Wifi.\n\nThe Lora Nodes are configured for very low power operation. They will read the DHT22 sensors once per minute, going into a deep sleep mode in between readings. A typical healthy 18650 battery should give 2 years operation. See ``ESP32 Power.ods`` for the calculations.\n\nThe InfluxDB install can be on a Raspberry Pi or similar. The InfluxDB IP address, database name, username and password can be configured in ``TTGO_LoraMain``. Grafana is recommended for data visualisation:\n\n![Alt text](images/grafana1.png?raw=true \"Grafana View 1\")\n![Alt text](images/grafana2.png?raw=true \"Grafana View 2\")\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstephendade%2Fesp_influx","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fstephendade%2Fesp_influx","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstephendade%2Fesp_influx/lists"}