{"id":22323413,"url":"https://github.com/pvainio/scd30","last_synced_at":"2025-06-24T07:38:53.325Z","repository":{"id":87510758,"uuid":"423411868","full_name":"pvainio/scd30","owner":"pvainio","description":"Sensirion SCD30 CO2 sensor I2C driver","archived":false,"fork":false,"pushed_at":"2022-10-10T20:06:21.000Z","size":21,"stargazers_count":4,"open_issues_count":0,"forks_count":2,"subscribers_count":2,"default_branch":"main","last_synced_at":"2024-11-30T04:06:10.471Z","etag":null,"topics":["co2","co2-sensor","i2c","i2c-device","i2c-sensors","iot","scd30","sensirion","sensirion-scd30"],"latest_commit_sha":null,"homepage":"","language":"Go","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/pvainio.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}},"created_at":"2021-11-01T09:45:50.000Z","updated_at":"2024-10-10T20:04:50.000Z","dependencies_parsed_at":"2023-10-01T05:00:54.180Z","dependency_job_id":null,"html_url":"https://github.com/pvainio/scd30","commit_stats":{"total_commits":5,"total_committers":2,"mean_commits":2.5,"dds":"0.19999999999999996","last_synced_commit":"c040df715e2b0ae69be99ba709b4e9a811a50561"},"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pvainio%2Fscd30","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pvainio%2Fscd30/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pvainio%2Fscd30/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pvainio%2Fscd30/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pvainio","download_url":"https://codeload.github.com/pvainio/scd30/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":228024074,"owners_count":17857628,"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":["co2","co2-sensor","i2c","i2c-device","i2c-sensors","iot","scd30","sensirion","sensirion-scd30"],"created_at":"2024-12-04T01:10:28.842Z","updated_at":"2024-12-04T01:10:29.311Z","avatar_url":"https://github.com/pvainio.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Sensirion SCD30 CO2 sensor i2c driver module for Golang\n\n## Overview\n\nWith this module Sensirion SCD30 CO2 sensor can be accessed throug i2c bus.\nImplemented:\n- starting and stopping continuous measurements\n- checking for ready measurement\n- reading ready measurement\n- getting and setting temperature compensation\n\n## Example\n\n```go\npackage main\n\nimport (\n\t\"log\"\n\t\"time\"\n\n\t\"github.com/pvainio/scd30\"\n\t\"periph.io/x/conn/v3/i2c/i2creg\"\n\t\"periph.io/x/host/v3\"\n)\n\nfunc main() {\n\tif _, err := host.Init(); err != nil {\n\t\tlog.Fatal(err)\n\t}\n\n\tbus, err := i2creg.Open(\"\")\n\tif err != nil {\n\t\tlog.Fatal(err)\n\t}\n\tdefer bus.Close()\n\n\tdev, err := scd30.Open(bus)\n\tif err != nil {\n\t\tlog.Fatal(err)\n\t}\n\n\tvar interval uint16 = 5\n\n\tdev.StartMeasurements(interval)\n\n\tfor {\n\t\ttime.Sleep(time.Duration(interval) * time.Second)\n\t\tif hasMeasurement, err := dev.HasMeasurement(); err != nil {\n\t\t\tlog.Fatalf(\"error %v\", err)\n\t\t} else if !hasMeasurement {\n\t\t\treturn\n\t\t}\n\n\t\tm, err := dev.GetMeasurement()\n\t\tif err != nil {\n\t\t\tlog.Fatalf(\"error %v\", err)\n\t\t}\n\n\t\tlog.Printf(\"Got measure %f ppm %f%% %fC\", m.CO2, m.Humidity, m.Temperature)\n\t}\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpvainio%2Fscd30","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpvainio%2Fscd30","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpvainio%2Fscd30/lists"}