{"id":16147958,"url":"https://github.com/stdevpavelmc/dht11_python_opi.gpio","last_synced_at":"2025-07-21T00:34:59.215Z","repository":{"id":101670565,"uuid":"260109097","full_name":"stdevPavelmc/DHT11_Python_OPi.GPIO","owner":"stdevPavelmc","description":"A DTH11 python lib using the OPi.GPIO lib, for armbian and Orange Pi boards","archived":false,"fork":false,"pushed_at":"2020-04-30T04:01:05.000Z","size":14,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-06T21:19:47.259Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/stdevPavelmc.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","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}},"created_at":"2020-04-30T03:57:48.000Z","updated_at":"2020-04-30T04:01:09.000Z","dependencies_parsed_at":"2023-06-07T16:45:33.615Z","dependency_job_id":null,"html_url":"https://github.com/stdevPavelmc/DHT11_Python_OPi.GPIO","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/stdevPavelmc/DHT11_Python_OPi.GPIO","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stdevPavelmc%2FDHT11_Python_OPi.GPIO","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stdevPavelmc%2FDHT11_Python_OPi.GPIO/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stdevPavelmc%2FDHT11_Python_OPi.GPIO/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stdevPavelmc%2FDHT11_Python_OPi.GPIO/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/stdevPavelmc","download_url":"https://codeload.github.com/stdevPavelmc/DHT11_Python_OPi.GPIO/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stdevPavelmc%2FDHT11_Python_OPi.GPIO/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266221462,"owners_count":23894966,"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-10T00:29:07.653Z","updated_at":"2025-07-21T00:34:59.198Z","avatar_url":"https://github.com/stdevPavelmc.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# DHT11 Python library tuned to be used with the OPi.GPIO lib for Orange Pi SBC\n\nThis simple class can be used for reading temperature and humidity values from DHT11 sensor on any of the supported SBC that works with the Orange Pi Boards and OPi.GPIO lib \n\n# Installation\n\nTo install, clone the repository, cd into it, and run:\n\n```\npython3 -m pip install .\n```\n\n# Usage\n\n1. Instantiate the `DHT11` class with the pin number as constructor parameter.\n2. Call `read()` method, which will return `DHT11Result` object with actual values and error code.\n\nFor example:\n\n```python\nimport OPi.GPIO as GPIO\nimport dht11\n\n# initialize GPIO\nGPIO.setwarnings(False)\nGPIO.setmode(GPIO.BCM)\nGPIO.setboard(GPIO.PRIME)    # Select Orange Pi PC board to use\nGPIO.cleanup()\n\n# read data using pin 14\ninstance = dht11.DHT11(pin = 14)\nresult = instance.read()\n\nif result.is_valid():\n    print(\"Temperature: %-3.1f C\" % result.temperature)\n    print(\"Humidity: %-3.1f %%\" % result.humidity)\nelse:\n    print(\"Error: %d\" % result.error_code)\n```\n\nFor working example, see `dht11_example.py` (you probably need to adjust pin for your configuration)\n\n\n# License\n\nThis project is licensed under the terms of the MIT license.\n\n# Retribution\n\nThis lib is based on the lib by [@szazo on github](https://github.com/szazo/DHT11_Python.git) and adapted to work with the OPi.GPIO lib\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstdevpavelmc%2Fdht11_python_opi.gpio","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fstdevpavelmc%2Fdht11_python_opi.gpio","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstdevpavelmc%2Fdht11_python_opi.gpio/lists"}