This is a simple alarm clock project implemented in Python. It allows users to set an alarm for a specific time and plays a sound when the alarm goes off.
- Set an alarm for a specific time using the 24-hour format.
- Display the current time.
- Play a sound when the alarm goes off.
- Python 3.x
-
When prompted, enter the desired alarm time in the format
HH:MM:SS
. For example, to set the alarm for 8:30:45 AM, enter08:30:45
. Ensure that you use the 24-hour format. -
The program will display the current time and wait for the alarm time to be reached.
-
Once the alarm time is reached, the program will play a sound to notify you.
-
You can stop the alarm by pressing
Ctrl + C
or closing the terminal window.
- You can modify the sound file played for the alarm by replacing the
alarm.wav
file in the project directory with your own audio file. Make sure the file is in WAV format.
Contributions are welcome! If you find any issues or would like to add new features, please open an issue or submit a pull request.