← Projects

Delete alarm.py

aff15b0a1a2647ade33128ed2ab0beb4df42ff89 · ovidiucs · Jul 14, 2013 23:50

−29 · 1 file changed

  • Numbers/alarm.py +0 −29
diff --git a/Numbers/alarm.py b/Numbers/alarm.py
deleted file mode 100644
index 88ee94c..0000000
--- a/Numbers/alarm.py
+++ /dev/null
@@ -1,29 +0,0 @@
-"""
-Alarm Clock - A simple clock where it plays a sound after
-X number of minutes/seconds or at a particular time.
-
-Dependencies:
-pyglet
-    pip install pyglet
-"""
-
-import time
-import winsound
-import pyglet
-
-if __name__ == '__main__':
-    hh = input('What hour do you want to wake up (0-23)? ')
-    mm = input('What minute do you want to wake up (0-59)? ')
-
-    not_alarmed = 1
-
-    while(not_alarmed):
-        cur_time = list(time.localtime()) # get the time right now
-        hour = cur_time[3] # find the hour
-        minute = cur_time[4] # and the minute
-        if hour == hh and minute == mm:
-            song = pyglet.media.load('bin/sound.wav')
-            song.play() # play the sound
-            pyglet.app.run()
-            not_alarmed = 0 # stop the loop
-