Skip to content

moroniq/alarm_clock

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 

Repository files navigation

# Alarm Clock

A simple alarm clock in Python.

It allows you to set an alarm after a given number of hours/minutes.

When the alarm time is reached, it plays an MP3 file.

## How it works

- Uses datetime and timedelta to calculate the alarm time.

- Waits in a loop until the current time reaches the alarm.

- Plays an MP3 file using playsound.

## Requirements

- Python 3.x

- playsound 1.2.2

Install with:

pip install playsound==1.2.2

Run

Put your .mp3 file in the project folder and update the path in the code:



python

Skopiuj kod

playsound(r"C:\\path\\to\\your\\file.mp3")

About

Simple Python alarm clock in Jupyter Notebook — plays an mp3 sound at a set time using datetime and playsound.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors