A working alarm clock for X-precise 2.4

Booting, installing, newbie
Post Reply
Message
Author
Euro240
Posts: 16
Joined: Fri 11 Mar 2016, 22:38

A working alarm clock for X-precise 2.4

#1 Post by Euro240 »

Hi guys, does anyone know of a good alarm clock for x-precise 2.4.
I have spent hours searching for this, and never found one that actually works, in precise puppy 2.4
I know that 2.4 is obsolete now, and there is no development for it, so im hoping posting this will help me

User avatar
Geoffrey
Posts: 2355
Joined: Sun 30 May 2010, 08:42
Location: Queensland

#2 Post by Geoffrey »

This may be of use.

"The plugin is quite simple – it displays a progressbar showing the percentage of the time elapsed. Left-clicking on the plugin area opens a menu of available alarms. After selecting one, the user can start or stop the timer by selecting “start/stop timer
Attachments
xfce4-timer-plugin-1.0.0-i486.pet
(38.81 KiB) Downloaded 142 times
[b]Carolina:[/b] [url=http://smokey01.com/carolina/pages/recent-repo.html]Recent Repository Additions[/url]
[img]https://dl.dropboxusercontent.com/s/ahfade8q4def1lq/signbot.gif[/img]

User avatar
trapster
Posts: 2117
Joined: Mon 28 Nov 2005, 23:14
Location: Maine, USA
Contact:

#3 Post by trapster »

Oldie but goody.

Try Palarm-0.1.pet
or
Palarm-url.tar.gz

Discussion found Here

I have no idea if it will work in your version.
trapster
Maine, USA

Asus eeepc 1005HA PU1X-BK
Frugal install: Slacko
Currently using full install: DebianDog

Euro240
Posts: 16
Joined: Fri 11 Mar 2016, 22:38

#4 Post by Euro240 »

Hi, the palarm doesn't work correctly for me, I had already tried it.

The plugin alarm seems good, but i don't know how to specify a command.
I want the alarm to play and MP3 file at max volume at the given time.
Could someone tell me how to write this command?

User avatar
fabrice_035
Posts: 765
Joined: Mon 28 Apr 2014, 17:54
Location: Bretagne / France

#5 Post by fabrice_035 »

example, play any mpg file at 2030 (PM 8:30) ...

Code: Select all

while [ `date +"%H%M"` != "2030" ] ; do echo "wait alarm..." & sleep 10; done ; mplayer *.mpg
tune to, google/bing/other can help u.

Euro240
Posts: 16
Joined: Fri 11 Mar 2016, 22:38

#6 Post by Euro240 »

That's great, if you want to run from a terminal, however it doesn't tell me how to enter a command into the xfce4 timer options...

I have tried a few commands, but they don't work, and there is no tutorials that comes with the timer application...

Really stuck here.. I have spent over 2 hours trying to get this to work...

http://www.fast-files.com/getfile.aspx?file=109716

heres a screen shot... the timer asks for a command to run, I simply want it to play the mp3 file on my desktop..

User avatar
trapster
Posts: 2117
Joined: Mon 28 Nov 2005, 23:14
Location: Maine, USA
Contact:

#7 Post by trapster »

Have you tried

mplayer /path/to/your/file.mp3

?
trapster
Maine, USA

Asus eeepc 1005HA PU1X-BK
Frugal install: Slacko
Currently using full install: DebianDog

Euro240
Posts: 16
Joined: Fri 11 Mar 2016, 22:38

#8 Post by Euro240 »

Yeah pretty much, that's why I left it in the screenshot (as best I could)

mplayer /root/desktop/1.mp3

If I type this in the terminal this works without problems and play at the default volume.
However, the timer simply doesn't do anything when the time comes up...

I tired a few other things..
I simply entered "firefox in the command box and it do not open firefox after the timer was up...

I'm guessing this may mean this app doesn't work?
I'd be very surprised since Its the xfce timer, being used with the xfce environment!

theru
Posts: 163
Joined: Thu 23 Jul 2015, 16:40
Location: Heers, Belgium

#9 Post by theru »

Just tested mplayer with pschedule in tahrpup, it worked fine.

If it's not installed, you can find it in the package manager in the noarch repo.

Euro240
Posts: 16
Joined: Fri 11 Mar 2016, 22:38

#10 Post by Euro240 »

nah.. seriously I use mplayer every day.. like i said, it works fine in the terminal..
but nothing seems to work in the timer command box?

I'm not really sure how to make that clearer?

heres a screenshot of my mplayer working from the terminal...

http://www.fast-files.com/getfile.aspx?file=109722

I can "promise" that the mplayer actually played a sound whilst I took the screenshot :)

theru
Posts: 163
Joined: Thu 23 Jul 2015, 16:40
Location: Heers, Belgium

#11 Post by theru »

I was not talking about an xfce4 timer, I was talking about pschedule, a task scheduler. You did say you wanted to execute a command at a specific time?

I set up pschedule to play the 2barks audio using mplayer every minute. It kept doing that even after I closed pschedule. The only way to stop it was by removing the task.

Euro240
Posts: 16
Joined: Fri 11 Mar 2016, 22:38

#12 Post by Euro240 »

theru wrote:I was not talking about an xfce4 timer, I was talking about pschedule, a task scheduler. You did say you wanted to execute a command at a specific time?

I set up pschedule to play the 2barks audio using mplayer every minute. It kept doing that even after I closed pschedule. The only way to stop it was by removing the task.
Yes, only I need it to play the mp3 file.
Pschedule will play the file, but I have no way to switch it off!!!


