{"id":15936173,"url":"https://github.com/rzr/sense-hat-webthing","last_synced_at":"2026-03-03T21:02:19.748Z","repository":{"id":57465536,"uuid":"259962704","full_name":"rzr/sense-hat-webthing","owner":"rzr","description":"Sense Hat adapter plugin for WebThings Gateway","archived":false,"fork":false,"pushed_at":"2020-10-15T22:41:16.000Z","size":102,"stargazers_count":3,"open_issues_count":41,"forks_count":5,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-10-17T08:55:02.285Z","etag":null,"topics":["webthings"],"latest_commit_sha":null,"homepage":"https://mastodon.social/@rzr/104052909544715058#LavalVirtual2020","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mpl-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/rzr.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null},"funding":{"github":["rzr"],"custom":["https://www.paypal.me/rzrfreefr","www.rzr.online.fr"]}},"created_at":"2020-04-29T15:19:40.000Z","updated_at":"2023-05-27T01:13:43.000Z","dependencies_parsed_at":"2022-09-13T13:51:04.101Z","dependency_job_id":null,"html_url":"https://github.com/rzr/sense-hat-webthing","commit_stats":null,"previous_names":[],"tags_count":10,"template":false,"template_full_name":null,"purl":"pkg:github/rzr/sense-hat-webthing","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rzr%2Fsense-hat-webthing","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rzr%2Fsense-hat-webthing/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rzr%2Fsense-hat-webthing/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rzr%2Fsense-hat-webthing/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rzr","download_url":"https://codeload.github.com/rzr/sense-hat-webthing/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rzr%2Fsense-hat-webthing/sbom","scorecard":{"id":793394,"data":{"date":"2025-08-11","repo":{"name":"github.com/rzr/sense-hat-webthing","commit":"d001cc1ce8a2e564590f6770d9a2ad3afa1c8059"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3.2,"checks":[{"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":"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":"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":"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":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: no topLevel permission defined: .github/workflows/fediverse-action.yml:1","Warn: no topLevel permission defined: .github/workflows/pythonpublish.yml:1","Warn: no topLevel permission defined: .github/workflows/upload-release-asset.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":"Code-Review","score":1,"reason":"Found 3/18 approved changesets -- score normalized to 1","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":"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":"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":"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":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: Mozilla Public 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":"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/fediverse-action.yml:9: update your workflow using https://app.stepsecurity.io/secureworkflow/rzr/sense-hat-webthing/fediverse-action.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/fediverse-action.yml:12: update your workflow using https://app.stepsecurity.io/secureworkflow/rzr/sense-hat-webthing/fediverse-action.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/pythonpublish.yml:17: update your workflow using https://app.stepsecurity.io/secureworkflow/rzr/sense-hat-webthing/pythonpublish.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/pythonpublish.yml:19: update your workflow using https://app.stepsecurity.io/secureworkflow/rzr/sense-hat-webthing/pythonpublish.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/upload-release-asset.yml:14: update your workflow using https://app.stepsecurity.io/secureworkflow/rzr/sense-hat-webthing/upload-release-asset.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/upload-release-asset.yml:25: update your workflow using https://app.stepsecurity.io/secureworkflow/rzr/sense-hat-webthing/upload-release-asset.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/upload-release-asset.yml:70: update your workflow using https://app.stepsecurity.io/secureworkflow/rzr/sense-hat-webthing/upload-release-asset.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/upload-release-asset.yml:77: update your workflow using https://app.stepsecurity.io/secureworkflow/rzr/sense-hat-webthing/upload-release-asset.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/upload-release-asset.yml:79: update your workflow using https://app.stepsecurity.io/secureworkflow/rzr/sense-hat-webthing/upload-release-asset.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/upload-release-asset.yml:87: update your workflow using https://app.stepsecurity.io/secureworkflow/rzr/sense-hat-webthing/upload-release-asset.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/upload-release-asset.yml:97: update your workflow using https://app.stepsecurity.io/secureworkflow/rzr/sense-hat-webthing/upload-release-asset.yml/master?enable=pin","Warn: containerImage not pinned by hash: Dockerfile:5: pin your Docker image by updating python:3.7-buster to python:3.7-buster@sha256:2539f956bcccbac5e4a48ebdafbbbfbd26b4ab56e65b96076ae9cd1188b119b3","Warn: pipCommand not pinned by hash: build.sh:49","Warn: pipCommand not pinned by hash: build.sh:50","Warn: pipCommand not pinned by hash: example/run.sh:17","Warn: pipCommand not pinned by hash: package.sh:27","Warn: pipCommand not pinned by hash: setup.sh:17","Warn: pipCommand not pinned by hash: .github/workflows/pythonpublish.yml:24","Warn: pipCommand not pinned by hash: .github/workflows/pythonpublish.yml:25","Info:   0 out of  10 GitHub-owned GitHubAction dependencies pinned","Info:   0 out of   1 third-party GitHubAction dependencies pinned","Info:   0 out of   1 containerImage dependencies pinned","Info:   0 out of   7 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":"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":0,"reason":"Project has not signed or included provenance with any releases.","details":["Warn: release artifact v0.0.9 not signed: https://api.github.com/repos/rzr/sense-hat-webthing/releases/32646433","Warn: release artifact v0.0.8 not signed: https://api.github.com/repos/rzr/sense-hat-webthing/releases/32646206","Warn: release artifact v0.0.7 not signed: https://api.github.com/repos/rzr/sense-hat-webthing/releases/26692182","Warn: release artifact v0.0.6 not signed: https://api.github.com/repos/rzr/sense-hat-webthing/releases/26359716","Warn: release artifact v0.0.5 not signed: https://api.github.com/repos/rzr/sense-hat-webthing/releases/26346001","Warn: release artifact v0.0.9 does not have provenance: https://api.github.com/repos/rzr/sense-hat-webthing/releases/32646433","Warn: release artifact v0.0.8 does not have provenance: https://api.github.com/repos/rzr/sense-hat-webthing/releases/32646206","Warn: release artifact v0.0.7 does not have provenance: https://api.github.com/repos/rzr/sense-hat-webthing/releases/26692182","Warn: release artifact v0.0.6 does not have provenance: https://api.github.com/repos/rzr/sense-hat-webthing/releases/26359716","Warn: release artifact v0.0.5 does not have provenance: https://api.github.com/repos/rzr/sense-hat-webthing/releases/26346001"],"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"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":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 15 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}}]},"last_synced_at":"2025-08-23T08:13:02.207Z","repository_id":57465536,"created_at":"2025-08-23T08:13:02.207Z","updated_at":"2025-08-23T08:13:02.207Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30060641,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-03T18:21:05.932Z","status":"ssl_error","status_checked_at":"2026-03-03T18:20:59.341Z","response_time":61,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: 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":["webthings"],"created_at":"2024-10-07T04:20:26.506Z","updated_at":"2026-03-03T21:02:19.732Z","avatar_url":"https://github.com/rzr.png","language":"Python","funding_links":["https://github.com/sponsors/rzr","https://www.paypal.me/rzrfreefr","www.rzr.online.fr"],"categories":[],"sub_categories":[],"readme":"# SENSE-HAT WEBTHING #\n\n[![GitHub forks](\nhttps://img.shields.io/github/forks/rzr/sense-hat-webthing.svg?style=social\u0026label=Fork\u0026maxAge=2592000\n)](\nhttps://GitHub.com/rzr/sense-hat-webthing\n)\n[![PyPi](\nhttps://img.shields.io/pypi/v/sense-hat-webthing.svg\n)](\nhttps://pypi.org/project/sense-hat-webthing/\n)\n[![Legal](\nhttps://img.shields.io/badge/license-MPL--2.0-blue.svg\n)](\nhttps://github.com/rzr/sense-hat-webthing/blob/master/LICENSE\n)\n![Mastodon Follow](\nhttps://img.shields.io/mastodon/follow/279303?domain=https%3A%2F%2Fmastodon.social\u0026style=social\n)\n\n## ABOUT ##\n\nAddon adapter for WebThings Gateway \nusing python module to handle I2C sensors and GPIOs\nof Raspberry Pi's extension board \"SenseHat\".\n\n[![sense-hat-webthing](\nhttps://repository-images.githubusercontent.com/259962704/e9f36600-92b5-11ea-9df7-c3e38c5af4dd#./file/sense-hat-adapter-0.0.5.png\n)](\nhttps://mastodon.social/@rzr/104143644945748115#:sensehat:\n\"sense-hat-webthing\")\n\n## USAGE ##\n\n### PREREQUISITES ###\n\nInstall WebThings Gateway on RaspberryPI (It was made for \nhttps://github.com/WebThingsIO/gateway/releases/download/0.12.0/gateway-0.12.0.img.zip\n)\n\n- Connect to device's wifi \"WebThings Gateway FFFF\" and then open http://gateway.local/,  Setup WiFi Setup\n- Connect back to LAN Wifi open http://gateway.local/things again\n\n### INSTALL ###\n\nFrom \"Settings\" add-on menu:\n\n- Add \"and enable add-on\n- Then add \"SenseHat\" from the things dashboard.\n\n### CALIBRATE ###\n\nFor using Inertial measurement unit (IMU sensors),\ncalibration will help to get more accurate measurements.\n\n```sh\nsudo apt-get install librtimulib-utils\n\ncd ~/.config/sense_hat/\nmv -f RTIMULib.ini RTIMULib.ini.orig\nRTIMULibCal\n\n#| RTIMULibCal - using RTIMULib.ini\n#| Settings file not found. Using defaults and creating settings file\n#| Detected LSM9DS1 at standard/standard address\n#| Using fusion algorithm RTQF\n#| min/max compass calibration not in use\n#| Ellipsoid compass calibration not in use\n#| Accel calibration not in use\n#| LSM9DS1 init complete\n#| Options are: \n#| m - calibrate magnetometer with min/max\n#| e - calibrate magnetometer with ellipsoid (do min/max first)\n#| a - calibrate accelerometers\n#| (...)\n\ngrep '=' RTIMULib.ini\n```\n\nIf done correctly north should be indicated by edge where power LED is located\nthe compass value is actually the \"yaw\" value, while \"pitch\" is around this same edge.\nRemaining \"roll\" value can be changed by rotating on longest middle axis of board.\n\n\n### AUTOMATE ###\n\nOnce added in gateway, it can be used along the rule engine:\n\n[![sense-hat-webthing](\nhttps://files.mastodon.social/media_attachments/files/028/864/302/original/65d944b18b347d04.png\n)](\nhttps://mastodon.social/@rzr/104052909544715058#LavalVirtual2020\n\"sense-hat-webthing\")\n\n\n## DEVELOP ##\n\n```sh\n# From Settings / Developer / Enable SSH\n# https://sensehat.mozilla-iot.org/settings/developer\nssh pi@gateway.local # password=raspberry\nsudo systemctl stop mozilla-iot-gateway\nrm -rf ~/.mozilla-iot/addons/sense-hat-*\ncd ~/.mozilla-iot/addons/\ngit clone https://github.com/rzr/sense-hat-webthing sense-hat-adapter\nmake -C sense-hat-adapter help prep start # unprep # to restore\nsudo systemctl restart mozilla-iot-gateway\nsudo journalctl -f -xu mozilla-iot-gateway.service\n```\n\nFrom \"/things\" webpage \"SenseHat\" can be added (+, Add, Done)\n\nNote that instead of restarting gateway,\nfrom Web UI, any addon can disabled and enabled again.\n\n## EXTRA: EXAMPLES ##\n\nMore examples can be also used as standone webthing server:\n\n```sh\ncd example\n# If on debian, it will be faster:\nsudo apt-get install python3-sense-hat \npip3 install webthing \n# Or if not on debian:\n# pip3 install -r requirements.txt \n./sense-hat-single-thing.py\n```\n\nThen add thing using \"URL\" adapter it should be discovered as (http://localhost:8888)\n\nSame procedure for other exampl, like multiple things which is handling orientation sensor.\n\n## MORE ##\n\nFor reference the following items are supported:\n\n- \u003chttps://www.st.com/resource/en/datasheet/hts221.pdf\u003e\n- \u003chttps://www.st.com/resource/en/datasheet/lps25hb.pdf\u003e\n- \u003chttps://www.st.com/resource/en/datasheet/lsm9ds1.pdf\u003e\n\nThanks to Geof Cohler (@gcohler) for support.\n\n## RESOURCES ##\n\n- \u003chttps://libraries.io/pypi/sense-hat-webthing\u003e\n- \u003chttps://pypi.org/project/sense-hat-webthing/\u003e\n- \u003chttps://mastodon.social/@rzr/104052909544715058#LavalVirtual2020\u003e\n- \u003chttps://github.com/WebThingsIO/addon-list/pull/822\u003e\n- \u003chttps://discourse.mozilla.org/t/is-there-an-add-on-for-pi-sense-hat/58024/5\u003e\n- \u003chttps://www.openhub.net/p/sense-hat-webthing\u003e\n- \u003chttps://github.com/rzr/mozilla-iot-generic-sensors-adapter/issues/13\u003e\n- \u003chttps://github.com/WebThingsIO/wiki/wiki#general-1\u003e\n- \u003chttps://github.com/WebThingsIO/gateway-addon-python\u003e\n- \u003chttps://hacks.mozilla.org/2018/02/creating-an-add-on-for-the-project-things-gateway/\u003e\n- \u003chttps://libraries.io/pypi/sense-hat\u003e\n- \u003chttps://www.raspberrypi.org/products/sense-hat/\u003e\n- \u003chttps://www.raspberrypi.org/documentation/hardware/sense-hat/\u003e\n- \u003chttps://github.com/astro-pi/python-sense-hat\u003e\n- \u003chttps://pythonhosted.org/sense-hat/api/\u003e\n- \u003chttps://github.com/raspberrypi/rpi-sense/\u003e\n- \u003chttps://projects.raspberrypi.org/en/projects/getting-started-with-the-sense-hat\u003e\n- \u003chttps://iot.mozilla.org/schemas/\u003e\n- \u003chttps://github.com/WebThingsIO/webthing-python/\u003e\n- \u003chttps://github.com/WebThingsIO/tplink-adapter\u003e\n- \u003chttps://github.com/WebThingsIO/eufy-adapter\u003e\n\n[![sense-hat-webthing](\nhttps://files.mastodon.social/media_attachments/files/027/879/770/small/2711ddf5ac31f8bf.jpeg#./file/sense-hat-webthing.jpg\n)](\nhttps://mastodon.social/@rzr/104052909544715058#LavalVirtual2020\n\"sense-hat-webthing\")\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frzr%2Fsense-hat-webthing","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frzr%2Fsense-hat-webthing","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frzr%2Fsense-hat-webthing/lists"}