maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Applications (https://talk.maemo.org/forumdisplay.php?f=41)
-   -   Maemo beeper (https://talk.maemo.org/showthread.php?t=30613)

RevenanT 2009-08-02 03:45

Maemo beeper
 
Hello guys!

Iīm looking for an application that beeps after a given time, continuously. Letīs say that I need a beep every 1 minute, for 30 minutes. Is there anything like that?

zerojay 2009-08-02 04:29

Re: Maemo beeper
 
You could probably use a crontab for that without needing any special/external programs.

Thesandlord 2009-08-02 04:41

Re: Maemo beeper
 
you could probably whip something up in Flash or Python really easily. Or BASH. Just sleep for sixty seconds, then beep, and loop that x times.

t_moyashi 2009-08-02 05:06

Re: Maemo beeper
 
Quote:

Originally Posted by RevenanT (Post 308258)
Hello guys!

Iīm looking for an application that beeps after a given time, continuously. Letīs say that I need a beep every 1 minute, for 30 minutes. Is there anything like that?

I recommend eggtimer.
It is useful .

and I wrote a simple one-liner.
If mplayer is already installed, this script will work in Osso-Xterm.
Code:

for i in `seq 0 30` ;  do  echo $i min ; mplayer -really-quiet  /usr/share/sounds/camera-video-record.wav  ; sleep 60 ; done
Copy&paste it and press the Return key.
but strictly speaking , this script doesn't keep good time.
(lose 0.3~0.5 sec / loop)
Code:

> time  mplayer /usr/share/sounds/camera-video-record.wav  -really-quiet
real    0m 0.41s


qwerty12 2009-08-02 08:40

Re: Maemo beeper
 
1 Attachment(s)
I'll be shot for this one day.

Code:

#include <unistd.h>
#include <glib.h>
#include <gtk/gtk.h>
#include <hildon/hildon.h>

int main (int argc, char *argv[])
{
        int i;

        if (!g_thread_supported ())
                g_thread_init (NULL);

        gtk_init(&argc, &argv);

        for (i = 1; i<=30; i++)
        {
                hildon_play_system_sound("/usr/share/sounds/camera-video-record.wav");
                sleep(60);
        }
        return 0;
}


RevenanT 2009-08-02 16:13

Re: Maemo beeper
 
Whoa! I appreciate all the help, guys. I will give it a try this afternoon.
and btw, I have tried eggtimer, but it does not have the option to beep every minute.

Thanks!

Den in USA 2009-08-02 16:20

Re: Maemo beeper
 
Quote:

Originally Posted by RevenanT (Post 308304)
Whoa! I appreciate all the help, guys. I will give it a try this afternoon.
and btw, I have tried eggtimer, but it does not have the option to beep every minute.

Thanks!

Yes, Eggtimer can do 1 minute time-outs. Just slide the “minutes” center bar all the way down.

YoDude 2009-08-02 16:20

Re: Maemo beeper
 
Quote:

Originally Posted by RevenanT (Post 308304)
Whoa! I appreciate all the help, guys. I will give it a try this afternoon.
and btw, I have tried eggtimer, but it does not have the option to beep every minute.

Thanks!

I hit the thanks button for these guys because I have been assisted by them in the past and will pro'ly need assistance on something else in future. It's a good thing having members like them on board. :)

RevenanT 2009-08-02 16:22

Re: Maemo beeper
 
Quote:

Originally Posted by YoDude (Post 308307)
I hit the thanks button for these guys because I have been assisted by them in the past and will pro'ly need assistance on something else in future. It's a good thing having members like them on board. :)

Good tip! Done :)

Den in USA 2009-08-02 16:24

Re: Maemo beeper
 
Does 1 minute, see post #7.


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

vBulletin® Version 3.8.8