{"id":20997518,"url":"https://github.com/cdump/miio2prometheus","last_synced_at":"2026-04-29T07:32:26.247Z","repository":{"id":78470036,"uuid":"319065179","full_name":"cdump/miio2prometheus","owner":"cdump","description":null,"archived":false,"fork":false,"pushed_at":"2020-12-06T15:35:27.000Z","size":8,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-20T09:12:30.997Z","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":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/cdump.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":"2020-12-06T15:27:40.000Z","updated_at":"2020-12-06T15:35:30.000Z","dependencies_parsed_at":null,"dependency_job_id":"7d5627b7-4401-4c10-acd8-a70c065bb622","html_url":"https://github.com/cdump/miio2prometheus","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cdump%2Fmiio2prometheus","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cdump%2Fmiio2prometheus/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cdump%2Fmiio2prometheus/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cdump%2Fmiio2prometheus/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cdump","download_url":"https://codeload.github.com/cdump/miio2prometheus/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243410491,"owners_count":20286424,"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-11-19T07:40:02.543Z","updated_at":"2025-12-29T07:58:26.167Z","avatar_url":"https://github.com/cdump.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# miio2prometheus\n\nПример экспорта измерений с устройств Xiaomi в [prometheus](https://prometheus.io/)\n- Монитор качества воздуха Xiaomi Cleargrass CGS1\n- Увлажнитель воздуха Xiaomi Smartmi Zhimi Air Humidifier 2\n\n\nПолучить токены устройств (чтобы заменить `FIXME` в скрипте): [инструкция](https://github.com/jghaanstra/com.xiaomi-miio/blob/master/docs/obtain_token.md)\n\n## Запуск\n- Установить [python poetry](https://python-poetry.org/)\n- Выполнить\n```sh\n$ git clone https://github.com/cdump/miio2prometheus.git\n$ cd miio2prometheus\n$ poetry install\n$ poetry run python3 miio2prometheus.py\n```\n- Метрики доступы на `http://127.0.0.1:5433/metrics`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcdump%2Fmiio2prometheus","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcdump%2Fmiio2prometheus","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcdump%2Fmiio2prometheus/lists"}