Last week, I asked ChatGPT to create header maps per QSO from a CZML map of my POTA outing. It dumped out code that I had to fuss a little bit with, but that did the job admirably.
The output is text-encode png images in the console of the Cesium Sandcastle window. I would then download those images by copying them into an html file, opening the html file in a browser, and downloading each of the images individually. That was cool, until...
Last night, I made 51 QSOs at US-4571 in San Francisco. That's a lot of files to download individually, so I asked ChatGPT:
Please write a JavaScript, do not use React, that can save all the images from web page locally.
It responded with code that downloaded the first 10 images. I asked it for a fix
That only downloaded the first ten. Please modify the code so that it downloads all the imags and uses .png as the default extension.
and it produced a modified version of the code that handily downloaded all 50. See the demo below. You can see the differences in the code produced in this gist.
Comments
Post a Comment
Please leave your comments on this topic: