I need to embed the current NOAA GOES-18 Weather Satellite Image onto a web page on the Squarespace platform.
Here is the web page at NOAA where they serve the images for Alaska:
https://www.star.nesdis.noaa.gov/goes/sector.php?sat=G18§or=cak
On that page, NOAA provides a link to the current image file, but the date and time constantly changes as new data comes down from space every 10 minutes.
For example, here is the current image as of the day/time of this post. I need to figure out a way to have an image link that dynamically changes to the current image that somehow auto-populates the below date/time portion of the URL (....20230592100...) which shows the "day # of the year" (059 for Feb 28th) and then the time in Zulu.
I suspect the way to do this would be via a combination of JavaScript and HTML but I would appreciate someone pointing me in the right direction. Thanks.
Tried some rudimentary HTML and JavvaScript code but got nowhere.
Read these as well: Refresh image with a new one at the same url Auto refresh images in HTML
I am a beginner at HTML and JavaScript.
When you remove the image name from the URL, you get to the folder with the images. There seem to be direct links available:
2400x2400.jpg 28-Feb-2023 22:49 1609773
300x300.jpg 28-Feb-2023 22:49 50795
600x600.jpg 28-Feb-2023 22:49 156535
GOES18-CAK-GEOCOLOR-600x600.gif 28-Feb-2023 22:36 10207340
latest.jpg 28-Feb-2023 22:49 1609773
So you can just load https://cdn.star.nesdis.noaa.gov/GOES18/ABI/SECTOR/cak/GEOCOLOR/latest.jpg
Here is the current image in a smaller resolution: