Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Sun 23 Nov 2014, 02:01
All times are UTC - 4
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Utilities
pClock 0.7.2 - Time tools
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 4 [51 Posts]   Goto page: 1, 2, 3, 4 Next
Author Message
zigbert


Joined: 29 Mar 2006
Posts: 5785
Location: Valåmoen, Norway

PostPosted: Sat 05 Feb 2011, 19:49    Post subject:  pClock 0.7.2 - Time tools
Subject description: 26.Jan 2014
 

pClock - Time tools
Sigmund Berglund

- Clock
- Alarm
- Stopwatch
- Countdown
- Fullscreen

Download
username: puppy
password: linux

pClock-0.7.2 (14 kb)

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




_________________
Stardust resources

Last edited by zigbert on Sun 26 Jan 2014, 14:42; edited 13 times in total
Back to top
View user's profile Send private message Visit poster's website 
disciple

Joined: 20 May 2006
Posts: 6455
Location: Auckland, New Zealand

PostPosted: Tue 08 Feb 2011, 05:16    Post subject:  

Great! This is a nice slick app.
Do you know if it would be possible to do a pause button?

_________________
DEATH TO SPREADSHEETS
- - -
Classic Puppy quotes
- - -
Beware the demented serfers!
Back to top
View user's profile Send private message 
zigbert


Joined: 29 Mar 2006
Posts: 5785
Location: Valåmoen, Norway

PostPosted: Thu 10 Feb 2011, 05:52    Post subject:  

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

_________________
Stardust resources
Back to top
View user's profile Send private message Visit poster's website 
disciple

Joined: 20 May 2006
Posts: 6455
Location: Auckland, New Zealand

PostPosted: Fri 11 Feb 2011, 05:14    Post subject:  

I don't have any needs, I just think it is a feature I'd want if/when I did use a stopwatch Wink

Quote:
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 Smile
A pause button would be a very simple feature... even if it is very difficult to implement Smile

_________________
DEATH TO SPREADSHEETS
- - -
Classic Puppy quotes
- - -
Beware the demented serfers!
Back to top
View user's profile Send private message 
abushcrafter


Joined: 30 Oct 2009
Posts: 1447
Location: England

PostPosted: Mon 21 Feb 2011, 16:32    Post subject:  

Code:
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
pClock_NoPmusic-0.3.pet
Description 
pet

 Download 
Filename  pClock_NoPmusic-0.3.pet 
Filesize  5.8 KB 
Downloaded  828 Time(s) 

_________________
adobe flash is rubbish!
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/

Last edited by abushcrafter on Wed 23 Feb 2011, 20:18; edited 4 times in total
Back to top
View user's profile Send private message Visit poster's website 
zigbert


Joined: 29 Mar 2006
Posts: 5785
Location: Valåmoen, Norway

PostPosted: Wed 23 Feb 2011, 19:04    Post subject:  

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


Thank you
Sigmund

_________________
Stardust resources
Back to top
View user's profile Send private message Visit poster's website 
abushcrafter


Joined: 30 Oct 2009
Posts: 1447
Location: England

PostPosted: Wed 23 Feb 2011, 20:05    Post subject: pClock_NoPmusic  

Update! Now at version: 0.3
_________________
adobe flash is rubbish!
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/
Back to top
View user's profile Send private message Visit poster's website 
zigbert


Joined: 29 Mar 2006
Posts: 5785
Location: Valåmoen, Norway

PostPosted: Wed 02 Mar 2011, 12:49    Post subject:  

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

_________________
Stardust resources
Back to top
View user's profile Send private message Visit poster's website 
don570


Joined: 10 Mar 2010
Posts: 3379
Location: Ontario

PostPosted: Thu 03 Mar 2011, 18:26    Post subject:  

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:

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.


___________________________________________
Back to top
View user's profile Send private message 
zigbert


Joined: 29 Mar 2006
Posts: 5785
Location: Valåmoen, Norway

PostPosted: Fri 04 Mar 2011, 13:40    Post subject:  

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

_________________
Stardust resources
Back to top
View user's profile Send private message Visit poster's website 
don570


Joined: 10 Mar 2010
Posts: 3379
Location: Ontario

PostPosted: Mon 09 May 2011, 15:59    Post subject: change of line in pclock  

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:
pschedule -s -e  "gxmessage -bg orange -fn large -center -geometry 200x200  Timer has completed " &


_____________________________________________________________________
Back to top
View user's profile Send private message 
don570


Joined: 10 Mar 2010
Posts: 3379
Location: Ontario

PostPosted: Tue 10 May 2011, 18:25    Post subject: two alarms possible in new pclock .3  

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.php?mode=attach&id=40710


_____________________________________________________
Back to top
View user's profile Send private message 
zigbert


Joined: 29 Mar 2006
Posts: 5785
Location: Valåmoen, Norway

PostPosted: Wed 11 May 2011, 01:26    Post subject:  

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 Smile

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


Sigmund

_________________
Stardust resources
Back to top
View user's profile Send private message Visit poster's website 
don570


Joined: 10 Mar 2010
Posts: 3379
Location: Ontario

PostPosted: Thu 12 May 2011, 20:37    Post subject: new version .3.1 that runs on Fluppy  

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

___________________________________________________
Back to top
View user's profile Send private message 
zigbert


Joined: 29 Mar 2006
Posts: 5785
Location: Valåmoen, Norway

PostPosted: Fri 13 May 2011, 14:47    Post subject:  

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

_________________
Stardust resources
Back to top
View user's profile Send private message Visit poster's website 
Display posts from previous:   Sort by:   
Page 1 of 4 [51 Posts]   Goto page: 1, 2, 3, 4 Next
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Utilities
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.1404s ][ Queries: 13 (0.0528s) ][ GZIP on ]