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

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

  • Just Another Gibbs Sampler is a program for analysis of Bayesian hierarchical models.
    31.08.2013 - 0 Comments
    Just Another Gibbs Sampler (JAGS) is a program for analysis of Bayesian hierarchical models using Markov chain Monte Carlo (MCMC) developed by Martyn Plummer. Its modeling abilities are similar to WinBUGS/OpenBUGS through the use of a dialect of the…
  • PLplot is a cross-platform software package for creating scientific plots.
    09.10.2015 - 0 Comments
    PlPlot is a cross-platform software package for creating scientific plots. To help accomplish that task it is organized as a core C library, language bindings for that library, and device drivers which control how the plots are presented in…
  • 10 Ways to Manage and Synchronize Bookmarks, Part I
    05.01.2009 - 0 Comments
    Bookmarking is as old as the modern web browser, so you'd think we would have come up with one good way to save our favorite sites, one way that everyone finds the easiest and the most effective. The reality is that no de facto standard has…
  • Creating a Fancy Watch in Blender, Chapter VIII.
    21.05.2013 - 0 Comments
    Blender is a free and open-source 3D computer graphics software product used for creating animated films, visual effects, interactive 3D applications or video games. Blender's features include 3D modeling, UV unwrapping, texturing, rigging and…
  • Qt Simulator is a fast and lightweight simulator for Qt applications intended to run on Nokia devices.
    23.01.2011 - 0 Comments
    Qt is a cross-platform application framework that is widely used for developing application software with graphical user interface (GUI) (in which cases Qt is referred to as a widget toolkit), and also used for developing non-GUI programs such as…
  • These were our 10 most popular post of 2018 from Linuxlandit & The Conqueror Penguin.
    23.01.2019 - 2 Comments
    The year 2018 was a year full of good events for the world of free software. New distributions, consolidations and updates of existing ones. Our readers have inclined in this case for alternative distributions and various software. he most…
  • Zorin OS 17.2 has landed
    20.09.2024 - 0 Comments
    We’re excited to announce the launch of Zorin OS 17.2 today. It's packed with enhancements that make the desktop experience even better, and under-the-hood improvements that make your computer faster, more robust, and secure. Download Zorin OS…
  • GMPC is a GTK2 frontend for Music Player Daemon.
    04.09.2012 - 0 Comments
    GMPC (Gnome Music Player Client) is a GTK2 frontend for Music Player Daemon. It is released under the GNU General Public License and is free software.  It is designed to be lightweight and easy to use, while providing full access to all of…
  • In Unix computing, Ion is a tiling and tabbing window manager for the X Window System.
    14.02.2011 - 0 Comments
    In Unix computing, Ion is a tiling and tabbing window manager for the X Window System.It is designed such that it is possible to manage windows using only a keyboard, without needing a mouse. It is the successor of PWM and is written by the same…
  • Aseprite is an open source program to create animated sprites & pixel: Timeline.
    15.11.2015 - 0 Comments
    Animations and visual effects are nowadays used to enhance nearly every form of multimedia, including video games. These are created by combining multiple images and effects, with an abundance of applications at your disposal. Aseprite is one of…

Recent Posts

Recent Posts Widget

Popular Posts

Labels

Archive

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