pClock 0.8.2 - Time tools

Miscellaneous tools
Message
Author
User avatar
zigbert
Posts: 6621
Joined: Wed 29 Mar 2006, 18:13
Location: Valåmoen, Norway
Contact:

pClock 0.8.2 - Time tools

#1 Post by zigbert »

pClock - Time tools
Sigmund Berglund

- Clock
- Alarm
- Stopwatch
- Countdown
- Fullscreen

Download
username: puppy
password: linux

pClock-0.8.2 (11 kb)

Requires Pschedule 0.9-3 or newer for alarm setting
Language support

Image

Image
Last edited by zigbert on Sun 31 Dec 2017, 07:18, edited 16 times in total.

disciple
Posts: 6984
Joined: Sun 21 May 2006, 01:46
Location: Auckland, New Zealand

#2 Post by disciple »

Great! This is a nice slick app.
Do you know if it would be possible to do a pause button?
Do you know a good gtkdialog program? Please post a link here

Classic Puppy quotes

ROOT FOREVER
GTK2 FOREVER

User avatar
zigbert
Posts: 6621
Joined: Wed 29 Mar 2006, 18:13
Location: Valåmoen, Norway
Contact:

#3 Post by zigbert »

disciple
Some loud thinking.....pClock is meant as the tool for simple timing. For that reason, I wonder if the pause-button would be better inside a new tool - Timer. A simple counter that you can pause???? Maybe add a feature to specify several alarm times. Would that fill your needs?


Sigmund

disciple
Posts: 6984
Joined: Sun 21 May 2006, 01:46
Location: Auckland, New Zealand

#4 Post by disciple »

I don't have any needs, I just think it is a feature I'd want if/when I did use a stopwatch ;)
For that reason, I wonder if the pause-button would be better inside a new tool - Timer. Would that fill your needs?
To be honest, I think 2 different timing apps is enough already :)
A pause button would be a very simple feature... even if it is very difficult to implement :)
Do you know a good gtkdialog program? Please post a link here

Classic Puppy quotes

ROOT FOREVER
GTK2 FOREVER

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

#5 Post by abushcrafter »

Code: Select all

pclock:
#ChangeLog ----------------------------------------------------------------------
#	2011/02/21 Alexander .S.T. Ross (abushcrafter) Email: <http://www.google.com/recaptcha/mailhide/d?k=01uNeUuXxeNm9FA3Zciuoqzw==&c=nVfKeb7kjqZVVIQanqJwEC2DP5zrALkSERTopYvj_pU=>
#		* 0.2: Countdwon: run command at zero.
#		* 0.2: Does not use pmusic for alarm. Instead uses the script "myalarm".
#		* 0.2: Now uses version 3 instead of version 2 of the GPL.


pclock:
#	2011/02/23 22:07:51 Alexander .S.T. Ross (abushcrafter) Email: <http://www.google.com/recaptcha/mailhide/d?k=01uNeUuXxeNm9FA3Zciuoqzw==&c=nVfKeb7kjqZVVIQanqJwEC2DP5zrALkSERTopYvj_pU=>
#		* 0.3: Now uses defaultsoundplayer for the sound player in the countdown function.
#		* 0.3: Tweaked the layout of these comments a bit.

