Active Topics

 



Notices


Reply
Thread Tools
Posts: 2 | Thanked: 0 times | Joined on Nov 2010
#1
Hi all,

Does anyone know if there is an interval timer for the N900.
Something that can time say 20 seconds / then 10 seconds & repeat several times.

Something on OVI store below would be perfect but its not available for the N900!

http://store.ovi.com/content/48203

Any assistance would be great!

Thanks
 
jedi's Avatar
Posts: 1,411 | Thanked: 1,330 times | Joined on Jan 2010 @ Tatooine
#2
The geek way to do it (in xterm):
Code:
while true; do sleep 20; echo "interval 1"; sleep 10; echo "interval 2"; done
 

The Following 2 Users Say Thank You to jedi For This Useful Post:
Posts: 2 | Thanked: 0 times | Joined on Nov 2010
#3
Thanks, that worked!

Is there a way that I can turn the back light say green on interval 1 & then Red on interval 2?

Last edited by JasGun; 2010-11-01 at 16:14.
 
jedi's Avatar
Posts: 1,411 | Thanked: 1,330 times | Joined on Jan 2010 @ Tatooine
#4
I can do it in Bash so I can use ASCII codes for setting the terminal to inverted background etc.

If you haven't got Bash installed, you can "apt-get install bash" as the root user. Then type 'Bash' in XTerm to a Bash session. Then do this (you can type it all on one line)

Code:
while true; do 
   echo -e "\033[?5h\033[2J interval 1" ;
   sleep 20 ;
   echo -e "\033[?5l\033[2J interval 2" ;
   sleep 10 ;
done
 
Posts: 992 | Thanked: 738 times | Joined on Jun 2010 @ Low Earth Orbit
#5
You can also use aplay to play a WAV file at the end of the interval. Or use
Code:
espeak "Out of time, self-destruct sequence started"
if you have espeak installed.
 
Reply


 
Forum Jump


All times are GMT. The time now is 23:14.