{"id":20286596,"url":"https://github.com/diegogtz03/pcpower","last_synced_at":"2026-04-30T02:35:57.300Z","repository":{"id":245177287,"uuid":"816553501","full_name":"Diegogtz03/PCPower","owner":"Diegogtz03","description":"API and WebSocket server for remote ESP32 powered PC power monitor and switch","archived":false,"fork":false,"pushed_at":"2024-06-25T22:06:43.000Z","size":10,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-06-17T16:45:08.209Z","etag":null,"topics":["api","nodejs","websocket"],"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/Diegogtz03.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":"2024-06-18T01:30:41.000Z","updated_at":"2024-06-25T22:06:46.000Z","dependencies_parsed_at":"2024-06-25T23:24:40.707Z","dependency_job_id":"92beb230-4c99-4f0a-a819-52d6c6ce2890","html_url":"https://github.com/Diegogtz03/PCPower","commit_stats":null,"previous_names":["diegogtz03/pcpower"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Diegogtz03/PCPower","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Diegogtz03%2FPCPower","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Diegogtz03%2FPCPower/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Diegogtz03%2FPCPower/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Diegogtz03%2FPCPower/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Diegogtz03","download_url":"https://codeload.github.com/Diegogtz03/PCPower/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Diegogtz03%2FPCPower/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32452741,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-29T22:27:22.272Z","status":"online","status_checked_at":"2026-04-30T02:00:05.929Z","response_time":57,"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":["api","nodejs","websocket"],"created_at":"2024-11-14T14:35:32.786Z","updated_at":"2026-04-30T02:35:57.278Z","avatar_url":"https://github.com/Diegogtz03.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# **PCPower**\n\nA websocket server and API that allows you to control and check your PC power state from a simple API or a web interface anywhere in the world.\n\nMade together with [ESP-PC](https://github.com/Diegogtz03/ESP-PC).\n\n-----\n## Websocket Server\n- Opens up the port 3100 for WS/WSS access\n- Allows for the API to communicate with the ESP32 via POST requests\n\n## API\n### /status (GET)\n- Return \"Arduino not connected\" if the ESP is offline\n- Returns either \"ON\" or \"OFF\" depending on the value of the PC's LED\n\n### /on (POST)\n- Needs authorization header defined by the .env variable AUTHORIZATION_HEADER\n- Return \"Arduino not connected\" if the ESP is offline\n- Sends message to ESP requesting the PC to turn ON\n\n### /off (POST)\n- Needs authorization header defined by the .env variable AUTHORIZATION_HEADER\n- Return \"Arduino not connected\" if the ESP is offline\n- Sends message to ESP requesting the PC to turn OFF\n\n-----\n## Triggers / Deployments\n### HTTPS deployment \n- I've provided some docker files for easy deployment on a remote server.\n- This would allow for secure connections and for remote connections anywhere in the world.\n\n### A simple request\n- You could use simple post requests for triggering the ESP\n\n### Custom UI\n- You could make a simple custom UI to see the PC's status/trigger the PC's state\n\n### iOS Shortcuts\n- I have a simple example of how I integrated this with Apple's Shortcuts for quick and easy use on all of my iOS devices remotely.\n\n  \n![IMG_3286](https://github.com/Diegogtz03/PCPower/assets/65473367/64266f9c-e7c4-4cd4-b1c2-872af546fdf7)\n![IMG_3287](https://github.com/Diegogtz03/PCPower/assets/65473367/ee42f3db-1e70-4d58-9713-08b12f528342)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdiegogtz03%2Fpcpower","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdiegogtz03%2Fpcpower","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdiegogtz03%2Fpcpower/lists"}