Skip to main content

Things I Learned: Time Stamps on QSO Maps using the Google Charts API, Datasette, and KML

 I'm still using that API that was deprecated. I know I should give it up, but it just keeps being useful. It's possibly the best Google product ever. (In that it just keeps on existing rather than falling into the deprecation void.)

Specifically, I used the dynamic icon portion of the Google Charts API. 

The Google Earth Pro animations of our QSO are missing something. (OK, maybe lots of things, but one thing I saw that I could add on this iteration.) They don't have a way to easily view the time of each QSO, or the progression of time during the POTA or SOTA session. Thanks to a suggestion from a StackOverlow user, dynamic bubble icons have provided that!


I've added icons that appear with each QSO on the map, displaying the callsign, received RST, and and time of the QSO, as well as a different set of time icons that simply update each minute of map time to display the UTC time as the map animates.

Using the Google Dynamic Icon API

The following address gives back a bubble icon for a QSO with N5KIP.

https://chart.apis.google.com/chart?chst=d_bubble_icon_texts_big&chld=glyphish_clock|bbT|00ff00|000000|n5kip|Received+RST+539|2024-03-09T13:35:00


But, I also wanted to know how time was progressing as the map advanced, so I also added bubble icons that updated once per minute. 

I built all of this in the Datasette QSO application I've been developing. Adding kml features has been much easier since I moved to using Datasette's Jinja capabilites.

For example, to add the icons that update each minute, I simply added a jinja loop to the kml template that creates one screen overlay per minute during the time span between the first and last QSOs.

{% for map_minute in Map_minutes %}

        <ScreenOverlay>

                <name>Map Time</name>

                <Icon>

                        <href><![CDATA[https://chart.apis.google.com/chart?chst=d_bubble_icon_texts_big&chld=glyphish_clock|bb|00ff00|000000|{{ map_minute }}]]></href>

                </Icon>

                <drawOrder>{{loop.index}}</drawOrder>

                <overlayXY x="0" y="1" xunits="fraction" yunits="fraction"/>

                <screenXY x="0.4" y="0.1" xunits="fraction" yunits="fraction"/>

                <rotationXY x="0" y="0" xunits="fraction" yunits="fraction"/>

                <size x="0" y="0" xunits="fraction" yunits="fraction"/>

                <TimeStamp>{{ map_minute }}</TimeStamp>

        </ScreenOverlay>

{% endfor %}

What Happens When the API Goes Away Forever

What about deprecation concerns? For now, I'm studiously recording each animated map as a video. The recordings do not depend on the API. This might not be a sustainable model for new videos... eventually. Still, worst case, none of the existing videos will break.


References:

Small world! The StackOverflow user mentioned above had also provided the kml circle generator I use on some of my QSO maps.

Comments

Popular posts from this blog

How Many Files Can You Add to a GPT Project? An Interview with GPT-5 on Limits, Context Engineering Tips, and Chats

 Setting the scene: I’m tinkering with Project TouCans, knee-deep in radio logs, SQLite dumps, and Cesium code. Naturally, I’m wondering if shoving all this into one GPT Project is a recipe for brilliance… or for disaster. So I turn to Vril — you know, after Brainy from the Legion of Super-Heroes , because what else do you call your AI sidekick who always has the answers? Time to ask him straight up. [ As an aside, yes, GPT-5 has decided to sometimes call me Vail. I'm not sure why to be honest. Also, I asked Vril, er GPT-5, to write up our interview for me. Apparently, me asking it to 'Bro' up a few stories, just for fun, has convinced Vril that I use 'Like,' more than I actually might. ] Me (Vail): So Vril, how many files can I throw into a GPT Project before it just starts choking? Like, is there some magic number where the context window taps out and everything falls apart? GPT-5 (Vril): Great question. There’s no single hard file limit. What matters is ...

The Alcubierre Warp Drive Tophat Function and Open Science with Sage

I transferred yesterday's Mathematica file with the Alcubierre warp drive[2] line element and space curvature calculations to the  +Sage Mathematical Software System  today, (the files been  added to the public repository [3]).  If you haven't used Sage before, it's a Python based software package that's similar in functionality to Mathematica.  Oh, and it' free.  I also worked a little more on understanding the theory, but frankly, I made far more progress with the software than the theory.  What follows will be a little more of the Alcubierre theory, plus, a cool Sage interactive demo of one of the Alcubierre functions[1], as well as a bit about my first experience with using Sage. Theory The theory is fun, but it's moving slowly.  Here's the chalk board from this morning's discussion Alcubierre setup the derivation using something called the 3+1 formalism which means we consider space to be flat, (in this case), slices that are labelled ...

When Codex CLI Met Port 9 (Debugging WinError 10061 in a Whisper Pipeline)

When Port 9 Ate My Transcript When Port 9 Ate My Transcript A small debugging story about proxies, Codex CLI, and why localhost isn’t always your friend. CopaseticFlow field notes WinError 10061 Codex CLI + Whisper Environment gremlins There’s a particular kind of bug that feels like someone's been messing with your network stack again. You run a script from cmd.exe . It works. You run the exact same script from Codex CLI. It stops with: [WinError 10061] No connection could be made because the target machine actively refused it FFmpeg happily splits the audio. The Whisper API call dies immediately. No 401. No timeout. Just an instant refusal. Translation: that’s not an API error. That’s a socket being rejected. ...