EDIT> I can "hard kill it" in taskmanager...

Yet... The task shows as executable at 00:00. It seems it will not work if I schedule a task after midnight.... OMG.... I will have to test it...
midnight is in 37 minutes...

theru
Posts: 163
Joined: Thu 23 Jul 2015, 16:40
Location: Heers, Belgium

#13 Post by theru »

How about something like...

rxvt -e mplayer /mnt/home/test.mp3

This command runs mplayer in a new terminal window that I could close normally.

edit: rxvt -iconic -e mplayer will run mplayer minimized

Euro240
Posts: 16
Joined: Fri 11 Mar 2016, 22:38

#14 Post by Euro240 »

Nope, It appears neither of these ideas are working either.

rxvt -e mplayer

This works in the terminal, but not in the timer plugin.

the scheduled command seemed to work at first, but now it simply reverts back to 00:00 each time I try to use it...

Seriously.... Is there no simple app that can do this?
I appreciate your help here... but I asked this question 3 days ago, and so far I still do not have a working program that can open and play an mp3 file at a certain time..
I have wasted 6 hours of this evening looking for a simple app that can do this.
I wasted another few hours a few days ago, before i asked others for help on the forum...
under windows I would have searched it ou,t found it on the 2nd Google listing and installed it in less than 5 mins...

This really is not winning me over... in fact im getting pretty frustrated at it!

Nothing intended towards the people who have tried to help me here, but spending this length of time, to get a simple task to work is just completely ridiculous

theru
Posts: 163
Joined: Thu 23 Jul 2015, 16:40
Location: Heers, Belgium

#15 Post by theru »

The palarm pet doesn't have alarmclock-CLI included. I've attached it for you.
You can find instructions about its usage at the first page of the thread trapster linked.

But really the only thing palarm does is play a song at a specified time using the default media player. Alarmclock-CLI by itself allows for more options.

However you can change this behavior by making a small change to the Palarm script. Here is how:

- Go to /usr/local/bin

- Right-click on Palarm and choose "Open as text"

- Near the end of the script locate the following line:

alarmclock-CLI -t $HOUR:$MINUTE -s "$SAVETO"

- Change it to:

alarmclock-CLI -a mplayer -t $HOUR:$MINUTE -s "$SAVETO"

After this change Palarm will use mplayer instead of whatever is set as the default media player.

I'm quite surprised that you are having problems with pschedule. I've tried changing the command using the edit button and it worked just fine.

Lastly I've tried my luck in the PPM and searched for packages containing the word 'alarm'. One of the first results was alarm-clock, a gtk program with quite a few options under the notification tab and no additional dependencies. You can even select it from the system tray after you've closed the window (with "closing" I mean by clicking at the button in the upper right corner, the menu option File - quit closes the program altogether).
Attachments
alarmclock-CLI.gz
extract the .gz file and place the executable in /usr/local/bin.
Run with no options for more info about how to use the program.
(2.15 KiB) Downloaded 107 times

Euro240
Posts: 16
Joined: Fri 11 Mar 2016, 22:38

#16 Post by Euro240 »

Just wanted to say thanks for taking your time on this...
Your patience was far better than mine!
I tried to download palarm, but my PPM wouldn't find it...
However I found I had downloaded it previously, and installed it.
I also don't thin the CLI worked at all, it didn't do anything when I executed it.
So, I went back to the normal palarm GUI and it seems to work!

theru
Posts: 163
Joined: Thu 23 Jul 2015, 16:40
Location: Heers, Belgium

#17 Post by theru »

alarmclock-CLI is a dependency of Palarm, in other words it is needed for Palarm to work correctly. I found that out when I ran Palarm from the command line and looked for any error messages.

Did you stick with Palarm's normal behavior? Or have you switched to another player?

You're right, it's not in the PPM. Must have it confused with another program.

How did you try to run alarmclock-CLI? It doesn't have a GUI, to get any output you need to run it from a terminal.

Euro240
Posts: 16
Joined: Fri 11 Mar 2016, 22:38

#18 Post by Euro240 »

hmm...
I tried to make it an executable and then I double clicked on it.
I placed it into the correct directory that you mentioned.
That may even be the reason why it decided to work correctly today...

as for running it in the terminal.. I didn't really know how to do that..
So I tried it, and got it running, then shut it down after reading the usage instructions...
I never actually set any alarms from the terminal..

I pretty much stuck with palarms normal behavior.
It does what I want at least... that's all I ask it to do, and it does it quite well.

Of course a more complex version would be good with a gui.
Like so I can set an alarm for next Tuesday morning or something..
but the fact that it works is enough for me..

just like to thank you again for your patience though!

theru
Posts: 163
Joined: Thu 23 Jul 2015, 16:40
Location: Heers, Belgium

#19 Post by theru »

I don't do much with the terminal myself but I sometimes find it quicker to type one or two short commands then to navigate around in menus and windows.

I have found an alarm clock with more features in the Ubuntu repositories. It's called alarm-clock and is available in the PPM.

If you can't find it here is a link to it on the Ubuntu website:

http://packages.ubuntu.com/precise/alarm-clock

When you set a new alarm you set the date/time in the General tab and the type of notification in the Notification tab.

Keep in mind that if you want to close the program you need to go through File - quit in the menu. If you simply close the window it will keep running in the system tray.

Post Reply