Page 1 of 1

Rox Clock

Posted: Thu 06 Dec 2012, 01:12
by jamesbond
There are already tons of other clocks here, and we already have pwidgets etc ... so why the new clock?

Just for the fun of it :)

This pet expands into /root/rox-clock, a Rox application. Click (or double-click depending on your settings, or right-click then choose "Start") to start the clock. It will update by the minute.

You can move/copy it over to different folders if you wish, and you can also drag it to the Rox desktop (you need to mouse over your cursor over the clock for it to update).

You can have multiple copies of the clock, each one is controlled (=start/stop) independently. If you have a little flair in scripting, you can easily adjust the clock to run in a different timezone than yours, giving you a series of world clocks :)

You can change the clock face by editing the clock.svg file within the application. The original clock face is from wikimedia: https://commons.wikimedia.org/wiki/File ... _clock.svg, and I commented out the seconds hand. You can add the seconds hand back if you wish; the reason I disabled it is because it will create unnecessary load on the system; also the display will start to flicker if your update the display every second.

The shell scripts use /bin/sh, but if you have a smaller shell, use /bin/ash or /bin/dash so that the clock doesn't eat a lot of your memory just to run the clock. I personally use dash.

Enjoy!

Note: Since this is a Rox application, you definitely need ROX-Filer. It won't work on puplets that don't have Rox.

Note: Thanks to technosaurus for this dynamic SVG idea.

EDIT: If you put the clock on Rox desktop, you need to mouse over it for it to update. Otherwise it will update itself sometimes, but very slowly and irregularly.

Posted: Tue 11 Dec 2012, 15:02
by SFR
I just saw this little app and couldn't resist - very nice piece of code. :)
If you put the clock on Rox desktop, you need to mouse over it for it to update. Otherwise it will update itself sometimes, but very slowly and irregularly.
Dunno why, but all clocks are being updated regularly, when placed on the pinboard here on Slacko-5.4; no problems at all...

BTW, the pet is xz compressed? Petget in Slacko wasn't able to install it, I had to re-pack it.

Thanks & Greetings!

Posted: Tue 11 Dec 2012, 15:11
by RSH
Hi.

LazY Puppy also could not install this using the petget. I have made a new package that installs in LazY Puppy (and hopefully all no XZ compression using) Puppies.

RSH

Posted: Tue 01 Jan 2013, 11:50
by jamesbond
Yes, sorry about the xz compression. I forgot that Fatdog's dir2pet created xz-compressed pets :oops:

Posted: Tue 01 Jan 2013, 13:15
by nooby
Sorry Billtoo told me of one by zigbert that most likely would work for me

old text
Rox Clock work in FatDog 64?

Posted: Tue 01 Jan 2013, 13:17
by vovchik
Dear jamesbond,

Happy New Year. What a nice little app. Thanks!

With kind regards,
vovchik