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:

#46 Post by zigbert »

Version 0.7
See main post

Changelog
- Rewritten Countdown gui
- Bugfix: Activate choosen file from filebrowser (Countdown/Alarm)

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

#47 Post by zigbert »

Version 0.7.1
See main post

Bugfix: Missing icons

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

#48 Post by don570 »

In my clone of pclock calledpuppy clock
I made a change in how countdown is shown.

In the countdown feature I now have an application chosen
that should make the feature more understandable.


Image


_____________________________________________

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

#49 Post by zigbert »

Version 0.7.2
see main post

Only change is the call for svg-icon in *.desktop file. For Woof-CE.

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

Icon line

#50 Post by don570 »

I installed pclock in slacko and I noticed wrong version number under About
menu . Also check your desktop file for the Icon line. I couldn't find
that icon??

____________________________________

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

#51 Post by zigbert »

don570
I have reuploaded it with correct version.
The *.desktop file is changed to support Woof-CE.


Sigmund

User avatar
greengeek
Posts: 5789
Joined: Tue 20 Jul 2010, 09:34
Location: Republic of Novo Zelande

#52 Post by greengeek »

Is there any way to modify this so that you could run more than one instance at a time without them interfering with each other and both being separately resettable ? (eg one instance plays a voice prompt every minute and another instance plays a beep every second).

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

#53 Post by don570 »

It uses pschedule. Launch pschedule after you have set an alarm.

I believe you can set multiple alarms.

_______________________________________

User avatar
greengeek
Posts: 5789
Joined: Tue 20 Jul 2010, 09:34
Location: Republic of Novo Zelande

#54 Post by greengeek »

Thanks. How does it use pschedule? - pschedule only seems to know about days hours and minutes rather than seconds as far as i can tell?

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

#55 Post by don570 »

Thanks. How does it use pschedule?
After setting an alarm you could then open pschedule

System > pschedule

and press the edit button to make more alarms.

But it would be simpler to launch pclock multiple times to make multiple
alarms.

If you want a simple countdown alarm then try clicking the 'Countdown'
button in the opening page

enter the countdown

aplay /path/to/sound

I'm not sure if loops are allowed???
But maybe a script that you write will play, and the script can have looping in it.

Here's a site that explains how to write a script that loops endlessly
http://bash.cyberciti.biz/guide/Infinite_while_loop


I think this script should loop endlessly barking like a dog.
Make sure it is executable and place in executable path ie bin or sbin folder

Code: Select all

#!/bin/bash
while true
do
	aplay /usr/share/audio/2barks.wav
         sleep 15

done
___________________________________________________
This command just puts a message up to screen.


Image

.

User avatar
greengeek
Posts: 5789
Joined: Tue 20 Jul 2010, 09:34
Location: Republic of Novo Zelande

#56 Post by greengeek »

don570 wrote:But it would be simpler to launch pclock multiple times to make multiple alarms.
This is the part I am having trouble with. If i launch pclock multiple times each instance behaves the same - they don't respect the different alarm times that I set.

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

#57 Post by zigbert »

I will open up for several alarms in the next release

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

#58 Post by don570 »

Running a script like below just causes problems
when I use the countdown feature because it repeats the script.

It might be useful to have an option box to shut off repeating.

Here's some scripts that cause trouble...
but they work fine if launched from terminal.

Code: Select all

#!/bin/bash
while true
do
   aplay /usr/share/audio/2barks.wav
         sleep 5

done

Code: Select all

#!/bin/bash
        for i in `seq 1 10`;
        do
                   aplay /usr/share/audio/2barks.wav
         sleep 5
        done
_______________________________________________


greengeek wrote:This is the part I am having trouble with. If i launch
' pclock multiple times each instance behaves the same - they don't
respect the different alarm times that I set.
My original suggestion was to set one alarm with pclock and then
open pschedule to make more of them.

I wonder if a countdown and an alarm can be made simultanuous?

