Web Weather > Weather Website PHP/AJAX scripting
UPdated wxGOES16&17(18)-HAniSLoops with New Image Series (& More!)
gwwilk:
Long story short, I noticed that NESDIS had added three more composited image series to their satellite services, Sandwich, Day Cloud Phase, and Night Microphysics. After being frustrated in my efforts to add these new series to this script, I saw that the filenames in the directories I was scraping were truncated and not valid.
I contacted NESDIS and within just five minutes I received a kind and very helpful reply that pointed me to JSON Data where the filenames could be obtained intact and with much less brute force than my directory scraping used. I prevailed upon the ever helpful and incredibly talented Ken True to modify the <iframe> portion of these script sets in order to use the JSON Data. Always accommodating and always creative, he produced new <iframe> scripts that do the trick!
So, there is a new wxGOES16-HAniSLoops version as well as a new wxGOES17-HAniSLoops version up on my site and available via my scripts page.
Thanks a million, Ken, for modifying both <iframes> =D> \:D/ =D>
mikeym2m:
Thanks Jerry and Ken [tup] [tup]
MikeyM
saratogaWX:
You're very welcome, Jerry! It was quite an exercise to determine the underlying naming convention used by NESDIS for the JSON filenames, but once that was cracked, it was very simple to get the data needed by your script to display the images with HAniS.
Also, nice job in expanding the image types displayed by the scripts!!
gwwilk:
I would recommend that everyone who is using my older GOES16 and GOES17 HAniS-Animated scripts update to the new, vastly improved :grin: version. It will greatly reduce the load on the NESDIS servers.
Along those lines, I've been using a modified version of my old GOES16 HAniS-Animated script as my satellite animation in my 'index.php'. I've created a generalized version of this script using Ken's JSON-Data filename acquisition technique. It works for all those '$sectors' indicated in the comments, namely all continental US sectors and Puerto Rico. It can be set to your liking via the parameters indicated.
This, in context, is how it's displayed in my 'index.php':
--- Code: --- <table width="99%" style="border: none">
<tr><td align="center">
<a class="hvr-glow hvr-grow" onclick="x=window.open('https://radar.weather.gov/Conus/Loop/uppermissvly_loop.gif')" target="_blank" title="Larger View in New Tab"><img src="https://radar.weather.gov/Conus/Loop/uppermissvly_loop.gif" alt="Regional Radar" width="320" height="240" style="margin: 0px; padding: 0px; border: none; cursor:pointer" /></a>
</td>
<td align="center" style="padding:0px">
<a class="hvr-glow hvr-grow" title="Operational US Satellite Loops in New Tab"><iframe id="satLoops" width="320" height="238" align="left" src="wxGOES16-HAniSLoops-iframe-index.php" style="margin: 0px; padding: 0px; border: none; cursor:pointer"></iframe></a>
</td>
</tr>
<tr><td colspan="2" class="subHeader" align="center" style="font-size:75%; float:none">Radar image courtesy of <a href="https://radar.weather.gov/" target="_blank" title="Opens in New Tab">NWS Radar</a> & satellite images courtesy of <a href="https://www.star.nesdis.noaa.gov/GOES/sectors_index.php" target="_blank" title="Opens in New Tab">NESDIS</a>.</td></tr>
</table>
--- End code ---
lddaly:
Thank you, Ken and Jerry! I have wxGOES16-HAniSLoops.php running on my site. The only change I made was adding css to be consistent with wxnwsradar.php and display the dropdown categories under Satellite View with black text on a white background.
--- Code: ---#selectors optgroup {
color: black;
background: white;
}
#selectors option {
background-color:<?php echo $btnColor?>;
border-radius:7px;
color:<?php echo $btnTextColor?>;
}
#selectors select {
background-color:<?php echo $btnColor?>;
border-radius:7px;
color:<?php echo $btnTextColor?>;
}
--- End code ---
Navigation
[0] Message Index
[#] Next page
Go to full version