{"id":26779174,"url":"https://github.com/bitraf/dlock13","last_synced_at":"2026-04-20T03:03:41.182Z","repository":{"id":9209285,"uuid":"11019745","full_name":"bitraf/dlock13","owner":"bitraf","description":"Door lock","archived":false,"fork":false,"pushed_at":"2020-10-01T13:10:40.000Z","size":494,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":15,"default_branch":"master","last_synced_at":"2025-09-30T14:19:25.742Z","etag":null,"topics":["door-lock","mqtt","msgflo","raspberry-pi"],"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/bitraf.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}},"created_at":"2013-06-28T08:04:29.000Z","updated_at":"2020-10-01T13:10:42.000Z","dependencies_parsed_at":"2022-09-26T17:20:36.212Z","dependency_job_id":null,"html_url":"https://github.com/bitraf/dlock13","commit_stats":null,"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"purl":"pkg:github/bitraf/dlock13","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bitraf%2Fdlock13","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bitraf%2Fdlock13/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bitraf%2Fdlock13/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bitraf%2Fdlock13/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bitraf","download_url":"https://codeload.github.com/bitraf/dlock13/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bitraf%2Fdlock13/sbom","scorecard":{"id":240648,"data":{"date":"2025-08-11","repo":{"name":"github.com/bitraf/dlock13","commit":"4a042f0866507e9d6eb6c09e75d2d10526810d23"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":1.8,"checks":[{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"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":0,"reason":"Found 0/21 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":-1,"reason":"no workflows found","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":"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":"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":"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":"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":"License","score":0,"reason":"license file not detected","details":["Warn: project does not have a license file"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"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":"Signed-Releases","score":0,"reason":"Project has not signed or included provenance with any releases.","details":["Warn: release artifact 0.4.4 not signed: https://api.github.com/repos/bitraf/dlock13/releases/8446664","Warn: release artifact 0.4.4 does not have provenance: https://api.github.com/repos/bitraf/dlock13/releases/8446664"],"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Pinned-Dependencies","score":0,"reason":"dependency not pinned by hash detected -- score normalized to 0","details":["Warn: containerImage not pinned by hash: Dockerfile-raspberrypi3:1: pin your Docker image by updating resin/rpi-raspbian:jessie-20171101 to resin/rpi-raspbian:jessie-20171101@sha256:bdfbcd45d433ad95dc52cd382f8d93a39c6e2dc98d2037a68d0c79963fff0832","Info:   0 out of   1 containerImage 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":"Vulnerabilities","score":7,"reason":"3 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: PYSEC-2018-66 / GHSA-562c-5r94-xh97","Warn: Project is vulnerable to: PYSEC-2019-179 / GHSA-5wv5-4vpf-pj6m","Warn: Project is vulnerable to: PYSEC-2023-62 / GHSA-m2qf-hxjv-5gpq"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 11 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-17T06:38:02.463Z","repository_id":9209285,"created_at":"2025-08-17T06:38:02.464Z","updated_at":"2025-08-17T06:38:02.464Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32031070,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-20T00:18:06.643Z","status":"online","status_checked_at":"2026-04-20T02:00:06.527Z","response_time":94,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["door-lock","mqtt","msgflo","raspberry-pi"],"created_at":"2025-03-29T06:15:06.643Z","updated_at":"2026-04-20T03:03:41.152Z","avatar_url":"https://github.com/bitraf.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# dlock13\n\nBreakout design (in EAGLE) and source code for our door lock actuator, running on a Raspberry PI(1).\nCommunication with the lock happens over [MQTT](https://en.wikipedia.org/wiki/MQTT).\nDoes not contain user interface, check [door-web](https://github.com/bitraf/door-web) for that.\n\n## MQTT interface\n\nTo open the door, send the *number of seconds to open* to:\n\n    /bitraf/door/$door_id/open  # Ex: 20\n\nOn success, will output values:\n\n    /bitraf/door/$door_id/isopen # Ex: true/false\n    /bitraf/door/$door_id/openuntil # Unix timestamp when door will lock again. Ex: 1495469392\n\nOn error, will send a string with an error message:\n\n    /bitraf/door/$door_id/error # Ex: \"Time to open is negative\"\n\nWhere `$door_id` is for instance `2floor`, `frontdoor`, `4floor`.\nThe `/bitraf/door/` prefix is configurable, can be set to `/mysystem/doorlocks`.\n\n## Code\n\nAt [dlock13-msgflo/dlock13.cpp](./dlock13-msgflo/dlock13.cpp).\n\nImpementation is in C++11, using [msgflo-cpp](https://github.com/msgflo/msgflo-cpp). \n\n## Python API\n\nAlso provided is a simple Python module which will handle checking the MQTT messages\nbeing sent out on success/error.\n\nInstalling\n\n    pip install dlock13\n\nA command-line tool is included\n\n    dlock13-open /bitraf/door/$door_id 60\n\nFor how to use programatically, use [dlock13-open](./dlock13-open) as example code.\n\n## Board\n\n![RPI breakout board with components](./doc/rpi-breakout-populated.jpg)\n\nThe board has two MOSFETS for driving standard electronic locks.\nExpansion for two inputs also exists.\n\nSingle-sided board with through-hole components, can easily be CNC milled or etched.\n\n![RPi breakout board schematic](./doc/rpi-breakout-schematic.png)\n\n### Pinout\n\n    # Function | Connector pin |  BCM SoC pin |  WiringPi pin  |\n    ===\n    mosfet1    |     19        |   10         |  12\n    mosfet2    |     2         |   11         |  14\n\nBCM SoC pin is the on used for `/sys/class/gpio/gpioNN` and similar.\n\n## Deployment\n\nA systemd service template is normally used to each doorlock: [dlock13@.service](dlock13-msgflo/dlock13@.service).\n\n    systemctl status dlock13@2floor\n\nThe following environment variables are used. They can be specified in `/etc/dlock13/$door_id.conf`.\n\n* `MSGFLO_BROKER` - the MQTT broker connection details. Ex: `mqtt://user:password@mqtt.example.net`\n* `DLOCK13_PIN` - the GPIO pin number to use. Ex: `11`\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbitraf%2Fdlock13","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbitraf%2Fdlock13","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbitraf%2Fdlock13/lists"}