{"id":37461198,"url":"https://github.com/grillbaer/python-tsic","last_synced_at":"2026-01-16T07:03:57.201Z","repository":{"id":57477114,"uuid":"118968532","full_name":"grillbaer/python-tsic","owner":"grillbaer","description":"Receive temperature readings from TSic 206/306/506/716 sensor chips on Raspberry Pi with Python 3","archived":false,"fork":false,"pushed_at":"2021-03-18T21:08:18.000Z","size":27,"stargazers_count":7,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-09-18T10:58:39.741Z","etag":null,"topics":["python","raspberry","raspberry-pi","sensor","temperature","temperature-measurement","temperature-sensor","tsic","tsic206","tsic306"],"latest_commit_sha":null,"homepage":"","language":"Python","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/grillbaer.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":"2018-01-25T21:14:46.000Z","updated_at":"2023-11-13T13:29:33.000Z","dependencies_parsed_at":"2022-09-14T16:41:35.528Z","dependency_job_id":null,"html_url":"https://github.com/grillbaer/python-tsic","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/grillbaer/python-tsic","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/grillbaer%2Fpython-tsic","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/grillbaer%2Fpython-tsic/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/grillbaer%2Fpython-tsic/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/grillbaer%2Fpython-tsic/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/grillbaer","download_url":"https://codeload.github.com/grillbaer/python-tsic/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/grillbaer%2Fpython-tsic/sbom","scorecard":{"id":445694,"data":{"date":"2025-08-11","repo":{"name":"github.com/grillbaer/python-tsic","commit":"ad56a9f389ef86d139a7a002b052560059715a71"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3.4,"checks":[{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Code-Review","score":0,"reason":"Found 0/27 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Dangerous-Workflow","score":10,"reason":"no dangerous workflow patterns detected","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: no topLevel permission defined: .github/workflows/python-publish.yml:1","Info: no jobLevel write permissions found"],"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"SAST","score":0,"reason":"no SAST tool detected","details":["Warn: no pull requests merged into dev branch"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Pinned-Dependencies","score":0,"reason":"dependency not pinned by hash detected -- score normalized to 0","details":["Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/python-publish.yml:16: update your workflow using https://app.stepsecurity.io/secureworkflow/grillbaer/python-tsic/python-publish.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/python-publish.yml:18: update your workflow using https://app.stepsecurity.io/secureworkflow/grillbaer/python-tsic/python-publish.yml/master?enable=pin","Warn: pipCommand not pinned by hash: .github/workflows/python-publish.yml:23","Warn: pipCommand not pinned by hash: .github/workflows/python-publish.yml:24","Info:   0 out of   2 GitHub-owned GitHubAction dependencies pinned","Info:   0 out of   2 pipCommand dependencies pinned"],"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: Apache License 2.0: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}}]},"last_synced_at":"2025-08-19T06:40:24.374Z","repository_id":57477114,"created_at":"2025-08-19T06:40:24.374Z","updated_at":"2025-08-19T06:40:24.374Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28478004,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-16T06:30:42.265Z","status":"ssl_error","status_checked_at":"2026-01-16T06:30:16.248Z","response_time":107,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["python","raspberry","raspberry-pi","sensor","temperature","temperature-measurement","temperature-sensor","tsic","tsic206","tsic306"],"created_at":"2026-01-16T07:03:56.443Z","updated_at":"2026-01-16T07:03:57.189Z","avatar_url":"https://github.com/grillbaer.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# python-tsic\n\nReceive temperature readings from TSic sensor chips connected to Raspberry Pi GPIO. \n\nSupported:\n* TSic 206/306\n* TSic 506\n* TSic 716\n\nDon't forget the bypass capacitor as near as possible to the sensor's power supply pins to get stable behavior.\n\n## Dependencies\n\nThe package `tsic` requires Python 3 and the great library `pigpio` for GPIO access with precise timing. Note that Python 2 will not work.\n\n## Installation\n\nInstall from Python package index [PyPI](https://pypi.org/project/tsic/):\n```\npip3 install tsic\n```\n\n## Usage\n\nThe module `tsic` provides the following classes:\n* `TsicInputChannel` receive temperature measurements\n* `Measurement` a temperature measurement\n* `TsicType` TSic type definition with instances `TSIC206`, `TSIC306`, `TSIC506`, `TSIC716` (206 and 306 are currently equivalent)\n* `ZacWireInputChannel` receive byte packets over ZACWire protocol (low-level handler for `TsicInputChannel`)\n\n### Command Line Test Tool\n\nRun `tsic \u003cgpio-bcm\u003e [--type {206,506,716,306}] [--loop]` to read temperatures from a GPIO pin (Broadcom numbering). See `tsic --help` for command line usage.\n\n```\npi@raspi3:~ $ sudo tsic 19 --type 306\nReceiving data from TSic 206/306...\nMeasurement 17.90°C at 2018-11-10 16:16:11.419573\n```\n\n### Examples \n\nFrom file `example.py`:\n```python\nimport time\nimport pigpio\n\nfrom tsic import TsicInputChannel, Measurement, TSIC306\n\n# TsicInputChannel and ZacWireInputChannel require pigpio\n# for GPIO access with precise timing:\npi = pigpio.pi()\n\ntsic = TsicInputChannel(pigpio_pi=pi, gpio=17, tsic_type=TSIC306)\n\nprint('\\nA. Single measurement:')\nprint(tsic.measure_once(timeout=1.0))\n\nprint('\\nB. All measurements for 1 second:')\ntsic.start(lambda measurement: print(measurement))\ntime.sleep(1)\ntsic.stop()\n\nprint('\\nC. One measurement per second for 3 seconds:')\n\n# start receiving in a context:\nwith tsic:\n    for i in range(3):\n        time.sleep(1)\n        measurement = tsic.measurement\n        if measurement == Measurement.UNDEF:\n            print(measurement)\n        else:\n            print('{:d} {:.1f}°C'.format(i+1, measurement.degree_celsius))\n\npi.stop()\n```\n\n## Source Code\n\nHosted on [github.com/grillbaer/python-tsic](https://github.com/grillbaer/python-tsic)\n\nWith greetings from Bavaria,\nHolger\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgrillbaer%2Fpython-tsic","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgrillbaer%2Fpython-tsic","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgrillbaer%2Fpython-tsic/lists"}