User Tools

Site Tools


en:radars

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

en:radars [2015/05/26 13:55]
wvdkuil created
en:radars [2015/05/26 14:01] (current)
wvdkuil [Which scripts]
Line 1: Line 1:
 +====== Radars ======
  
 +The fast changing information for the radar links is updated fequnently on this page.
 +
 +<WRAP center round tip 60%>
 +Last update: 2015-05-26.
 +</​WRAP>​
 +
 +
 +==== Clicking on a small radar image ====
 +
 +If you or a visitor to your website clicks on a small image of a radar, ​
 +the large image is displayed on top of the page using javascript - lightbox. \\ 
 +It is not always necessary to have the full pages in the menu, they can be hidden.
 +
 +
 +==== Which scripts ====
 +
 +^type      ^p=          ^script ^description ​               ^links using ^
 +|** Rain radars ** ||||
 +|dashboard |startPage ​  ​|./​inc/​rain3sourcesSmall.php\\ canada/​rain_radar_canada_small.php\\ europe/​rain-radar_europe_small.php\\ usa/​rain_radar_america_small.php ​ |2-3 kleine regen radars ​ | script ^
 +|full page|p=44 ​      ​|./​inc/​rain3sources.php \\ canada/​rain_radar_canada.php\\ europe/​rain-radar_europe.php\\ usa/​rain_radar_america.php ​ |2-3 regen radarbeelden in tabs |script |
 +|warning |sidecolom |./​wsSideColom.php ​ |optional 1 small rain radar  |./​_my_scripts/​set_links.php ​ |
 +|** Verschillende radars ** |||||
 +|dashboard |startPage ​  ​|./​wsDashRadars.php |small rain thunder clud radar|./​_my_scripts/​set_links.php ​ |
 +|** Thunder radar **||||
 +|warning |sidecolom |./​wsSideColom.php ​ |optional 1 small thunder radar  |./​_my_scripts/​set_links.php ​ |
 +|full page|p=45 ​      ​|./​inc/​thunderRadar.php ​ |Blitzortung thunder radar adapted to region ​ |./​_my_scripts/​set_links.php ​ |
 +|** Cloud radar ** ||||
 +|full page|p=42 ​      ​|inc/​cloudRadarv3.php ​ |1 cloud radars with tabs\\ only '​europe'​ '​america'​ canada'​ |script |
 +
 +
 +==== Radar URLs ====
 +
 +<code - set_links.php ><?​php
 +$now            = time(); ​
 +$utc_date ​      = gmdate ('​Y_m_d_H_00',​time() - 600);
 +switch ($SITE['​region'​]) {
 +        case '​europe':​
 +                # ------------------------------- thunder images ------
 +                $thunder ​       = '​http://​images.blitzortung.org/​Images/​image_b_eu.png'; ​       // europe
 +                #​$thunder ​      = '​http://​images.blitzortung.org/​Images/​image_b_uk.png';​ //  UK
 +                #​$thunder ​      = '​http://​images.blitzortung.org/​Images/​image_b_fr.png';​ //  south-western europe
 +                #​$thunder ​      = '​http://​images.blitzortung.org/​Images/​image_b_sk.png';​ //  northern europe
 +                #​$thunder ​      = '​http://​images.blitzortung.org/​Images/​image_b_gr.png';​ //  sout-east europe
 +                #​$thunder ​      = '​http://​images.blitzortung.org/​Images/​image_b_pl.png';​ //  eastern europe
 +                #​$thunder ​      = '​http://​images.blitzortung.org/​Images/​image_b_de.png';​ //  eastern europe
 +                # ------------------------------- rain images ----------
 +                $rain           = '​http://​www.meteox.com/​images.aspx?​jaar=-3&​amp;​voor=&​amp;​soort=exp&​amp;​c=&​amp;​n=&​amp;​tijdid='​.$now;​
 +                # ------------------------------ cloud images ----------
 +                $clouds ​        = '​http://​www.sat24.com/​image2.ashx?​country=eu&​amp;​type=loop&​amp;​sat=vis';​
 +                break;
 +        case '​america':​
 +                $thunder ​       = '​http://​images.blitzortung.org/​Images/​image_b_us.png'; ​       // North America
 +                #​$thunder ​      = '​http://​images.blitzortung.org/​Images/​image_b_tx.png'; ​      // texas
 +                #​$thunder ​      = '​http://​images.blitzortung.org/​Images/​image_b_ny.png'; ​      // new york
 +                #​$thunder ​      = '​http://​images.blitzortung.org/​Images/​image_b_ca.png'; ​      // california
 +                #​$thunder ​      = '​http://​images.blitzortung.org/​Images/​image_b_fl.png'; ​      // florida
 +                # ------------------------------- rain images ----------------------------------
 +                $rain           = '​http://​icons.wunderground.com/​data/​640x480/'​.$SITE['​WUregion'​].'​_rd_anim.gif';​
 +                # ------------------------------ cloud images ---------
 +                $clouds ​        = '​http://​www.ssd.noaa.gov/​goes/​comp/​nhem/​rb.jpg?​tijdid='​.$now;​
 +                break;
 +        case '​canada':​
 +                $thunder ​       = '​http://​images.blitzortung.org/​Images/​image_b_us.png'; ​       // North America
 +                $rain           = '​http://​weather.gc.ca/​data/​radar/​detailed/​temp_image/​COMPOSITE_NAT/​COMPOSITE_NAT_PRECIP_RAIN_'​.$utc_date.'​.GIF';​
 +                $clouds ​        = '​http://​www.ssd.noaa.gov/​goes/​comp/​nhem/​rb.jpg?​time='​.$now;​
 +                break;
 +        default:
 +                $thunder ​       = '​http://​images.blitzortung.org/​Images/​image_b_oc.png'; ​       // europe
 +                $rain           = '​http://​www.bom.gov.au/​radar/​IDR00004.jpg';​
 +                $clouds ​        = '​http://​www.sat24.com/​image2.ashx?​country=eu&​amp;​type=loop&​amp;​sat=vis';​
 + }
 +$ws['​img_lightning'​] ​   = $thunder;
 +$ws['​img_rain'​] ​        = $rain;
 +$ws['​img_clouds'​] ​      = $clouds;
 +</​code>​
en/radars.txt · Last modified: 2015/05/26 14:01 by wvdkuil