User avatar
Sky Aisling
Posts: 1368
Joined: Sat 27 Jun 2009, 23:02
Location: Port Townsend, WA. USA

pClock 0.7.2 - Time tools

#59 Post by Sky Aisling »

Hello zigbert,
I'm unsure if this is the proper place to ask this question. There appears to be an issue with either PupClockset or JWMRC tray or ? I'm not even sure if Pupclockset is part of this thread. Please excuse my ignorance on this issue.

When the new year rolled over in Pacific Time on west coast of USA, the clock set in lower right hand corner did not turn to the correct date.
I repaired it using the standard procedure of Pupclockset. Somehow when it updated to correct date it also added the app to the launcher portion of the JWMRC tray.
The JWMRC desk launcher doesn't show it present but it is there.
How do I remove the pupclockset from the launcher bar?

See screenshot of what I could research so far.
Thank you for any assistance or redirection you can offer.
Attachments
JWMRC-tray-Pupclock1.jpg
(219.97 KiB) Downloaded 313 times

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

#60 Post by zigbert »

You're right about that this has nothing to do with pClock :D
Remove it by deleting the first line in /root/.jwmrc-tray starting with
<Clock format ...

The tray manager is made for managing the jwm tray. You'll find it in /usr/local/jwm_config/tray
Attachments
Screenshot.png
(52.74 KiB) Downloaded 189 times

User avatar
Sky Aisling
Posts: 1368
Joined: Sat 27 Jun 2009, 23:02
Location: Port Townsend, WA. USA

pClock 0.7.2 - Time tools

#61 Post by Sky Aisling »

Hello Zigbert,

Thank you for your quick and clear answer.

Yes, your suggestion is what I initially tried but ran into multiple road blocks such as there is no 'delete' function active when attempting to delete the clock format code lines in jmw-tray and there is no /usr/local/jwm_config/tray listed in the system. I wish I had the tray configuration that you show in your screenshot, but, it's appears nowhere in this system.
So, I did a 'restore master backup' this way: JWMDesk/Profile/back up profiles/jwmrc-personal/restore. This cleared the tray of my personal apps including the offending PupClockset coding. Then I reinstated personal apps through the jmwdesk/launcher tab per usual procedure. Hopes this helps someone else with a similar glitch. :)

PS -
Edit: I'm running a 32bit OS on a 64bit machine, if that makes any difference?

The machine is DMI: Hewlett-Packard HP HDX 18 Notebook PC/3610, BIOS F.24 06/16/2009
Attachments
tahrpup-6.05-HPHDX18.png
(56.62 KiB) Downloaded 413 times

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

#62 Post by zigbert »

I forgot to mention that the tray-manager is, for some reason, not included in Tahr-Pup, so I guess that you run that os.

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

#63 Post by don570 »

Not sure if this is important but I'll report it anyhow.

Version .71 is included in hungarian version of precise puppy
http://murga-linux.com/puppy/viewtopic.php?t=93679
When I launched it with the terminal program rather than by the
start menu
I got the following message repeated endlessly when I first ran it..
cat: /root/.pclock/tmp/timer: No such file or directory
The message stopped when I pressed the 'Alarm' icon.

_______________________________________________

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

#64 Post by zigbert »

don570
Thank you for reporting
Fixed in WoofCE

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

#65 Post by don570 »

BarryK doesn't use pmusic in pyro64 so I made small change
I was able to get pclock to work in pyro64 v0.6
by installing pclock 0.7.2

Then changing one line to recognize the music player from pmusic to 'defaultmediaplayer' (or xinewrapper)


Code: Select all

	pschedule -s -e "defaultmediaplayer '$ALARM'" "music Alarm" &

Code: Select all

pschedule -s -e "xinewrapper '$ALARM'" "music Alarm" &
There is a splash screen which I can't get rid of but that's okay with me.

__________________________

Post Reply