How to display weather radar map on website?

I’m specifically looking for a weather radar map, similar to this one to display on a WordPress website: http://www.vantilburgfarms.com/weather_local_radar.htm

The radar above is animated and zoomed in on the Indiana, Ohio part of the US, which is exactly what I need. I don’t want to steal this map from the website.

Read More

I’ve Googled this and the only things I can find are 5-day forecasts. Any suggestions?

Related posts

Leave a Reply

5 comments

  1. Looking at their page source, it’s setup like so:

    <a href="http://www.tephigram.weather.net/cgi-bin/razradar.cgi?zipcode=45822&amp;width=720&amp;height=486" target="main">
        <img border="0" dynsrc="http://www.tephigram.weather.net/cgi-bin/razradar.cgi?zipcode=45822&width=720&height=486" start="fileopen" src="http://www.tephigram.weather.net/cgi-bin/razradar.cgi?zipcode=45822&width=720&height=486">
    </a>
    

    Which sources this site:

    http://www.tephigram.weather.net/cgi-bin/razradar.cgi?zipcode=45822&width=720&height=486

    Via dynsrc:

    http://www.htmlcodetutorial.com/images/_IMG_DYNSRC.html
    http://www.citycat.ru/doc/HTML/IExplorer.30/mmedia.htm

    Basically, they’re setting a regular old <img>‘s source to be an external video clip.

    Ironically, it looks like they’re stealing it.

  2. Check out the National Weather Service radar:
    http://radar.weather.gov/radar.php?rid=LOT&product=N0R&overlay=11101111&loop=yes

    If you fire up something like Fiddler, you can see the requests for the individual images being used to make the “loop”. In the past, I have created something where these frames were cropped to a specific area, and then placed into an animated GIF. This is trivial with ImageMagick, or GD, which are generally available in PHP. You could also do this with JavaScript if you were crafty with DIV overflow.

    As for licensing, I believe you can use it without a license, but you should check with a lawyer who knows for sure. I am not one.

  3. Well, I am not entirely sure of how to without “stealing” it. <div><img src="http:///images.intellicast.com/WxImages/RadarLoop/day_None_anim.gif" height="496" width="768"></div> will work, but is stealing from WUNDERGROUND INTELLICAST.

  4. The other answers on this page are severely outdated, don’t use them anyway because we now use https instead of http here in 2023. Your website will be considered “Unsafe” if you include any frames/objects that are pointing to http:// by many modern browsers.

    The HTTP (old) way:

    If you still need http, and don’t care about the unsafe thing, you can use this site which is free/legal to use, it even has a wizard to make a custom embed for you. Here is an example embed for Latrobe, PA:

    <iframe src="http://www.zoomforecast.com/zoomradar_weather_map/weather_image_user.php?key=QqKbiO1WI2CAo9g" width="600" height="500" style="border:0" frameBorder="0" seamless="seamless" scrolling="no" allowfullscreen="true"></iframe>
    

    This was an auto-generated snippet, you need to regenerate your own at their website. It is free, they just ask for a reference name to your website, so if/when it goes down, they can ditch the token.

    There are many “widgets” for weather, but radar has become quite coveted by media sites and so providers have taken to charging a fee for their legitimate use. Using JavaScript to programmatically grab the images is not usually legal, so you best get permission before doing so!

    The HTTPS (secure/up to date way):

    The HTTPS way is your best bet, they are secure. This website does a more up to date image embed like the last:

    <iframe width="650" height="450" src="https://embed.windy.com/embed2.html?lat=40.292&lon=-79.405&detailLat=40.292&detailLon=-79.405&width=650&height=450&zoom=5&level=surface&overlay=wind&product=ecmwf&menu=&message=&marker=&calendar=now&pressure=&type=map&location=coordinates&detail=&metricWind=default&metricTemp=default&radarRange=-1" frameborder="0"></iframe>
    

    The big difference is that it is secure. Hope that helps anyone who ends up here (Wrote this because I hate dead ends and outdated info)