Fork me on GitHub

Project Notes

#836 Using the Open HamClock Backend

Using the new Open HamClock Backend (OHB) to give my HamClock client installation a new lease of life. Testing clients on Raspberry Pi, macOS, and Ubuntu.

Build

Notes

The Open HamClock Backend (OHB) project was started in Feb-2026 with the objective of re-implementing a fully compatible HamClock backend, so that the wel-known HamClock client could still continue to operate after the demise of the original Clear Sky Institute services.

Originally started in the now defunct https://github.com/BrianWilkinsFL/open-hamclock-backend, the project has as of Apr-2026 largely reached feature-parity with the original Clear Sky Institute service.

The OHB project is currently available at:

As this is a fully open-source solution, with an inviting group of maintainers, I am fully onboard with this as my preferred successor to HamClock!

The notes that follow document my first steps in using the HamClock client with the new Open HamClock Backend.

See LEAP#762 HamClock for more on HamClock itself.

Using OHB with an Existing Raspberry Pi Client

I have an old Raspberry Pi 1 Model B+, fitted with the LEAP#831 HamClock Hat, and running a slightly modified version of the final Clear Sky Institute 4.22 client.

Switching it over to use the OHB backend is easily done with the -b parameter to specify a different backend:

pi@raspi1:~ $ hamclock -b ohb.hamclock.app:80

I have the HamClock is configured to run headless. I am using the default ports and the Raspberry Pi is on 192.168.10.36, so I can now access hamclock interfaces

When I first started the client, I would see errors such as “Sat error: Epoch for AO-95 is out of date” when trying to track satellites (as in the screen below). This due to outdated information cached in the ~/.hamclock/esats.txt file. The client will eventually refresh this file in 3-6 hours, but a quick way to get an immediate update is to remove this file before starting hamclock e.g.:

pi@raspi1:~ $ rm ~/.hamclock/esats.txt
pi@raspi1:~ $ hamclock -b ohb.hamclock.app:80

rpiweb-ohb02.png

With satellite data updated, HamClock is working perfectly with the new backend:

rpiweb-ohb01.png

To ensure that HamClock automatically loads on startup, I modify crontab -e accordingly:

@reboot /usr/local/bin/hamclock -b ohb.hamclock.app:80

Fresh Raspberry Pi Installation

Let’s test the automated installation script for the Raspberry Pi. First I’ll remove the existing install:

rm -fr ESPHamClock
rm ~/Desktop/hamclock.desktop
# rm -fr ~/hamclock # not done - I'll leave my previous settings in place
sudo rm /usr/local/bin/hamclock*

Down load the HamClock RPi installer from the latest https://github.com/komacke/hamclock/releases:

curl -LO https://github.com/komacke/hamclock/releases/download/v4.22.4/install-hc-rpi
chmod u+x install-hc-rpi
./install-hc-rpi

The installer takes care of installing pre-requisites and offering other options such as autostart configuration.

Under the cover, the core is a source installation, which may be performed manually as follows. Here I’ve chosen to build for web-only at 1600x960 resolution:

curl -O  https://ohb.hamclock.app/ham/HamClock/ESPHamClock.zip
unzip ESPHamClock.zip
cd ESPHamClock
make help
...
make -j 4 hamclock-web-1600x960
sudo make install

And then startup in the background:

$ hamclock -b ohb.hamclock.app:80 &
[1] 1088
$

All working fine…

rpiweb-ohb03.png

Using OHB with macOS Client

I’m running macOS with an Apple Silicon M1 chip. The HamClock client runs with XWindows.

Installing XQuartz (for XWindows support) with brew:

brew install --cask xquartz

Then run the installation steps per the documentation:

curl -O https://ohb.hamclock.app/ham/HamClock/ESPHamClock.zip
unzip ESPHamClock.zip
cd ESPHamClock
make -j 4 hamclock-800x480
sudo make install

The sources can then be removed:

cd ..
rm -fR ESPHamClock
rm ESPHamClock.zip

To run HamClock, first start XQuartz

open -a XQuartz

Then within XQuartz, choose “Applications > Terminal”, and run the hamclock command with the -b parameter to specify the backend server:

macos-run-hamclock

After entering call sign, lat lng options etc, HamClock starts and I can start to play with the display options.

macos-hamclock01

Ubuntu

I also routinely use Ubuntu (currently version 24.04). Let’s try.

Make sure pre-requisites are installed:

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

Run the installation steps per the documentation (this time a slightly larger 1600x960):

curl -O https://ohb.hamclock.app/ham/HamClock/ESPHamClock.zip
unzip ESPHamClock.zip
cd ESPHamClock
make -j 4 hamclock-1600x960
sudo make install

The sources can then be removed:

cd ..
rm -fR ESPHamClock
rm ESPHamClock.zip

Run HamClock from the console with the -b parameter to specify the backend server:

hamclock -b ohb.hamclock.app:80

ubuntu-hamclock01

Nice! Also works great.

Credits and References

About LEAP#836
RadiomacOSUbuntuRaspberry PiBME280

This page is a web-friendly rendering of my project notes shared in the LEAP GitHub repository.

Project Source on GitHub Return to the LEAP Catalog
About LEAP

LEAP is my personal collection of electronics projects - usually involving an Arduino or other microprocessor in one way or another. Some are full-blown projects, while many are trivial breadboard experiments, intended to learn and explore something interesting.

Projects are often inspired by things found wild on the net, or ideas from the many great electronics podcasts and YouTube channels. Feel free to borrow liberally, and if you spot any issues do let me know or send a pull-request.

NOTE: For a while I included various scale modelling projects here too, but I've now split them off into a new repository: check out LittleModelArt if you are looking for these projects.

Project Gallery view the projects as an image gallery Notebook reference materials and other notes Follow the Blog follow projects and notes as they are published in your favourite feed reader