Installing HamClock for Amateur Radio Use

hamclock

HamClock is a powerful tool designed for amateur radio operators, providing real-time propagation data, satellite tracking, and more. This guide will walk you through installing HamClock on various UNIX-like systems, including Raspberry Pi, macOS, Debian, Ubuntu, FreeBSD, and others. Whether you’re using HamClock for monitoring solar conditions, DX cluster spots, or tracking satellites, this step-by-step tutorial will help you get started.


Step 1: Install Required Dependencies

Before installing HamClock, ensure your system has the necessary dependencies installed. These dependencies vary by operating system:

For Raspberry Pi and Debian-based Systems:

sudo apt-get update
sudo apt-get -y install curl make g++ libx11-dev libgpiod-dev xdg-utils

For Ubuntu:

sudo apt install curl make g++ xorg-dev xdg-utils

For macOS:

First, install XQuartz and Xcode. Then, open “More developer tools” and install the command line tools. On macOS Sequoia, you may need to run:

xcode-select --install

For FreeBSD:

sudo pkg install gcc xorg gmake curl

Then, use gmake instead of make.

For NetBSD:

First, install pkgin, then run:

sudo pkgin install gmake curl

Use gmake instead of make.

For RedHat or Fedora:

sudo yum install gcc-c++ libX11-devel xdg-utils

For Alpine Linux:

setup-desktop
apk add g++ libx11-dev curl linux-headers

Step 2: Install HamClock

Once the dependencies are installed, proceed with downloading and installing HamClock. There are two methods depending on your operating system.

For Raspberry Pi (Automated Install):

cd
curl -O https://www.clearskyinstitute.com/ham/HamClock/install-hc-rpi
chmod u+x install-hc-rpi
./install-hc-rpi

Follow the prompts and answer y or n as needed. This script will automate the installation for you.

For Other UNIX-like Systems (Manual Install):

cd
rm -fr ESPHamClock
curl -O https://www.clearskyinstitute.com/ham/HamClock/ESPHamClock.zip
unzip ESPHamClock.zip
cd ESPHamClock
make -j 4 hamclock-800x480
sudo make install

This will install HamClock with a resolution of 800×480 pixels. If you need a different resolution, refer to Step 4.


Step 3: Run HamClock

After installation, you can start HamClock with the following command:

hamclock &

If everything is installed correctly, HamClock should open in a window displaying solar data, propagation info, and maps.

If you did not install a desktop icon, you can always launch HamClock from the terminal using the command above.


Step 4: Customize HamClock

HamClock supports different screen sizes. If you want to change the resolution, use the following commands:

cd ~/ESPHamClock
make clean
make -j 4 hamclock-2400x1440
sudo make install

Replace 2400x1440 with the desired resolution:

  • hamclock-1600x960
  • hamclock-2400x1440
  • hamclock-3200x1920

If you want HamClock to fill the screen completely, navigate to Page 5 in the Setup menu and enable the full-screen option.


Step 5: Auto-start HamClock on Boot

To ensure HamClock starts automatically on system boot, you can create an autostart entry.

For XDG-compliant systems:

cd ~/ESPHamClock
mkdir -p ~/.config/autostart
cp hamclock.desktop ~/.config/autostart

For macOS (Create a Clickable App):

If you’re using macOS, you can create a clickable app on your Desktop:

cd ~/ESPHamClock
HCDIR=~/Desktop/HamClock.app
mkdir -p $HCDIR
echo '#!/bin/bash' > $HCDIR/HamClock
echo '/usr/local/bin/hamclock &' >> $HCDIR/HamClock
chmod u+x $HCDIR/HamClock

To assign a proper icon, follow these steps:

  1. Open hamclock.png with Preview.
  2. Click on the image.
  3. Press โŒ˜-A to select the image, then โŒ˜-C to copy.
  4. Right-click the new HamClock.app Desktop item and select Get Info.
  5. Click the existing default icon in the top left corner.
  6. Press โŒ˜-V to paste the new icon.

Conclusion

By following these steps, youโ€™ll have HamClock running seamlessly for amateur radio use, helping you track propagation, monitor DX cluster spots, and track satellites. Whether youโ€™re using a Raspberry Pi, macOS, or a UNIX-like system, HamClock is a great addition to any ham radio station. For more info, visit https://www.clearskyinstitute.com/ham/HamClock/

Enjoy using HamClock and 73! ๐ŸŽ™๏ธ๐Ÿ“ก

3 comments

comments user
Lance

Your steps above result in a download of the file which is displayed in the command window, then it states inform HamClock installation is complete. then inform you may run now run hamclock by typing hamclock.
I type chmod… and it states, ‘cannot access ‘install-hc-rpi’. no such file or directory and same for the next command for the automated install. Running Pi 3
Fail

comments user
Lance

Sorry OM. I don’t know what I am doing. Me…fail hihi
My OS was too old.
The curl switch (-o and not -0 (zero)) was not typed correctly.
Everything works fine after loading up a current OS and typing the commands correctly.
Thanks. You can remove my comment.
Hopefully, we can chat on the radio sometime. 73!

Post Comment

You May Have Missed