python alarm clock
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.idea
alarms
images
.gitattributes
.gitignore
LICENSE
README.md
alarmDataManager.py
playFile.pyw
pyAlarm.pyw
timer.pyw

README.md

pyAlarm.py

An alarm clock (written in Python, Json) that plays mp3 files.

Donate

Buy me a Beer 🍺

Requires

  • Python
  • pycaw (install python module with pip)
    • pycaw is a module for adjusting the volume in windows
      • this is why it will need adjusting before working on macOS or Linux
  • PySide2 (install python module with pip)

Settings

settings are in a json file.
Obviously, you'll want to adjust the file to your liking.

disabledUntilAfter alarms will not play if before or on this date.

enable
true or false

file
the mp3 file to play
but it can be any file you system can open

volume
the volume the computer should be at

time
time to play the alarm (military - no colon)

Sa,M,T,W,R,F,Su
these are bools on whether or not the alarm should execute on those days.

exeDay
the last day this alarm was executed

{
    "disabledUntilAfter": 0,
    "alarms": [
        {
            "enable": true,
            "file": "alarms\\Awaken.mp3",
            "volume": 0.12,
            "time": "09:00",
            "Su": false,
            "M": true,
            "T": true,
            "W": true,
            "R": true,
            "F": true,
            "Sa": false,
            "exeDay": 0
        }
    ]
}

UI

Task Bar Icon

Imgur

Main Window

Imgur

Tool Bar

Add New Alarm
Imgur

Show Json Code/Settings
Imgur

disable alarms for the rest of the day
Imgur

disable alarms for the rest of the day and tomorrow
Imgur

undo disable Imgur