I used ChatGPT to crank out a new blog feature: a slide deck that shows all the QSO videos from an activation.
Before I get started, allow me to admit that I just found out that YouTube provides code to embed a playlist on an html page. I didn't know this when I started this project, and frankly, I'm kinda happy about that. If I found an embedded playlist, it would not have been obvious to me that there was more than one video. I would have missd all the others.
An example of the resulting video deck can be seen on the field report from my latest POTA activation.
I asked ChatGPT to create the CSS and HTML for a video deck presented on a statically served HTML page. It got really close on the first attempt. I only had to refince the code a bit to get exactly what I wanted. The AI even dumped out JavaScript code I hadn't remembered to ask for to control the deck.
Later I realized that adding video links one at a time to my blog page was a bit tiresome. I asked the AI to write some Python for me that would query the YouTube Data API for all the video links at once. It did it! I had to modify the code a bit so that it had the exact iframe format I wanted, but that was all.
ChatGPT is makign it far easier to code what I want on a lark. You can find the entire transcript from ChatGPT here to see what refinements I had to make as I went.
I've mentioned this before, but the gang and I are getting lots of our AI inspiration from Simon Willison's weblog.
Comments
Post a Comment
Please leave your comments on this topic: