From dcbb86c07e48a0258aefe9777dc57c16859b6583 Mon Sep 17 00:00:00 2001 From: Aditya9764 <90107321+Aditya9764@users.noreply.github.com> Date: Sat, 21 Oct 2023 18:39:10 +0530 Subject: [PATCH 1/2] Create Alarm_clock-App.md # Alarm-clock-Timer This is a simple Python program that allows the user to set an alarm for a certain amount of time and choose an alarm sound. The user is prompted to enter the number of minutes and seconds to wait and to choose an alarm sound from a list of four options. Once the countdown timer reaches zero, the selected alarm sound will play, indicating that the time has elapsed. The user can choose from four different alarm sounds. This program uses the playsound library to play the selected sound file and the time library to keep track of the elapsed time. The program also utilizes escape sequences to clear the terminal and update the countdown timer display. # Requirements This program requires the playsound library to be installed. You can install it using pip: pip install playsound # Usage To run the program, simply execute the Python script in your preferred environment or terminal: python alarm_clock.py Follow the prompts to set the desired time and alarm sound. The program will then start a countdown timer and play the selected sound once the timer reaches zero. --- Projects/1-Beginner/Alarm_clock-App.md | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 Projects/1-Beginner/Alarm_clock-App.md diff --git a/Projects/1-Beginner/Alarm_clock-App.md b/Projects/1-Beginner/Alarm_clock-App.md new file mode 100644 index 00000000..ccaa1261 --- /dev/null +++ b/Projects/1-Beginner/Alarm_clock-App.md @@ -0,0 +1,18 @@ +# Alarm-clock-Timer +This is a simple Python program that allows the user to set an alarm for a certain amount of time and choose an alarm sound. The user is prompted to enter the number of minutes and seconds to wait and to choose an alarm sound from a list of four options. + +Once the countdown timer reaches zero, the selected alarm sound will play, indicating that the time has elapsed. The user can choose from four different alarm sounds. + +This program uses the playsound library to play the selected sound file and the time library to keep track of the elapsed time. The program also utilizes escape sequences to clear the terminal and update the countdown timer display. + +# Requirements +This program requires the playsound library to be installed. You can install it using pip: +pip install playsound + +# Usage +To run the program, simply execute the Python script in your preferred environment or terminal: +python alarm_clock.py + +Follow the prompts to set the desired time and alarm sound. The program will then start a countdown timer and play the selected sound once the timer reaches zero. + + From 657f2d3b400cfe1a3acdcbe5782004cbf7204550 Mon Sep 17 00:00:00 2001 From: Aditya9764 <90107321+Aditya9764@users.noreply.github.com> Date: Sat, 21 Oct 2023 18:43:17 +0530 Subject: [PATCH 2/2] Update Alarm_clock-App.md Add example project link https://data-flair.training/blogs/alarm-clock-python/ https://github.com/Aditya9764/Alarm-Clock-Timer --- Projects/1-Beginner/Alarm_clock-App.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Projects/1-Beginner/Alarm_clock-App.md b/Projects/1-Beginner/Alarm_clock-App.md index ccaa1261..0a266a1c 100644 --- a/Projects/1-Beginner/Alarm_clock-App.md +++ b/Projects/1-Beginner/Alarm_clock-App.md @@ -16,3 +16,6 @@ python alarm_clock.py Follow the prompts to set the desired time and alarm sound. The program will then start a countdown timer and play the selected sound once the timer reaches zero. +## Example projects +[Data fair training](https://data-flair.training/blogs/alarm-clock-python/) + [Aditya9764](https://github.com/Aditya9764/Alarm-Clock-Timer)