{"id":26054716,"url":"https://github.com/avdaredevil/ap-alarm","last_synced_at":"2025-10-29T16:10:03.651Z","repository":{"id":16246552,"uuid":"18994355","full_name":"avdaredevil/AP-Alarm","owner":"avdaredevil","description":"Alarm System designed to Guarantee me waking up!","archived":false,"fork":false,"pushed_at":"2022-03-05T08:46:52.000Z","size":170,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":4,"default_branch":"master","last_synced_at":"2023-09-02T07:22:58.448Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"PowerShell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/avdaredevil.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}},"created_at":"2014-04-21T14:10:51.000Z","updated_at":"2023-09-02T07:22:58.449Z","dependencies_parsed_at":"2022-09-14T09:10:43.248Z","dependency_job_id":null,"html_url":"https://github.com/avdaredevil/AP-Alarm","commit_stats":null,"previous_names":[],"tags_count":0,"template":null,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/avdaredevil%2FAP-Alarm","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/avdaredevil%2FAP-Alarm/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/avdaredevil%2FAP-Alarm/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/avdaredevil%2FAP-Alarm/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/avdaredevil","download_url":"https://codeload.github.com/avdaredevil/AP-Alarm/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":242525030,"owners_count":20143651,"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":[],"created_at":"2025-03-08T09:13:15.886Z","updated_at":"2025-10-29T16:10:03.555Z","avatar_url":"https://github.com/avdaredevil.png","language":"PowerShell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# AP Alarm \u0026 Don't Sleep\n\u003e The loudest alarm you'll ever hear that's so effective, that you'll wake up 5 mins before alarm! (Paired with a script that won't let your computer sleep)\n\n## Usage\n```PowerShell\nWake-Up.ps1 [[-Hour] \u003cInt\u003e] [[-minutes] \u003cInt\u003e] [[-VideoScanString] \u003cPath\u003e]\nDont-Sleep.ps1 [-NoAwayMode]\n```\n- *__Note__: If you've never run PowerShell Scripts before refer to __Setup PowerShell Section__ Below*\n\n#### Wake up\n- 5 minutes before alarm it will make your computer whisper to you \"5 minutes before alarm\"\n-  will ring an alarm at the specified time using one of 3 strategies:\n  - Look for a local alarm script called [Popcornetune.ps1](Popcornetune.ps1)*, otherwise*\n  - Look for videos in `-VideoScanString` which defaults to: `~\\Downloads\\Videos\\*.mp4`*, otherwise*\n  - Play a basic beep-boop tune sequence for a while\n\n#### Don't Sleep\n- Sends the scroll-lock key to itself over and over till break\n- By default, it listens for the key event to know that your computer was focused on the script window\n  - This allows auto-pausing of script when you start working on your computer\n- If `-NoAwayMode` is passed, then the script will never pause on failed pings to itself\n\n\n## Features\n- Both scripts support a ton of keyboard shortcuts on them while they are running\n- Uses windows SAPI voice API to warn you before alarm\n- Jacks up the volume to 100% whichever way possible\n- Make sure to toggle your output device to the laptop's speaker (only if you have the `nircmd` binary in your path)\n\n## Keyboard Commands\nParameter         | Script | Parameter Set\n----------------- | ---------- | -------------\n`q / x / Escape`     | Both | Exit script\n`Space / Enter / ScrollLock` | Wake-Up | Show status of sleep for alarm\n`s / Enter ` | Dont-Sleep | Show stats on how many pings were recieved by this script to itself\n\n## Set Up PowerShell [If you've never run a script in PowerShell]\n- Open PowerShell with Admin Access\n- Run `Set-ExecutionPolicy Bypass`\n- This allows scripts to be run in PowerShell\n- cd to the *Folder* where you downloaded/cloned [Configure-Component.ps1](Configure-Component.ps1)\n- `./Configure-Component.ps1`*`\u003carguments\u003e`*\n\n---\nBy: [Apoorv Verma](https://github.com/avdaredevil)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Favdaredevil%2Fap-alarm","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Favdaredevil%2Fap-alarm","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Favdaredevil%2Fap-alarm/lists"}