PCountdown - countdown timer

Stuff that has yet to be sorted into a category.
Message
Author
User avatar
vovchik
Posts: 1507
Joined: Tue 24 Oct 2006, 00:02
Location: Ukraine

#31 Post by vovchik »

Dear mick,

Here is an icon I found (PD) that might be suitable for PCountdown.

With kind regards,
vovchik
Attachments
clock-timer-alarm.png
(4.12 KiB) Downloaded 1393 times

User avatar
01micko
Posts: 8741
Joined: Sat 11 Oct 2008, 13:39
Location: qld
Contact:

#32 Post by 01micko »

Hello vovchik

Thanks for all your help, I fixed the <vbox> tag with your suggestion, and also reduced the icon to 16x16 and added to the package and also added the full size icon to the main post with instructions on how to use it on the desktop.

Cheers

Mick

___________________________________

V -1.7 is out..

See main post
Puppy Linux Blog - contact me for access

davesurrey
Posts: 1198
Joined: Tue 05 Aug 2008, 18:12
Location: UK

#33 Post by davesurrey »

01micko:
Been busy on other things so just seen your latest version. Really excellent work. Many thanks. Couldn't be better.
Dave

User avatar
vovchik
Posts: 1507
Joined: Tue 24 Oct 2006, 00:02
Location: Ukraine

#34 Post by vovchik »

Dear Mick,

Have a look at this timer prog. It uses Xdialog for the GUI. I changed it a bit in order to accommodate command line arguments. You can put it wherever you want and type, for example,

Code: Select all

./pcntdwn "0/0/5" "xterm -e ls" 
to run xterm with parameters in 5 seconds' time. The countdown bit is pretty nice, since it uses a GTK widget, but your prog offers a better GUI and more control. In any case, here is some more food for thought. If you simply click on pcntdwn in Rox without arguments, you will launch the GUI. I think we might need to do some error checks on the command line input and clean up the logic relating to that aspect. My mods were just a quick hack to get it running. Launching in a terminal with -help or --help displays usage.

With kind regards,
vovchik
Attachments
pcntdwn.tar.gz
(1.81 KiB) Downloaded 656 times

User avatar
01micko
Posts: 8741
Joined: Sat 11 Oct 2008, 13:39
Location: qld
Contact:

#35 Post by 01micko »

Hello vovchik

That is a cool little countdown timer, up to 100 hrs too I see. It would be great for offpeak downloading... let's say

Code: Select all

./pcntdwn "5/0/0" wget -[options] http://www.someaddress/somefile
Easy. You could set it before you go to bed. I could add a box to run a command to mine too, but I think Pschedule takes care of it anyway.

BTW, I just did 2 tests on my old box (over 2 days). If you set for 24 hours it works but restarts the timer immediately, if you set for 23h 59m 59s it works as expected.. I will remove 24 from the dropdown in the next release.

Dave, you are now even more spoilt for choice!

Cheers

Mick
Puppy Linux Blog - contact me for access

davesurrey
Posts: 1198
Joined: Tue 05 Aug 2008, 18:12
Location: UK

#36 Post by davesurrey »

01micko wrote:
Dave, you are now even more spoilt for choice!
Yes the latest one from vovchik is small and elegant.

So in the space of a week I now have countdown timers courtesy of jemimah, Lobster, vovchik and yourself...plus a few count-up timer suggestions. :-)

Many thanks to all.
Dave
Thinks: now if I could get the attention of a GUI expert to fix the double menus problem in Gxine in 214X http://murga-linux.com/puppy/viewtopic.php?t=47779 my life would be complete....or close to it. :-)

User avatar
01micko
Posts: 8741
Joined: Sat 11 Oct 2008, 13:39
Location: qld
Contact:

#37 Post by 01micko »

minor bugfix update... but I'll let it go as V -0.2.0...

See main post
Puppy Linux Blog - contact me for access

User avatar
01micko
Posts: 8741
Joined: Sat 11 Oct 2008, 13:39
Location: qld
Contact:

#38 Post by 01micko »

Now at version 1.0

Has fancy yaf-splash fonts now, CatDude is responsible for making me do this, blame him.. :lol:

Also, the gui is killed now while counting down

see main post
Puppy Linux Blog - contact me for access