myalarm:
#ChangeLog --------------------------------------------------------------------
#	2011/02/23 Alexander .S.T. Ross (abushcrafter) Email: <http://www.google.com/recaptcha/mailhide/d?k=01uNeUuXxeNm9FA3Zciuoqzw==&c=nVfKeb7kjqZVVIQanqJwEC2DP5zrALkSERTopYvj_pU=>
#		* 0.0.2: Added dependency missing error for mplayer.
#		* 0.0.2: Added a source of code comment.
A new dependency: defaultsoundplayer-0.0.1
Attachments
pClock_NoPmusic-0.3.pet
(5.8 KiB) Downloaded 1582 times
Last edited by abushcrafter on Thu 24 Feb 2011, 00:18, edited 4 times in total.
[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/

User avatar
zigbert
Posts: 6621
Joined: Wed 29 Mar 2006, 18:13
Location: Valåmoen, Norway
Contact:

#6 Post by zigbert »

abushcrafter
I will take a look at your improvements........ but not these days


Thank you
Sigmund

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

pClock_NoPmusic

#7 Post by abushcrafter »

Update! Now at version: 0.3
[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/

User avatar
zigbert
Posts: 6621
Joined: Wed 29 Mar 2006, 18:13
Location: Valåmoen, Norway
Contact:

#8 Post by zigbert »

Version 0.2
See main post

Changelog
- Option to execute command at countdown instead of playing audio-file (thanks to abushcrafter)
- Support of many audio-formats at countdown zero.
- Bugfix: Timer moved some pixels because not 100% mono.
- Bugfix: Heading in Preferences.
- Bugfix: Audio-track (Alarm) doesn't accept filename with spaces.
- Bugfix: Link to homepage

User avatar
don570
Posts: 5528
Joined: Wed 10 Mar 2010, 19:58
Location: Ontario

#9 Post by don570 »

Zigbert wrote:
Changelog
- Option to execute command at countdown instead of playing audio-file (thanks to abushcrafter)

This got me thinking.... Why not have a message showing? In fact , why
don't you turn pclock into a 'Reminder' program.

If the user created a simple text file like this

Code: Select all

jeu. mars  3 12:37:58 EST 2011
acheter du lait
jeu. mars  3 19:37:18 EST 2011warn
voir le télé
ven. mars  4 21:37:59 EST 2011
écouter la radio
sam. mars  5 13:31:58 EST 2011silent
lire le journal
sam. mars  5 17:37:58 EST 2011silentwarn
travailler dans le jardin
dim. mars  6 11:37:59 EST 2011
dire la vérité
dim. mars  6 17:37:38 EST 2011
faire un récit
with a date line followed by a message line.
The date uses the format of the 'date' terminal command.

pclock (if it is running) would check this text file once a minute
for a similar date and if pclock finds the date it it would show
the message that the user has typed directly below the date
and even bark.

Two possible options are 'silent' and 'warn' which are
written directly after the date.

'warn' means that a warning is given a specified time before
the date (such as 30 minutes).

and 'silent' means no bark.

It could be multilingual since the date command is
in the language 'LANG' I happen to be using French
now.


___________________________________________

User avatar
zigbert
Posts: 6621
Joined: Wed 29 Mar 2006, 18:13
Location: Valåmoen, Norway
Contact:

#10 Post by zigbert »

don570 wrote:pclock (if it is running) would check this text file once a minute
for a similar date and if pclock finds the date it it would show
the message that the user has typed directly below the date
and even bark.
This is what we have pShcedule (cron) for. It check every minute for whatever defined command.

Have you checked out Osmo. I would guess it has a builtin reminder function.


Sigmund

User avatar
don570
Posts: 5528
Joined: Wed 10 Mar 2010, 19:58
Location: Ontario

change of line in pclock

#11 Post by don570 »

I changed a line in pclock to put a message on the screen
instead of playing a sound.
It should work in all versions of Puppy.

Code: Select all

pschedule -s -e  "gxmessage -bg orange -fn large -center -geometry 200x200  Timer has completed " & 
_____________________________________________________________________

User avatar
don570
Posts: 5528
Joined: Wed 10 Mar 2010, 19:58
Location: Ontario

two alarms possible in new pclock .3

#12 Post by don570 »

I changed a section of your script to offer two types
of alarms, one with music and the other has a message
written by the user.

Check it to see if there are any problems, but I've checked it on
various Puppies and it works as long as pschedule 1.0 is installed

http://murga-linux.com/puppy/viewtopic. ... h&id=40710


_____________________________________________________

User avatar
zigbert
Posts: 6621
Joined: Wed 29 Mar 2006, 18:13
Location: Valåmoen, Norway
Contact:

#13 Post by zigbert »

don570
Please show me the added/changed lines, and I will consider if I want it in my pClock. If we disagree, you can always fork it :)

Thank you for your feedback and code-diving. Most people just suggest/complain, - you actual do something about it.


Sigmund

User avatar
don570
Posts: 5528
Joined: Wed 10 Mar 2010, 19:58
Location: Ontario

new version .3.1 that runs on Fluppy

#14 Post by don570 »

Here's the latest creation!! The lines I have changed are described
inside the archive.

Fluppy doesn't have pmusic because it uses gstreamer
so I made a quick hack to allow it to replace pmusic with
the player 'parole' which works and it repeats the song as well.

2barks.wav repeats over and over!!!
Another player is available on Fluppy called Eina
but it doesn't start automatically unless the user sets the
preferences to play a song automatically,
so I choose parole.

I checked it on Fluppy but I noticed one negative thing .
To get the Clock to fit in the window I had to reduce the font
size to 39 using the preferences.

This is a problem that version .2 had as well I believe.
Please check it on Fluppy to see if you can fix this,

It checked out perfectly on lucid puppy 5.2.5

However when I quickly checked on the latest version
of Wary 512 beta there was some strange interaction
which may be caused by pschedule 101 or maybe accented
characters in the message field????

I've included a picture of pschedule in Wary and it looks screwy.
I set just one task and yet two lines are filled out. Bizarre.

I will check this further and hopefully you have the time to
check as well.

Here's the archive

http://www.datafilehost.com/download-ca14e3af.html

___________________________________________________

User avatar
zigbert
Posts: 6621
Joined: Wed 29 Mar 2006, 18:13
Location: Valåmoen, Norway
Contact:

#15 Post by zigbert »

don570
I have not looked at your code, - sorry about that.
Please continue to improve, and I will take a closer look next time I revisit pClock. If you keep a log of your changes, it is much easier for me (and others) to find your improvements in the code, and to evaluate.....


Thank you
Sigmund

User avatar
don570
Posts: 5528
Joined: Wed 10 Mar 2010, 19:58
Location: Ontario

pclock 0.3.2

#16 Post by don570 »

I am still improving the Gui

http://www.datafilehost.com/download-75bc2e11.html

Test this version . It is ready for localization but the
strings require strong quotes for some unknown reason like

'$LOC200'

Also when I tested it in Lucid puppy the terminal
gave piping error signals over and over in the terminal but the app
still worked!!

Perhaps this is a sign of a bad end to script.

By the way the beginning and ending of the app came from pcd.

User avatar
don570
Posts: 5528
Joined: Wed 10 Mar 2010, 19:58
Location: Ontario

pclock 0.3.4

#17 Post by don570 »

I've been successful in getting rid of terminal error complaints
and I localized the app in German and French .

I tested it on Fluppy 013 , Toutou, Lucid puppy 525 and Wary.

It works pretty darned good. It should be in all versions of Puppy
in the future!!

Here's a description of what I did to app.
I'd like you to look especially at the ending of script,
since I'm not sure how gtkdialog is supposed to end
http://www.datafilehost.com/download-ed65a5b8.html

Here's the final effort from me. You can make all the changes you want.

pclock-0.3.4.pet
http://www.datafilehost.com/download-0d700ed0.html


______________________________________________________

User avatar
don570
Posts: 5528
Joined: Wed 10 Mar 2010, 19:58
Location: Ontario

new icon to show clock format

#18 Post by don570 »

pupclockset by Radky has a different method to set the clock.
Just one icon is needed.

It is easier to localize for foreign languages as well.

Image

___________________________________________________________

User avatar
don570
Posts: 5528
Joined: Wed 10 Mar 2010, 19:58
Location: Ontario

Medor has a new French translation

#19 Post by don570 »

Medor has a new French translation that looks nice
although it widens the window quite a bit.

My French is a little rust so I would use his translation.

http://www.murga-linux.com/puppy/viewtopic.php?t=67903

http://www.murga-linux.com/puppy/viewto ... h&id=40931

__________________________________________________

User avatar
zigbert
Posts: 6621
Joined: Wed 29 Mar 2006, 18:13
Location: Valåmoen, Norway
Contact:

#20 Post by zigbert »

don570
I have grabbed your code, and will look through it in some near future. - You will hear...... :)

When it comes to 'set time', this is a bit out of the scope for pClock, it just links to the system time-setter.


Sigmund

Post Reply