{"id":18744995,"url":"https://github.com/rkstudio585/alarm-clock-c","last_synced_at":"2025-10-15T17:56:31.614Z","repository":{"id":256885399,"uuid":"850519081","full_name":"rkstudio585/alarm-clock-C","owner":"rkstudio585","description":"A simple C-based alarm clock program allowing users to set, cancel, and monitor alarms in a 12-hour format with AM/PM notation. Features a text-based interface for easy management and real-time alarm activation.","archived":false,"fork":false,"pushed_at":"2024-09-01T02:38:00.000Z","size":11,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-07-02T09:46:36.703Z","etag":null,"topics":["alarm-clock","alarms","alarms-clock","c","c-dased","c-script","clock","program","rk","rk-studio"],"latest_commit_sha":null,"homepage":"https://github.com/mdriyadkhan585","language":"C","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/rkstudio585.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-09-01T02:21:54.000Z","updated_at":"2024-09-01T02:38:03.000Z","dependencies_parsed_at":"2024-09-13T16:23:08.602Z","dependency_job_id":"e66f145e-a365-47d9-92f4-f88e33e9e204","html_url":"https://github.com/rkstudio585/alarm-clock-C","commit_stats":null,"previous_names":["rkstudio585/alarm-clock-c"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/rkstudio585/alarm-clock-C","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rkstudio585%2Falarm-clock-C","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rkstudio585%2Falarm-clock-C/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rkstudio585%2Falarm-clock-C/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rkstudio585%2Falarm-clock-C/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rkstudio585","download_url":"https://codeload.github.com/rkstudio585/alarm-clock-C/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rkstudio585%2Falarm-clock-C/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279098114,"owners_count":26102962,"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-10-15T02:00:07.814Z","response_time":56,"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":["alarm-clock","alarms","alarms-clock","c","c-dased","c-script","clock","program","rk","rk-studio"],"created_at":"2024-11-07T16:16:31.930Z","updated_at":"2025-10-15T17:56:31.584Z","avatar_url":"https://github.com/rkstudio585.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# alarm-clock-C\n[In python3](https://github.com/mdriyadkhan585/Python-Alarm-Clock)\n![alarm clock](logo.svg)\n\n---\n\n# Alarm Clock Project\n\n## Overview\n\nThis project is a simple alarm clock program written in C. It allows users to set, cancel, and monitor alarms based on a 12-hour format with AM/PM notation. The program provides a text-based menu interface for interacting with the alarm system and an ongoing loop to check and activate alarms as needed.\n\n## Features\n\n- **Set Alarms**: Configure alarms with a specific hour, minute, second, and AM/PM period.\n- **Cancel Alarms**: Remove alarms from the active list.\n- **View Alarms**: Display all currently set alarms.\n- **Monitor Alarms**: Continuously check and trigger alarms at their scheduled times.\n- **User Interface**: Simple menu-driven interface for ease of use.\n\n## Prerequisites\n\n- A C compiler (e.g., GCC)\n- Basic understanding of how to compile and run C programs\n\n## Installation\n\n1. **Clone the Repository**: Download the source code from the repository.\n\n    ```bash\n    git clone https://github.com/mdriyadkhan585/alarm-clock-C\n    cd alarm-clock-C \n    ```\n\n2. **Compile the Program**: Use a C compiler to compile the source code. For GCC, you can use:\n\n    ```bash\n    gcc -o alarm_clock alarm_clock.c\n    ```\n\n3. **Run the Program**: Execute the compiled program:\n\n    ```bash\n    ./alarm_clock\n    ```\n\n## Usage\n\n### Main Menu\n\nUpon running the program, you will be presented with the main menu. Here are the available options:\n\n1. **Set Alarm**: Configure a new alarm.\n\n    - **Hour (1-12)**: Enter the hour in 12-hour format.\n    - **Minute (0-59)**: Enter the minute.\n    - **Second (0-59)**: Enter the second.\n    - **AM/PM (A/P)**: Specify AM or PM.\n\n    Example:\n    \n    ```\n    Enter alarm time (12-hour format):\n    Hour (1-12): 7\n    Minute (30): 15\n    Second (0): 0\n    AM/PM (A/P): A\n    ```\n\n2. **Cancel Alarm**: Remove an existing alarm.\n\n    - View the list of active alarms.\n    - Enter the number of the alarm you wish to cancel.\n\n    Example:\n    \n    ```\n    Enter the number of the alarm to cancel: 1\n    ```\n\n3. **Show Alarms**: Display all currently set alarms.\n\n    - A list of all active alarms will be shown with their respective times.\n\n4. **Done**: Finalize alarm setup and start the monitoring process.\n\n    - When you choose \"Done\", the program will exit the menu and start monitoring for active alarms.\n\n### Program Operation\n\n- **Alarm Monitoring**: After choosing \"Done\", the program enters an ongoing loop where it continuously checks the current time against the set alarms.\n- **Alarm Activation**: When the system time matches the time of an active alarm, the alarm will trigger, and a message will be displayed.\n- **Alarm Deactivation**: Once triggered, the alarm will be deactivated automatically to prevent multiple triggers.\n\n### Example Interaction\n\n```\nCurrent time: 12:34:56\n\nOptions:\n1. Set Alarm\n2. Cancel Alarm\n3. Show Alarms\n4. Done\nChoose an option: 1\n\nEnter alarm time (12-hour format):\nHour (1-12): 6\nMinute (30): 0\nSecond (0): 0\nAM/PM (A/P): P\n\nAlarm set for 06:30:00 PM\n\nOptions:\n1. Set Alarm\n2. Cancel Alarm\n3. Show Alarms\n4. Done\nChoose an option: 4\n\nStarting alarm...\n```\n\n## Troubleshooting\n\n- **Invalid Input**: If you enter invalid data (e.g., an hour outside 1-12), the program will prompt you to enter valid values.\n- **Program Not Starting**: Ensure you have compiled the program correctly and have the necessary permissions to execute it.\n\n## Contributing\n\nFeel free to contribute to this project by submitting issues or pull requests. To contribute:\n\n1. Fork the repository.\n2. Create a new branch for your changes.\n3. Make your modifications and commit them.\n4. Submit a pull request for review.\n\n---\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frkstudio585%2Falarm-clock-c","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frkstudio585%2Falarm-clock-c","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frkstudio585%2Falarm-clock-c/lists"}