User avatar
technosaurus
Posts: 4853
Joined: Mon 19 May 2008, 01:24
Location: Blue Springs, MO
Contact:

#39 Post by technosaurus »

Kinda reminds me of Xpad - but with the features it was missing
Check out my [url=https://github.com/technosaurus]github repositories[/url]. I may eventually get around to updating my [url=http://bashismal.blogspot.com]blogspot[/url].

User avatar
ttuuxxx
Posts: 11171
Joined: Sat 05 May 2007, 10:00
Location: Ontario Canada,Sydney Australia
Contact:

#40 Post by ttuuxxx »

here's a icon I made for it. feel free to use it or not, lol the gnome one above that vovchik posted, is cool. Just figured I would make one you could call your own, or not, lol
ttuuxxx
Attachments
timer128.png
(13.53 KiB) Downloaded 1198 times
timer48.png
(3.3 KiB) Downloaded 1161 times
timer16.png
(816 Bytes) Downloaded 1182 times
http://audio.online-convert.com/ <-- excellent site
http://samples.mplayerhq.hu/A-codecs/ <-- Codec Test Files
http://html5games.com/ <-- excellent HTML5 games :)

User avatar
01micko
Posts: 8741
Joined: Sat 11 Oct 2008, 13:39
Location: qld
Contact:

#41 Post by 01micko »

Hi ttuuxxx

Thanks for that. I posted it in the main post, let the user decide :)

It is very handy as a desktop app this, especially if you have a computer in the Out house, great for timing that fancy dish to perfection. :lol: my wife's machine is in the Out house and we actually use this app for this purpose, and with a desktop icon.

Cheers
Puppy Linux Blog - contact me for access

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

#42 Post by trapster »

my wife's machine is in the Out house and we actually use this app for this purpose, and with a desktop icon
I always thought a laptop mounted on a Out house cupboard door with a GOOD recipe app would be sweet!!
trapster
Maine, USA

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

davesurrey
Posts: 1198
Joined: Tue 05 Aug 2008, 18:12
Location: UK

#43 Post by davesurrey »

Hi 01micko,
Thanks for this version. I like the fact the GUI disappears whilst counting down but I do feel the countdown clock seems a bit small for my personal liking. Not sure how I could adjust the font size?

Can you point me in the right direction pls.
Thanks as ever
Dave

User avatar
trio
Posts: 2076
Joined: Sun 21 Dec 2008, 15:50
Location: अनà¥￾मोदना

#44 Post by trio »

trapster wrote:
my wife's machine is in the Out house and we actually use this app for this purpose, and with a desktop icon
I always thought a laptop mounted on a Out house cupboard door with a GOOD recipe app would be sweet!!
while dancing with wify? :wink:

User avatar
01micko
Posts: 8741
Joined: Sat 11 Oct 2008, 13:39
Location: qld
Contact:

#45 Post by 01micko »

davesurrey wrote:Hi 01micko,
Thanks for this version. I like the fact the GUI disappears whilst counting down but I do feel the countdown clock seems a bit small for my personal liking. Not sure how I could adjust the font size?

Can you point me in the right direction pls.
Thanks as ever
Dave
Hi Dave

Sorry for late reply, missed it..

It seems yaf splash can only do 12x24 with the default font. With other fonts it seems it is font dependant. I will look for a suitable font that is in most puppy systems that shows the best. May even make it a choice in the gui.

Cheers
Puppy Linux Blog - contact me for access

davesurrey
Posts: 1198
Joined: Tue 05 Aug 2008, 18:12
Location: UK

#46 Post by davesurrey »

Hi 01micko
Did you manage to find anything suitable?
Cheers
Dave

User avatar
01micko
Posts: 8741
Joined: Sat 11 Oct 2008, 13:39
Location: qld
Contact:

#47 Post by 01micko »

Dave, new version is out, should be to your liking :wink:

Ver 1.1

See main post
Puppy Linux Blog - contact me for access

davesurrey
Posts: 1198
Joined: Tue 05 Aug 2008, 18:12
Location: UK

#48 Post by davesurrey »

V1.1
Perfect, as tested on 431 and 214X-RC3 :-)
As ever thanks for all your efforts micko.
Much appreciated.
Cheers
Dave

