Ham Clock Window
ฝัง
- เผยแพร่เมื่อ 7 ก.พ. 2025
- Here's how to run Ham Clock in a window environment on your Raspberry Pi desktop.
🔹Links mentioned in the video
www.clearskyins...
🔹Commands used in the video
sudo apt-get -y install make g++ libx11-dev
curl -o ESPHamClock.zip www.clearskyins...
unzip ESPHamClock.zip
cd ESPHamClock
sudo make -j 4 hamclock
sudo chmod +s hamclock
sudo mv hamclock /usr/local/bin/hamclock
ln -s /usr/local/bin/hamclock ~/Desktop/hamclock
🔹Raspberry Pi Build Guide - tiny.cc/pi4guide
🔹Frequently Asked Questions - tiny.cc/km4ack-faq
🔹Weekly Newsletter - mailchi.mp/40d...
🔹Follow Me
Instagram @km4ack
Twitter @km4ack
🔹FREE Get Started Guide - tiny.cc/getstar...
🔹Cool Ham Gear - km4ack.com
🔹Support the channel through Patreon - / km4ack
🔹Did you just get a raspberry pi and want to hook it up to your radio? Start here • Where to start? Raspbe...
Want your raspberry pi to play nice with your ham radio? Are you into digital modes like FT8, JS8Call, FLDIGI, Winlink, APRS, Digipeaters and others? Each week I put out new content showing you exactly what steps to take to get the latest ham radio software on your raspberry pi. Whether you just want to ragchew or are seriously into emergency preparedness, emcomm, or ARES and want to learn all you can about using the raspberry pi to drive your ham radio, this channel has something for you. Be sure to click the subscribe button and ring the bell before heading off. That way you will get notified of all future videos.
🔹My Shack🔹
Yaesu 857D - amzn.to/2MOAZtx
Yaesu FT65R - amzn.to/2XsOQq5
Raspberry Pi - amzn.to/2WjLzIk
Signalink Soundcard - amzn.to/2EZjxMx
🔹🔹🔹🔹🔹
As an Amazon Associate I earn from qualifying purchases
I also have HamClock compiled to run 1600x960. I installed it on two devices. The first is a Raspberry Pi 4 with 4GB Ram. It has more than enough computing power to handle HamClock. The Pi's main purpose is to host a large network drive on my home LAN. I have no problems running both apps at same time.
While also use VNC to remote into the Pi from my desktop PC, I actually have it running directly on the PC. I'm running Windows 10 Pro with WSL2 installed. That's an Ubuntu distro that runs directly in Windows Hyper V as a VM. Also installed GWSL from the Microsoft Store to handle the X11 GUI.
Hi! Thanks for the video. FYI, you can build hamclock in various resolutions. To see the choices:
$ make help
The following targets are available (as appropriate for your system)
hamclock X11 desktop version, 800x480
hamclock-1600x960 X11 desktop version, larger, AKA hamclock-big
hamclock-2400x1440 X11 desktop version, larger yet
hamclock-3200x1920 X11 desktop version, huge
hamclock-fb0-small RPi using /dev/fb0, 800x480
hamclock-fb0-1600x960 RPi using /dev/fb0, larger, AKA hamclock-fb0
hamclock-fb0-2400x1440 RPi using /dev/fb0, larger yet
hamclock-fb0-3200x1920 RPi using /dev/fb0, huge
Unfortunately it currently does not support dynamic resizing.
73's K9BEA
Reading the Ham Clock page you can edit a file and recompile to change the resolution. It doesn't support dynamic resizing but at least we can make it larger on our system.
I wonder why all the programming experts in the Ham world have't figured out how to modify the code to either make it dynamic resize or allow more monitor resolution choices?
Jason thank for the Info.
I watch all of your videos.
Great idea, one less dedicated Pi on the desk to dust. Thanks Jason!
Very good job. Also very handy for the day- and nightbands.
This application does not change it's size when you change the window. You have to decide about your size when you run "make". Four modes are available:
sudo make -j 4 hamclock-800x480
sudo make -j 4 hamclock-1600x960
sudo make -j 4 hamclock-2400×1440
sudo make -j 4 hamclock-3200×1920
You should find out about your screen resolution and use the largest that still fits on your display.
Hello Jason! You may already know that by now, but in page two of the HamClock configuration, there is an option for Full Screen On/Off. Thanks!
Well done Jason
Very Informative video.. successfully implemented it today in an Oracle Virtual Box in Win 11, with Debian OS loaded in it.. .. Thank you so much...
Something to have a play with on my pi, cheers Jason
if you compile with hamclock-1600x960 you will get the higher res via VNC in full HD, substitute hamclock with hamclock-1600x960 in the commands
Great job! Thanks for all your HOWTO's
I get right to the end, where I try to create a desktop icon, and I get a message saying "ln: failed to create symbolic link '/root/Desktop/hamclock': no such file or directory" Everything worked just fine up to that point. I followed your video precisely, except that I'm running Ubuntu in WSL on my Windows 10 laptop instead of Raspbian.
Edit the commands to the following to install at 1600x960....
sudo make -j 4 hamclock-1600x960
sudo chmod +s hamclock-1600x960
sudo mv hamclock-1600x960 /usr/local/bin/hamclock
ln -s /usr/local/bin/hamclock ~/Desktop/hamclock
On a screen with a larger format this will still not be full screen but is a usable window size.
you are a legend. Thank you
My ham clock did an update and it went back to the small resolution, do you know the commands to get into the file to change the resolution back to 1600x960?
I believe just run the commands again and it will correct it. It’s been a while since I’ve updated mine and gone through it.
This works! kept messing with -j 3 and was useless. kept it at 4 and only changed the resolution and it works great. There was an update that got rid of the desktop sidebars and blackened it nicely, but I cant figure how to kill the program Thank you
Your video might be good for someone who is a computer geek. You lost me at the 1:10 mark .
How do you open the terminal window ?
sudo apt install libx11-dev -- for the libx11 error when trying to make...
What is the best way to get "HAM CLOCK" on my laptop? Do I need to buy the Invato? Do I need a raspberry PI. Is there a good video on how to do this? Thanks , NS9T
Can't get past sudo make -j 4 hamclock,. I keep getting fatal error on pi 4
Will this run on a pi 1..
Like the idea
How do you un-install the program? I need to get my regular PI desktop back.
Can it use GPS to set Lat Long and time?
Yes
would have been nice to know why you deviated.. .why you did chmod +s and ... a lot of more why's :-)
If we just repeat what you do, we have not learned much. If you know what i mean.. i am all up for learning.
Thanks a lot Jason for the very informative video. Just curious if the HamClock will run on our Raspberry Pi's that we have the Build-A-Pi on??? Does the HamClock use up a lot of resources?? Should we have a separate Raspberry Pi for using HamClock if we are using Build-A-Pi?? My Build-A-Pi is running on my Raspberry Pi 3b+ and I want it dedicated to do digital. I was going to put the HamClock before on my old Raspberry Pi 2, but I never have been able to get the Wifi dongle I bought to work on it. So now I am going to turn the Raspberry Pi 2 into a DMR hotspot by adding a MMDVM board to it and hooking the Pi to a ethernet cable. I just got into DMR radio and using right now a Raspberry Pi Zero W with MMDVM board so I can using my Anytone D-878 UV GPS handheld to do DMR portable with my cellphone. Would HamClock work on a Raspberry Pi Zero W???? Or should I find me another Raspberry Pi 3b+?? Again great video Jason and I always look forward to getting the Patron updates and your videos. Take care and 73, Juddie WD8WV
I run it on my pi that was built using build-a-pi. It does use a fair amount of CPU but with the method covered in this video, it's easy to open when you need it and shut it down when not in use.
I have ham clock full screen running on a pi zero w.. so far so good.. hoping to have the pi zero w run ham clock and simple tasks like propogation reporting web pages and etc on an old flat screen
make help lists the other sizes you can compile it for, like 'make hamclock-1600x960'
Good day all is Ham clock just for Hams , can a cb er use Ham Clock
Anyone can use it.
Is it possible to do this on windows 10 desktop??
I don't think he has a version for Windows but you can check the site www.clearskyinstitute.com/ham/HamClock/
yes. just install "WSL" from microsoft, that gives you a linux environment/console on windows - and then you basically follow instructions for linux version
Thanks alot Jason, I'm learning alot from your channel. de 9k2db
Can this be configured to run on an android device? I have a spare Samsung Galaxy Note 8.0 tablet that I would like to dedicate to Ham Clock. 73s David KD9JEO
Maybe but I don't know how it would be done. 73, de KM4ACK
There is a ham clock app for Android. I don't know if it is the same, similar, or different.
There are tools for running Linux apps on Android. www.slant.co/topics/6788/~ways-to-run-linux-applications-on-android
I can't personally vouch for any of these and they are likely to require more advanced technical knowledge to set up.
Great idea. Never thought abou it. I use an old 3b raspberry and the old original 7" display as my desk clock. For the windowed version I set up a small desktop file and use the icon fron wsjtx. /usr/share/applications/hamclock.desktop:
[Desktop Entry]
Name=HamClock
GenericName=HamClock
Comment=Clock for HAMs
Exec=/usr/local/bin/hamclock
Icon=wsjtx_icon
Terminal=false
Type=Application
Categories=HamRadio;
Works great so far. 73, Stephan, DF6PA
Hi Jason! Thanks for the video! I try it in my RPI 3 but give me this error. Hope you can help me!
g++ -IArduinoLib -I. -g -O2 -Wall -DARDUINO=100 -pthread -D_USE_X11 -c -o moonpane.o moonpane.cpp
In file included from /usr/include/c++/10/bits/basic_string.h:6546,
from /usr/include/c++/10/string:55,
from ArduinoLib/Arduino.h:39,
from ArduinoLib/IPAddress.h:4,
from ArduinoLib/ESP8266WiFi.h:4,
from HamClock.h:155,
from menu.cpp:4:
/usr/include/c++/10/bits/charconv.h: In function ‘void std::__detail::__to_chars_10_impl(char*, unsigned int, _Tp)’:
/usr/include/c++/10/bits/charconv.h:72:66: internal compiler error: Segmentation fault
72 | __to_chars_10_impl(char* __first, unsigned __len, _Tp __val) noexcept
| ^~~~~~~~
In file included from /usr/include/c++/10/math.h:36,
from HamClock.h:145,
from moonpane.cpp:4:
/usr/include/c++/10/cmath: In function ‘constexpr long double std::erfc(long double)’:
/usr/include/c++/10/cmath:1328:23: internal compiler error: Segmentation fault
1328 | erfc(long double __x)
| ^
0x76985d9f ???
../sysdeps/unix/sysv/linux/arm/sigrestorer.S:64
Errors from the first caommand
E: unable to locate package libx11
E: unable to locate package dev
Try running *sudo apt update* and then then follow the tutorial.
i run windows 10 and i cant seem to get this to work i got windows terminal to work but it doenst like the commands i copy and past has anyone developed a simple download and install for this program yet or do i have to have something else installed 🤣
Hamclock won't run on Windows
The better question is how to run hamclock in the magicmirror environment?
It's too damn bad that you have to be a programer to get this to work. You would think by now someone would develop think program for EZ download for windows 10.....
Good video, sir.
Suggestion: Include what the options do (like for make, chmod, etc) when doing the command line, for noobs.
Kevin -- KD9EFV
Hi Kevin, I have a Linux 101 class for ham operators. km4ack.pivotshare.com/media/linux-101-for-ham-radio-operators/91954
@@KM4ACK Might want to include that in the template for your page up above... Just sayin'
BTW, that 'class', being a paid video, isn't my cup 'o' tea, so the quick ln '-s' and make '-j 4' would still be helpful for noobs...
Kevin -- KD9EFV (IT Support for Windows, Linux, and Raspbian, before the pandemic)
I saw on your page (app.simplenote.com/publish/C3bBxN) that had a link to a Linux 101 class or tutorial. Not sure what is there as it was not loading for me. I am new to Linux but had some help installing Ham Clock on a Pi4 running HamPi. If you got any help with the sizing, I would like to know that as well. K5DSJ