maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Applications (https://talk.maemo.org/forumdisplay.php?f=41)
-   -   Interval Timer App (https://talk.maemo.org/showthread.php?t=64860)

JasGun 2010-11-01 13:56

Interval Timer App
 
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 2010-11-01 13:59

Re: Interval Timer App
 
The geek way to do it (in xterm):
Code:

while true; do sleep 20; echo "interval 1"; sleep 10; echo "interval 2"; done
:)

JasGun 2010-11-01 14:23

Re: Interval Timer App
 
Thanks, that worked!

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

jedi 2010-11-01 20:17

Re: Interval Timer App
 
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


kureyon 2010-11-02 11:22

Re: Interval Timer App
 
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.


All times are GMT. The time now is 04:15.

vBulletin® Version 3.8.8