{"id":19887960,"url":"https://github.com/dmowcomber/dcc-go","last_synced_at":"2026-02-26T01:49:50.559Z","repository":{"id":53489152,"uuid":"253276240","full_name":"dmowcomber/dcc-go","owner":"dmowcomber","description":"A command line DCC Throttle to control your model trains","archived":false,"fork":false,"pushed_at":"2024-08-10T05:00:06.000Z","size":4748,"stargazers_count":2,"open_issues_count":1,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-11-04T02:15:34.866Z","etag":null,"topics":["arduino","command-line","dcc","dccplusplus","golang","model-train","raspberry-pi"],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dmowcomber.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,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2020-04-05T16:11:07.000Z","updated_at":"2025-05-30T10:59:25.000Z","dependencies_parsed_at":"2024-04-11T05:31:28.788Z","dependency_job_id":"20d67474-28f0-4ca5-b0bf-2f891d3cdc86","html_url":"https://github.com/dmowcomber/dcc-go","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/dmowcomber/dcc-go","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dmowcomber%2Fdcc-go","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dmowcomber%2Fdcc-go/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dmowcomber%2Fdcc-go/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dmowcomber%2Fdcc-go/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dmowcomber","download_url":"https://codeload.github.com/dmowcomber/dcc-go/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dmowcomber%2Fdcc-go/sbom","scorecard":{"id":348287,"data":{"date":"2025-08-11","repo":{"name":"github.com/dmowcomber/dcc-go","commit":"cc63f43f539f8055e7ae22d31a03d5345e06181d"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3.5,"checks":[{"name":"Code-Review","score":0,"reason":"Found 0/20 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":"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":"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/go.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":"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":"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":"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":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: GNU General Public License v2.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":"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"}},{"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":"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":"Pinned-Dependencies","score":2,"reason":"dependency not pinned by hash detected -- score normalized to 2","details":["Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/go.yml:14: update your workflow using https://app.stepsecurity.io/secureworkflow/dmowcomber/dcc-go/go.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/go.yml:17: update your workflow using https://app.stepsecurity.io/secureworkflow/dmowcomber/dcc-go/go.yml/master?enable=pin","Warn: containerImage not pinned by hash: Dockerfile:1: pin your Docker image by updating golang:1.22.2-alpine3.19 to golang:1.22.2-alpine3.19@sha256:cdc86d9f363e8786845bea2040312b4efa321b828acdeb26f393faa864d887b0","Info:   0 out of   2 GitHub-owned GitHubAction dependencies pinned","Info:   0 out of   1 containerImage dependencies pinned","Info:   1 out of   1 goCommand 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":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 16 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"}},{"name":"Vulnerabilities","score":9,"reason":"1 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GO-2025-3770 / GHSA-vrw8-fxc6-2r93"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}}]},"last_synced_at":"2025-08-18T07:42:10.087Z","repository_id":53489152,"created_at":"2025-08-18T07:42:10.087Z","updated_at":"2025-08-18T07:42:10.087Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29848617,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-25T22:37:40.667Z","status":"ssl_error","status_checked_at":"2026-02-25T22:37:25.960Z","response_time":61,"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":["arduino","command-line","dcc","dccplusplus","golang","model-train","raspberry-pi"],"created_at":"2024-11-12T18:05:32.514Z","updated_at":"2026-02-26T01:49:50.528Z","avatar_url":"https://github.com/dmowcomber.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# dcc-go\nA DCC (Digital Command Control) Throttle to control model trains. DCC-GO can be installed on a computer like the raspberry pi to talk to an Arduino running [DCC-EX CommandStation](https://github.com/DCC-EX/CommandStation-EX) or [DCCPlusPlus BaseStation](https://github.com/DccPlusPlus/BaseStation)\n\nDCC-GO is written in Golang and was inspired by [DCCute](https://github.com/deltaray/DCCute).\n\nThis repo contains:\n* A Golang DCC Throttle library [github.com/dmowcomber/dcc-go/throttle](http://github.com/dmowcomber/dcc-go/blob/master/throttle/throttle.go)\n* A DCC Throttle HTTP API\n* A DCC Throttle Web page\n\n# Find Arduino USB device\n```\nls /dev |egrep 'ttyACM|ttyUSB'\nttyACM0\n# found /dev/ttyACM0\n```\n\n# Installation\n## Install binary and run\n```\n# install\ngo get github.com/dmowcomber/dcc-go\n\n# run with default address 3 and default device /dev/ttyACM0\ndcc-go\n\n# run with overridden address and usb device\ndcc-go -address=3 -device=/dev/ttyACM0\n```\n\n## Build docker image and run using docker-compose or docker\n### docker-compose\n```\ndocker-compose up -d\n```\nAfter making changes or pulling latest you'll need to rebuild and restart the service:\n```\ndocker-compose build\ndocker-compose kill\ndocker-compose rm -f\ndocker-compose up -d\n```\n\n### docker\n```\ndocker build . -t github.com/dmowcomber/dcc-go\ndocker run -p 8080:8080 --device /dev/ttyACM0 github.com/dmowcomber/dcc-go\n```\n\n### local UI/API testing with a virtual device\nYou can test out the UI and API against a virtual device which can be useful if you don't have an actually a DCC++ or DCC-EX Arduino connected but you'd still like to test the integration between the UI and the API.\n\nCreate a virtual device using a local file: ./testdev\n```\nsocat -d -d -4 PTY,link=\"./testdev\",raw,echo=0 STDIO\n```\nIn a separate terminal, run dcc-go\n```\ngo run . -device $(readlink ./testdev)\n```\n\n# Screenshot\n![GitHub Logo](/screenshot.png)\n\n# WARNING\n\ndcc-go is alpha quality software at this time. Although it works, it has not\nbeen tested with any commercial DCC system.\nIt has only been tested with Raspberry Pi, DCC++ or DCC-EX on an Arduino Uno, and an ESU Loksound decoder.\nThe author of dcc-go claims no responsibility or liability for any damage to your system,\nequipment or trains.\n\n__USE AT YOUR OWN RISK.__\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdmowcomber%2Fdcc-go","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdmowcomber%2Fdcc-go","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdmowcomber%2Fdcc-go/lists"}