User avatar
01micko
Posts: 8741
Joined: Sat 11 Oct 2008, 13:39
Location: qld
Contact:

#49 Post by 01micko »

Big enough I hope Dave.. I can make more and quite larger options if necessary. I know the method now.

Cheers
Puppy Linux Blog - contact me for access

User avatar
abushcrafter
Posts: 1418
Joined: Fri 30 Oct 2009, 16:57
Location: England
Contact:

#50 Post by abushcrafter »

Code: Select all

#ChangeLog --------------------------------------------------------------------
#	2011/02/23 00:01:51 abushcrafter Email=http://www.google.com/recaptcha/mailhide/d?k=01uNeUuXxeNm9FA3Zciuoqzw==&c=nVfKeb7kjqZVVIQanqJwEC2DP5zrALkSERTopYvj_pU=
#		* 0.1.2: "pcountdown.sh": Now generates a list of the contents of "/usr/share/audio/" for the "NOISE" combo box. For this I nicked some code from Pbootsound.
#		* 0.1.2: "func"         : Now uses "defaultsoundplayer" for playing "NOISE". Any audio format is now aloud in the "NOISE" combo box.
#		* 0.1.2: "pcountdown.sh": Checks if "defaultsoundplayer" is in the "$PATH". If not gives error but does not exit.
#		* 0.1.2: "pcountdown.sh": Tweaked "PCountdown Timer" GUI text.
#		* 0.1.2: "pcountdown.sh": Corrected legal stuff. Added Michael Amadio (01micko) email.
#		* 0.1.2: "pcountdown.sh": The real name of 01micko is now used for copyright.
#		* 0.1.2: "pcountdown.sh","func" : Settings are now in "$XDG_CONFIG_HOME".
I have also moved some files to the correct (I think.) locations and replaced the luncher which a syslink. I have also used the new icon by ttuuxxx and edited the ".desktop" file to my liking.

A new dependency: defaultsoundplayer-0.0.1

For the icon in the menu to work. You need to add a some paths to a XML config file.

Strings to add:

Code: Select all

	<IconPath>/usr/share/icons</IconPath>
	<IconPath>/usr/share/icons/locolor/16x16/apps</IconPath>
	<IconPath>/usr/share/icons/locolor/48x48/apps</IconPath>
	<IconPath>/usr/share/icons/hicolor/16x16/apps</IconPath>
	<IconPath>/usr/share/icons/hicolor/48x48/apps</IconPath>
XML config file to add string to:

Code: Select all

/etc/xdg/templates/_root_.jwmrc
The section you need to add it to:

Code: Select all

    <!-- <Icons> -->
    <!-- <IconPath>$HOME/.icons</IconPath> -->
	<IconPath>/usr/local/lib/X11/mini-icons</IconPath>
	<IconPath>/usr/local/lib/X11/pixmaps</IconPath>
	<IconPath>/usr/share/pixmaps</IconPath>
	<IconPath>/usr/local/share/pixmaps</IconPath>
    <!-- </Icons> -->
The results you are aiming for:

Code: Select all

    <!-- <Icons> -->
    <!-- <IconPath>$HOME/.icons</IconPath> -->
	<IconPath>/usr/local/lib/X11/mini-icons</IconPath>
	<IconPath>/usr/local/lib/X11/pixmaps</IconPath>
	<IconPath>/usr/local/share/pixmaps</IconPath>
	<IconPath>/usr/share/pixmaps</IconPath>
	<IconPath>/usr/share/icons</IconPath>
	<IconPath>/usr/share/icons/locolor/16x16/apps</IconPath>
	<IconPath>/usr/share/icons/locolor/48x48/apps</IconPath>
	<IconPath>/usr/share/icons/hicolor/16x16/apps</IconPath>
	<IconPath>/usr/share/icons/hicolor/48x48/apps</IconPath>
    <!-- </Icons> -->
Attachments
PCountdown-1.3.pet
(22.12 KiB) Downloaded 504 times
[url=http://www.adobe.com/flashplatform/]adobe flash is rubbish![/url]
My Quote:"Humans are stupid, though some are clever but stupid." http://www.dependent.de/media/audio/mp3/System_Syn_Heres_to_You.zip http://www.systemsyn.com/

Post Reply