Page 1 of 3

PCountdown - countdown timer

Posted: Thu 15 Oct 2009, 13:29
by 01micko
This is the first stand alone app I wrote

I gave it a bit of an update for the new gtkdialog, requires at least r224 (I think, has spin buttons)

Wary version: (may work in many puppies *no guarantee) http://distro.ibiblio.org/quirky/pet_pa ... 246-w5.pet

There is a check so if it fails you get a splash message instead of bewilderment.

Have fun!

Original post
Hello Puppians,

This work is a classic example of Puppians cooperating with Puppians hence it's inception.

PCountdown

Yes, I've gone with the "P" prefix, seems like the Puppy thing to do.. :)

This is a simple, easy to use timer for short term periods (< 24hrs). It is highly configurable in the sense that you can adjust the amount of time to wait (of course!), where you would like the timer placed (9 options), what noise you want to hear, what colour you want to see the timer, and how long you want the thing to play noise at you.

Special thanks to 'davesurrey' and 'Lobster' ('davesurrey's' idea.. he could not find a decent countdown app in Linux)
Special thanks to vovchik for tips with gtkdialog

Cheers and enjoy


NOTE: This is still in development. If your machine decides to get up and ride your motorbike, bad luck (check the Seamonkey svg plugin :wink: ). I can not accept responsibility. If you can improve it do so, and share. Still work to be done

Changelog
PCountdown-2.0
now using spin buttons
PCountdown-1.1
Adjustable size of timer font- thanks Dave
PCountdown-1.0
improved yaf-splash fonts - thanks CatDude
kills gui while counting down
PCountdown-0.2.0
Fixed 24 hour bug... only use 23h 59m 59s as maximum
PCountdown-0.1.7
improved gtkdialog code - thanks vovchik
added 16x16 menu icon - thanks vovchik
PCountdown-0.1.6
Improved gui code - thanks vovchik
PCountdown-0.1.5
fixed (really, I hope this time) the 0800 to 0959 bug, new code
changed 'icon' to 'stock' in gui code - thanks vovchik
PCountdown-0.1.2
Bugfix, no timer :oops: - thanks Jim1911
Added - "Task" feild - thanks tclhost
Rearranged gui a little
PCountdown-0.1.1
Remembers values - thanks davesurrey, Jim1911, (zigbert)
Can vary splash screen time - thanks davesurrey

Footnote: Vovchik has supplied a nice icon which I attached. You can use it on the desktop. I put a smaller icon in the default package. If you want to use this icon on your desktop (I know my wife will, she hates to use the menu), first, save the attached icon in /usr/share/pcountdown, then just go to /usr/share/applications and drag PCoundown.desktop to your desktop. Right click, select >> File 'PCountdown.desktop' >>Set Icon, then drag the icon to the box. Then right click, select >> Edit Item and edit the text to be displayed under the icon.

ttuuxxx has supplied an alternate icon.. the choice is yours. :)

Posted: Thu 15 Oct 2009, 13:58
by trapster
Any chance of a "snooze" button? 5 or 10 minute reminders?

Posted: Thu 15 Oct 2009, 15:03
by davesurrey
Once more 01micko many thanks for this. It's just what I wanted.

It seems a bit crass to ask for more, when you have produced such a nice app already, but ....

It's good it gives a nice visable warning at the time-out. But this only seems to last for 5 secs. Any chance of this lasting until reset, in case folks are away from their desk when it times out? Is this what trapster is calling the snooze function?

And as I metioned in the other thread if the settings (position, colour etc) could be made persistent that would be great.

Cheers
Dave

Posted: Thu 15 Oct 2009, 16:40
by zigbert
Mick

Nice App !!!


Sigmund

Senior Use

Posted: Thu 15 Oct 2009, 16:51
by tlchost
For those of us that really need reminders, could you allow the app to count down to the next day.

It would be great to have it tell me tomorrow where I parked the car tonight...and keep me from wandering the neighborhood looking for it.

thanks

Thom

Posted: Thu 15 Oct 2009, 17:29
by Jim1911
Super!!

