This is a simple alarm clock built using Python that allows a user to set a specific time and plays a sound when that time is reached.
I created this project to understand how real-time systems work using Python, especially working with time, loops, and external libraries.
- Set alarm using time format (HH:MM:SS)
- Displays live current time
- Plays a sound when alarm triggers
- Handles invalid time input
- Uses real-time checking with seconds precision
- Python
- Built-in modules:
time,datetime - External library:
pygame(for sound)
- Working with date and time in Python
- Real-time loop execution
- Using external libraries (
pygame) - Handling user input and validation
- Basic automation logic
- Install pygame (if not installed):
pip install pygame