{"id":48919076,"url":"https://github.com/mirsella/powercontrol","last_synced_at":"2026-04-17T04:07:30.302Z","repository":{"id":37425718,"uuid":"451828517","full_name":"mirsella/powercontrol","owner":"mirsella","description":"control your PC power with a mobile app","archived":false,"fork":false,"pushed_at":"2025-02-28T13:09:18.000Z","size":10330,"stargazers_count":3,"open_issues_count":5,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-28T19:09:59.170Z","etag":null,"topics":["capacitor","grub","raspberry-pi","relay","relay-board","remote-control","serial","smarthome","vite","vuejs"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","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/mirsella.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}},"created_at":"2022-01-25T10:16:10.000Z","updated_at":"2025-02-28T13:09:21.000Z","dependencies_parsed_at":"2024-12-09T14:30:14.873Z","dependency_job_id":"ff08e9d1-6697-4673-8fca-12d7d4eb718e","html_url":"https://github.com/mirsella/powercontrol","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/mirsella/powercontrol","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mirsella%2Fpowercontrol","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mirsella%2Fpowercontrol/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mirsella%2Fpowercontrol/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mirsella%2Fpowercontrol/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mirsella","download_url":"https://codeload.github.com/mirsella/powercontrol/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mirsella%2Fpowercontrol/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31914487,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-16T18:22:33.417Z","status":"online","status_checked_at":"2026-04-17T02:00:06.879Z","response_time":62,"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":["capacitor","grub","raspberry-pi","relay","relay-board","remote-control","serial","smarthome","vite","vuejs"],"created_at":"2026-04-17T04:07:29.724Z","updated_at":"2026-04-17T04:07:30.298Z","avatar_url":"https://github.com/mirsella.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# powercontrol\n\nPC power/reset controller built around a Raspberry Pi, a relay board, and a Vue/Capacitor client.\n\nIt can also send serial key presses to the motherboard so the app can select the next GRUB entry before boot.\n\n## How It Works\n\nThe server is a small Express API running on the Raspberry Pi. It controls GPIO pins connected to a relay board for power and reset, and it can also write HID key presses to `/dev/hidg0` to drive the GRUB menu before the PC starts.\n\nThe client is a Vue 3 + Capacitor app that discovers the server, stores connection details locally, and exposes actions such as power, reset, reboot, next-boot selection, and host online status.\n\nIn practice the hardware chain is:\n\n`motherboard front-panel pins \u003c-\u003e relay board \u003c-\u003e Raspberry Pi \u003c-\u003e client app`\n\n## Quick start\n\n1. Copy `server/config.example.json` to `server/config.json`.\n2. Adjust the GPIO pins, `host_ip`, and `token`.\n3. Start the server with `cd server \u0026\u0026 npm install \u0026\u0026 npm run dev`.\n4. Start the client with `cd client \u0026\u0026 npm install \u0026\u0026 npm run dev`.\n\n## Android build\n\n```bash\ncd client\nnpm run android\n```\n\n## Config Notes\n\n- `shutdownTime` controls the delay used for reboot-style flows.\n- `menuTime` controls when GRUB key presses are sent.\n- `nextboot` is the boot-menu key sequence to send.\n- Authentication is a single shared bearer token.\n\n## Pictures\n\n\u003cp float=\"left\"\u003e\n  \u003cimg src=\"./pictures/w1.png\" width=20%\u003e\n  \u003cimg src=\"./pictures/w2.png\" width=20%\u003e\n  \u003cimg src=\"./pictures/b1.png\" width=20%\u003e\n  \u003cimg src=\"./pictures/b2.png\" width=20%\u003e\n\u003c/p\u003e\n\u003cp float=\"left\"\u003e\n  \u003cimg src=\"./pictures/rpi.jpg\" width=40%\u003e\n  \u003cimg src=\"./pictures/relay.jpg\" width=40%\u003e\n\u003c/p\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmirsella%2Fpowercontrol","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmirsella%2Fpowercontrol","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmirsella%2Fpowercontrol/lists"}