You are not logged in.

#1 2009-03-25 00:24:14

jerryluc
Member
From: Norway
Registered: 2008-05-20
Posts: 95

wakeupKISS.py

I'm using my cell phone as wake up alarm in the morning. But in the last 4 weeks i've lost and destroyed my cell phone several times.(stupid) So I had to use my laptop as an wakeup alarm. But i didn't find any alarm apps that I liked. So i decided to write my own. I'm very new to programming so don't be to harsh. But I really would appreciate some feed back on the program. What have I'm done wrong, what have I done nasty and what have I done ok? is it KISS?

wakeupKISS is a cli app written in python, it's very straight forward. You put in the time you want the alarm to be set off, and when the alarm goes off it asks if you want to snooze.

It depends on pymedia(python-pymedia in aur) to play the sound. the sound is /usr/share/sounds/logout.wav witch comes with gnome(i think), but any wav-file works.

http://folk.ntnu.no/havarnov/python/wakeupKISS.py

Offline

#2 2009-03-25 00:40:00

rson451
Member
From: Annapolis, MD USA
Registered: 2007-04-15
Posts: 1,233
Website

Re: wakeupKISS.py

I've not looked at the script, but a suggestion -- check out the unix utility "at".  It's really nifty for this sort of thing smile


archlinux - please read this and this — twice — then ask questions.
--
http://rsontech.net | http://github.com/rson

Offline

#3 2009-03-25 20:21:26

Arm-the-Homeless
Member
Registered: 2008-12-22
Posts: 273

Re: wakeupKISS.py

I'd use espeak to make it say "WAKE THE KISS UP!"

Offline

#4 2009-03-25 20:54:34

pyther
Member
Registered: 2008-01-21
Posts: 1,395
Website

Re: wakeupKISS.py

You might want to consider putting time.sleep(10) in there


Website - Blog - arch-home
Arch User since March 2005

Offline

Board footer

Powered by FluxBB