HamClock is a kiosk-style application that provides real time space weather, radio propagation models, operating events and other information particularly useful to the radio amateur. HamClock was introduced in a QST article in the October 2017 issue and has been actively developed and expanded ever since. The User Guide provides detailed operating instructions. Explore the additional tabs for further supporting information.
HamClock on a Raspberry Pi
Open a terminal directly on the target system GUI desktop to get a command line prompt. Run these commands (use copy/paste to avoid typos):
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
If you get errors on Raspberry Pi or other Debian try loading these packages:
sudo apt-get update
sudo apt-get -y install curl make g++ libx11-dev libgpiod-dev
Now run HamClock by typing:
hamclock &
Be sure to read the User Guide to get the most from HamClock!
To exit hamclock, click and hold the padlock icon for three seconds, then choose Exit. The example make command above will build HamClock with 800x480 pixels. You can also make these sizes:
hamclock-1600x960
hamclock-2400xx1440
hamclock-3200x1920
If you do, redo both make commands again, for example:
cd ~/ESPHamClock
make -j 4 hamclock-1600x960
sudo make install
If you would like HamClock to fill the screen, set that option on Page 5 of Setup. With this option HamClock will still be the same screen size you built, but it will fill any surrounding gap with black so there is nothing else showing. If you would like a Desktop icon with which to start HamClock, try these commands:
cd ~/ESPHamClock
mkdir -p ~/.hamclock
cp hamclock.png ~/.hamclock
cp -p hamclock.desktop ~/Desktop
Similarly, if you would like HamClock to start automatically when you boot your system, try these commands:
cd ~/ESPHamClock
mkdir -p ~/.config/autostart
cp hamclock.desktop ~/.config/autostart
Full screen mode try it on a Pi, log in from some other computer with ssh (or putty) so we aren't trying to adjust the same screen we are using for commands. Run the following command while HamClock is running in its full screen mode:
xrandr --output HDMI-1 --scale-from 1600x960 --display :0
Go through the following steps from Windows10:
Open Command Window with CMD (Run as Administrator)
At the Command Prompt enter:
wsl --install
Restart the PC/laptop.
Fill in a username and password.
Update UBUNTU $:
sudo apt update && sudo apt upgrade.
Run through the following commands at the UBUNTU prompt:
sudo apt-get update
sudo apt-get upgrade
sudo apt install curl make g++ xorg-dev libx11-dev zip
cd
rm -fr ESPHamClock
curl -O https://www.clearskyinstitute.com/ham/HamClock/ESPHamClock.zip
unzip ESPHamClock.zip
cd ESPHamClock
make -j 4 hamclock (optional: make -j 4 hamclock-web-1600x960
sudo make install
Close the UBUNTU screen.
Open a Command Window with CMD (Run as Administrator) In the DOS screen typ:
wsl sudo hamclock &
In a Web browser, open http://127.0.0.1:8081/live.html
This allows you to continue to view and control HAMCLOCK.