{"id":28863976,"url":"https://github.com/davidroman0o/tpi","last_synced_at":"2026-02-26T20:40:57.925Z","repository":{"id":291293248,"uuid":"976795503","full_name":"davidroman0O/tpi","owner":"davidroman0O","description":"Go implementation of the Turing Pi CLI for controlling and managing Turing Pi boards.","archived":false,"fork":false,"pushed_at":"2025-05-04T16:05:59.000Z","size":159,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-06-17T10:55:50.194Z","etag":null,"topics":["arm-cluster","bmc-api","cli-tool","cluster-management","compute-modules","golang","homelab","turing-pi","turing-pi2","turingpi"],"latest_commit_sha":null,"homepage":"","language":"Go","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/davidroman0O.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2025-05-02T19:06:42.000Z","updated_at":"2025-05-04T16:06:02.000Z","dependencies_parsed_at":"2025-05-03T17:49:12.022Z","dependency_job_id":null,"html_url":"https://github.com/davidroman0O/tpi","commit_stats":null,"previous_names":["davidroman0o/tpi"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/davidroman0O/tpi","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/davidroman0O%2Ftpi","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/davidroman0O%2Ftpi/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/davidroman0O%2Ftpi/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/davidroman0O%2Ftpi/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/davidroman0O","download_url":"https://codeload.github.com/davidroman0O/tpi/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/davidroman0O%2Ftpi/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":260907303,"owners_count":23080619,"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":["arm-cluster","bmc-api","cli-tool","cluster-management","compute-modules","golang","homelab","turing-pi","turing-pi2","turingpi"],"created_at":"2025-06-20T08:13:51.738Z","updated_at":"2026-02-26T20:40:57.920Z","avatar_url":"https://github.com/davidroman0O.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Turing Pi Control Tools\n\nThis repository contains tools for controlling Turing Pi boards, split into two components:\n\n## Components\n\n### 1. [Client Library](/client)\n\nA Go library for programmatically controlling Turing Pi boards via their BMC API.\n\n```bash\ngo get github.com/davidroman0O/tpi\n```\n\n[Learn more about the client library →](/client)\n\n### 2. [CLI Tool](/cli)\n\nA command-line interface for controlling Turing Pi boards.\n\n```bash\n# Install pre-built binary (see releases)\n# or build from source:\ncd cli \u0026\u0026 go build\n```\n\n[Learn more about the CLI tool →](/cli)\n\n## Repository Structure\n\n```\ntpi/\n├── client/           # Client library (minimal dependencies)\n│   ├── *.go          # Core functionality files\n│   └── testdata/     # Test data\n├── cli/              # Command-line interface \n│   ├── commands/     # CLI command implementations\n│   └── main.go       # CLI entry point\n└── .github/          # GitHub workflows and config\n```\n\n## Quick Start\n\n### Using the CLI\n\n```bash\n# Power on node 1\n./cli/tpi power on 1 --host=192.168.1.91\n\n# Get power status\n./cli/tpi power status --host=192.168.1.91\n```\n\n### Using the Client Library\n\n```go\npackage main\n\nimport (\n\t\"fmt\"\n\t\"os\"\n\n\t\"github.com/davidroman0O/tpi/client\"\n)\n\nfunc main() {\n\t// Create a client\n\tc, err := client.NewClient(\n\t\tclient.WithHost(\"192.168.1.91\"),\n\t\tclient.WithCredentials(\"root\", \"turing\"),\n\t)\n\tif err != nil {\n\t\tfmt.Fprintf(os.Stderr, \"Error: %v\\n\", err)\n\t\tos.Exit(1)\n\t}\n\n\t// Power on node 1\n\tif err := c.PowerOn(1); err != nil {\n\t\tfmt.Fprintf(os.Stderr, \"Error: %v\\n\", err)\n\t\tos.Exit(1)\n\t}\n\n\tfmt.Println(\"Node 1 powered on!\")\n}\n```\n\n### Using the Agent Client\n\n```go\npackage main\n\nimport (\n\t\"fmt\"\n\t\"os\"\n\n\t\"github.com/davidroman0O/tpi/client/agent\"\n)\n\nfunc main() {\n\t// Create an agent client to connect to a remote agent server\n\tc, err := agent.NewAgentClient(\n\t\tagent.WithAgentHost(\"192.168.1.91\"),\n\t\tagent.WithAgentPort(9977),\n\t\tagent.WithAgentSecret(\"mysecret\"),\n\t)\n\tif err != nil {\n\t\tfmt.Fprintf(os.Stderr, \"Error: %v\\n\", err)\n\t\tos.Exit(1)\n\t}\n\n\t// Power on node 1 remotely\n\tif err := c.PowerOn(1); err != nil {\n\t\tfmt.Fprintf(os.Stderr, \"Error: %v\\n\", err)\n\t\tos.Exit(1)\n\t}\n\n\tfmt.Println(\"Node 1 powered on remotely!\")\n}\n```\n\n## Agent Mode\n\nThe library and CLI now support an Agent Mode that allows you to control a Turing Pi board remotely without direct access to the BMC. This works by running an agent server on a machine with direct access to the Turing Pi board, and connecting to it from a remote machine.\n\n[Learn more about Agent Mode →](/cli/AGENT.md)\n\n## License\n\nApache License 2.0 ","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdavidroman0o%2Ftpi","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdavidroman0o%2Ftpi","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdavidroman0o%2Ftpi/lists"}