A command-line Alarm Clock built in Python.
It allows you to set an alarm in 24-hour format (HH:MM). When the system time matches the alarm time, it plays a sound (sound.mp3).
- ⏳ Set alarm in 24-hour format (HH:MM).
- 🔊 Plays audio file when alarm time is reached.
- ❌ Option to quit alarm with
"Q". - 🖥️ CLI based – runs on Linux, Windows, and macOS.
- Python 3.x
datetime→ fetch system timepygame→ play alarm soundtime→ sleep loop for time checking
- Python 3.x installed
- Install dependency:
pip install pygame- Place an alarm sound file in the same folder as:
sound.mp3
python project.pyEnter alerm time (HH:MM in 24hour format): 07:30
time chek hochhe
time chek hochhe
...
alarm bajbe
- Works on Windows, Linux, macOS (requires
pygame). - Ensure you have an MP3 file named sound.mp3 in the same folder.
- Support multiple alarms.
- Snooze option instead of quit.
- Display digital clock UI with Tkinter.
- Option to select custom alarm sounds.
Project_09_Simple_Alarm_Clock/
│── README.md # Documentation
│── project.py # Main source code
│── practice_set.md # Challenges
│── solutions.md # Hints/Solutions
│── sound.mp3 # Alarm sound file (user provided)
This project is open-source and free to use.