{"id":15020674,"url":"https://github.com/eternal-flame-ad/mh-z19","last_synced_at":"2025-10-26T04:30:51.895Z","repository":{"id":51412391,"uuid":"173111142","full_name":"eternal-flame-AD/mh-z19","owner":"eternal-flame-AD","description":"reading mh-z19 CO2 sensors from raspberry pi","archived":false,"fork":false,"pushed_at":"2019-03-31T15:13:10.000Z","size":10,"stargazers_count":5,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-08T01:35:05.298Z","etag":null,"topics":["air-quality","air-quality-monitor","co2","co2-sensor","mh-z19","raspberry-pi","sensor","uart"],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/eternal-flame-AD.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}},"created_at":"2019-02-28T12:48:19.000Z","updated_at":"2023-08-04T20:33:07.000Z","dependencies_parsed_at":"2022-09-15T01:33:41.442Z","dependency_job_id":null,"html_url":"https://github.com/eternal-flame-AD/mh-z19","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/eternal-flame-AD%2Fmh-z19","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eternal-flame-AD%2Fmh-z19/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eternal-flame-AD%2Fmh-z19/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eternal-flame-AD%2Fmh-z19/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/eternal-flame-AD","download_url":"https://codeload.github.com/eternal-flame-AD/mh-z19/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":238258989,"owners_count":19442510,"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":["air-quality","air-quality-monitor","co2","co2-sensor","mh-z19","raspberry-pi","sensor","uart"],"created_at":"2024-09-24T19:55:25.276Z","updated_at":"2025-10-26T04:30:46.561Z","avatar_url":"https://github.com/eternal-flame-AD.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# mh-z19\n\nReading [mh-z19](https://www.winsen-sensor.com/products/ndir-co2-sensor/mh-z19.html) sensors with wiringpi and golang on raspberry pi.\n\n\n## Example\n\n```golang\npackage main\n\nimport (\n\t\"fmt\"\n\n\tz19 \"github.com/eternal-flame-AD/mh-z19\"\n\t\"github.com/tarm/serial\"\n)\n\nfunc main() {\n\tconnConfig := z19.CreateSerialConfig()\n\tconnConfig.Name = \"/dev/serial0\"\n\n\tport, err := serial.OpenPort(connConfig)\n\tif err != nil {\n\t\tpanic(err)\n\t}\n\tdefer port.Close()\n\tconcentration, err := z19.TakeReading(port)\n\tif err != nil {\n\t\tpanic(err)\n\t}\n\tfmt.Printf(\"co2=%d ppm\\n\", concentration)\n}\n\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feternal-flame-ad%2Fmh-z19","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Feternal-flame-ad%2Fmh-z19","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feternal-flame-ad%2Fmh-z19/lists"}