{"id":20597398,"url":"https://github.com/someordinarybro/smartsleep","last_synced_at":"2025-07-22T13:34:11.098Z","repository":{"id":177772780,"uuid":"660891066","full_name":"SomeOrdinaryBro/SmartSleep","owner":"SomeOrdinaryBro","description":"Ensure energy efficiency and security with our automated PC shutdown program. It monitors activity, starts a countdown, and shuts down when idle. No more wasted power! ","archived":false,"fork":false,"pushed_at":"2023-07-01T06:58:19.000Z","size":8,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-06-03T20:17:11.163Z","etag":null,"topics":["energysaver","security","shutdown-script"],"latest_commit_sha":null,"homepage":"","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/SomeOrdinaryBro.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":"2023-07-01T06:09:38.000Z","updated_at":"2023-07-01T06:52:00.000Z","dependencies_parsed_at":null,"dependency_job_id":"ca1c32f8-8060-4cf6-9510-67e2452d8490","html_url":"https://github.com/SomeOrdinaryBro/SmartSleep","commit_stats":null,"previous_names":["someordinarybro/smartsleep"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/SomeOrdinaryBro/SmartSleep","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SomeOrdinaryBro%2FSmartSleep","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SomeOrdinaryBro%2FSmartSleep/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SomeOrdinaryBro%2FSmartSleep/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SomeOrdinaryBro%2FSmartSleep/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/SomeOrdinaryBro","download_url":"https://codeload.github.com/SomeOrdinaryBro/SmartSleep/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SomeOrdinaryBro%2FSmartSleep/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266506175,"owners_count":23940019,"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","status":"online","status_checked_at":"2025-07-22T02:00:09.085Z","response_time":66,"last_error":null,"robots_txt_status":null,"robots_txt_updated_at":null,"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":["energysaver","security","shutdown-script"],"created_at":"2024-11-16T08:22:18.387Z","updated_at":"2025-07-22T13:34:10.986Z","avatar_url":"https://github.com/SomeOrdinaryBro.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# SmartSleep\n\nShutdown.py is an automated PC shutdown program that monitors user activity and initiates a system shutdown when no movement or keyboard activity is detected for a specified period of time. It helps ensure energy efficiency and provides an additional layer of security for your PC.\n\n## Features\n\n-   Monitors mouse movement and keyboard activity.\n-   Starts a countdown and displays a warning before initiating the shutdown.\n-   Allows cancellation of the countdown if activity is detected.\n-   Retries the shutdown process in case of errors.\n-   Logs error messages for troubleshooting.\n\n## Use Cases\n\n-   Energy Efficiency: Automatically shut down your PC after a period of inactivity to conserve power and reduce electricity consumption.\n-   Security: Protect your system from unauthorized access by initiating a shutdown when idle.\n-   Productivity: Encourage regular breaks by setting a time limit for inactivity and prompting users to resume their work.\n\n## How to Run\n\n1.  Make sure you have Python installed on your system.\n2.  Install the required dependencies by running the following command:\n    `pip install pyautogui keyboard` \n3.  Download the `shutdown.py` file from this repository.\n4.  Open a terminal or command prompt and navigate to the directory where the `shutdown.py` file is located.\n5.  Run the program using the following command:\n `python shutdown.py` \n    \n\n## Run on Startup (Windows)\n\nTo run the `shutdown.py` program automatically on startup, follow these steps:\n\n1.  Press `Win + R` to open the Run dialog box.\n2.  Type `shell:startup` and press Enter. This will open the Startup folder.\n3.  Copy the `shutdown.py` file and paste it into the Startup folder.\n4.  The program will now run every time you start your computer.\n\nNote: The instructions for running on startup may vary for different operating systems.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsomeordinarybro%2Fsmartsleep","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsomeordinarybro%2Fsmartsleep","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsomeordinarybro%2Fsmartsleep/lists"}