Consider having it remember last location.

Thanks,
Jim

Posted: Fri 16 Oct 2009, 08:45
by 01micko
Thanks for feedback everybody.

trapster, snooze is certainly possible, though at this stage not a priority.

davesurrey, re visible warning.. do you want an option for that? It could timeout any time you choose or not at all ...

tclhost :P (..and if you want more than 24 hrs use the "reminder" Pwidget :wink: )

Jim1911, yes, remembering previous configuration is on the "to do" list. A simple 'config' file will take care of that.

Cheers

Posted: Fri 16 Oct 2009, 11:36
by Lobster
Looking at this it seems to have a countdown timer - any use 8)
http://www.murga-linux.com/puppy/viewto ... 08&t=27496

Posted: Fri 16 Oct 2009, 12:04
by 01micko
Hi Lobster

Yes, saw that. From the current gui master himself :lol:

The countdown actually counts up though. That's why I used 'yaf-splash', (built-in countdown). Still, plenty of code in there that may give me ideas :idea:

Cheers

(..update soon, testing atm :wink: )

Posted: Fri 16 Oct 2009, 13:06
by 01micko
Ok, Now up to version 0.1.1 ( :shock: ) :lol:

Some requests catered for...

See Main Post

Posted: Fri 16 Oct 2009, 13:09
by Lobster
countdown actually counts up though
:oops:

got it
Will use this as a meditation timer
might improve my mind to the point where it starts working
:)

Posted: Fri 16 Oct 2009, 13:32
by Jim1911
Uninstalled 0.1 and installed 0.1.1 on 431. It remembers position setting but now doesn't count down regardless of time entered, Times Up comes up immediately.
:(

Posted: Fri 16 Oct 2009, 14:17
by 01micko
Jim1911

I can confirm the bug, but reproducing it is very intermittent. I tried on 2 other systems. It may be a timing issue. Were you on a fast or slow machine?

I'll wait for other reports, see if we can narrow it down.

Cheers, thanks for reporting.

Mick

Posted: Fri 16 Oct 2009, 14:20
by Jim1911
This is my System: BFG NVIDIA Geforce 8400 GS 512MB, Asus P6T Motherboard, Intel core i7-920 (8MB Cache, 2.66 GHz), DDR3 3GB 1333MHz ram, Pioneer DVR-2910 DVD+-RW Dual Layer Burner, Realtek ALC1200 Audio, HP Photosmart 5280 All-in-One, Printer-Scanner-Copier

Posted: Fri 16 Oct 2009, 14:36
by 01micko
Jim1911,

Try this one, experimental, but without experiments our knowledge can not grow :)

I added a sleep value in between the timer and the splash.

Cheers

Bug fix version removed, incorporated in main version

See Main Post

Posted: Fri 16 Oct 2009, 15:31
by Jim1911
Works fine!

Posted: Fri 16 Oct 2009, 15:37
by davesurrey
01micko wrote
davesurrey, re visible warning.. do you want an option for that? It could timeout any time you choose or not at all ...
Hi and sorry for delayed reply but my partner's PC HDD crashed so tryng to recover the data. Bit of an emergency.

For me it would be great to have the option that it continued to give a visible warning until it was reset but for others it might be better if that is optional.

Thanks as ever
Dave

Posted: Fri 16 Oct 2009, 16:01
by tlchost
01micko wrote: Try this one, experimental, but without experiments our knowledge can not grow :)
It works fine.....but, when it went off, I had to wonder....if I had set it to remind me to do something....it doesn't tell me what to do.

Maybe a field to enter the task? right now, it goes off, and in a senior moment, I have to ask myself what I am being reminded to do.

Posted: Fri 16 Oct 2009, 20:04
by 01micko
tclhost,

Ok, should be able to do that, add a field for the "task". Maybe I could add it to the splash? Would that be suitable?

Cheers

Posted: Fri 16 Oct 2009, 20:11
by tlchost
01micko wrote: Ok, should be able to do that, add a field for the "task". Maybe I could add it to the splash? Would that be suitable?
I think that would be fantastic!

Thanks
Thom