-->
Home » , , , , , , , , » Twclock is a clock program which will prove to be very helpful for ham operators.

Twclock is a clock program which will prove to be very helpful for ham operators.

twclock17aphTwclock is a clock program which will prove to be very helpful for ham operators

Twclock is a clock program which will prove to be very helpful for ham operators. It is implemented with Motif widgets, and will displays the current time in major cities around the world.

The current time at some point on the globe is determined using the time zone information contained in the files located under the directory /usr/share/zoneinfo.

A file selection box allows you to pick the area and city of interest, and the environment variable TZ is set to the pathname for that time zone file. The clock will then display the current time for the selected location. Don't worry, this only changes TZ for the clock process - other processes are unaffected.

The GUI uses scale widgets to display hours, minutes, and seconds. There is a label for date and time zone info and a button which you can give any name. This button acts as an alarm clock when pressed. The time for this alarm clock can be set in the application defaults file.
Very few properties were hard coded. This way you can set widget properties (colors, fonts, labels, etc.) as you like in the defaults file - Twclock without recompiling.

There are no pulldown menus, instead there is only this one "UNDOCUMENTED" popup menu (via mouse button 3). Two of the menu buttons, "Local" and "GMT" set the clock to that time. The third menu button, "Others:", pops up a file selection box dialog that allows you to select an area and city. The OK button will set the clock to the selected zone. The Cancel button can be pressed at any time to popdown the dialog, leaving the time unchange.

The application defaults file Twclock can be changed to fit your needs. Instead of changing this system-wide file, you can also add some lines to your ~/.Xresources file. For example, to change the timer, add these lines:

   twclock.minutes: t1
twcock.seconds: t2
The ID Alarm can be set to a desired delay of minutes and seconds. The alarm will notify you it is time to ID in any or all of the following ways.
TWClock2
    Blink the alarm button
    Beep the PC speaker
    Send your call in CW through your sound card using pulseaudio

The CW audio can be fed to your rig, so the ID is automatically transmitted. The CW is generated using code from qrq by Fabian Kurz, DJ1YFK, and Unixcw by Simon, GØFRD.
There is also a Auto Reset option. This option automatically starts the next time out without any user action.
    Features
    Twclock now using pulseaudio.
    Displays the date and time of day as Local or GMT and,
    Lets you select from hundreds of location around the world, and displays the current date and time there.
    ID timer - When it is time to ID, it will send your call in CW via pulseaudio and your soundcard, beep the PC speaker, and blinks the alarm button.
    Auto Reset - When Auto Reset is enabled, the ID alarm will automatically start the next ID timeout.
    The alarm options can be changed at runtime with the Options window shown below.
    ID Now - This menu button lets you send a CW ID at any time.

   
Screenshots.
twclock - a Linux clock for ham radio
twclock Options page
twclock - timezone selection window
Histograms of CLOC analysis data of twclock-3.1.src.tar.gz (y-axes: linear scale)
Histograms of CLOC analysis data of twclock-3.1.src.tar.gz (y-axes: logarithm scale)
The corresponding CLOC output data:
      39 text files.
      32 unique files.                              
      21 files ignored.

http://cloc.sourceforge.net v 1.56  T=1.0 s (19.0 files/s, 13517.0 lines/s)
-------------------------------------------------------------------------------
Language          files     blank   comment      code    scale   3rd gen. equiv
-------------------------------------------------------------------------------
Bourne Shell          4       894      1205      6755 x   3.81 =       25736.55
C                     5       381       556      1875 x   0.77 =        1443.75
m4                    3       132        47      1250 x   1.00 =        1250.00
C/C++ Header          3        34        38       291 x   1.00 =         291.00
make                  4        14        18        27 x   2.50 =          67.50
-------------------------------------------------------------------------------
SUM:                 19      1455      1864     10198 x   2.82 =       28788.80
-------------------------------------------------------------------------------

Custom Search
 
If you liked this article, subscribe to the feed by clicking the image below to keep informed about new contents of the blog:

0 commenti:

Post a Comment

Random Posts

Recent Posts

Recent Posts Widget

Popular Posts

Labels

Archive

page counter follow us in feedly
 
Copyright © 2014 Linuxlandit & The Conqueror Penguin
-->