WXforum.net
May 23, 2013, 12:11:36 PM *
Welcome, Guest. Please login or register.

Login with username, password and session length
Members: 6617  •  Posts: 178673  •  Topics: 18129
Please welcome TheMOX, our newest member.
Welcome to the the new hosting for WXforum.net.
 
   Home   Help Search Login Register  
Pages: [1]   Go Down
  Print  
Author Topic: WD Iphone script...  (Read 772 times)
0 Members and 1 Guest are viewing this topic.
ADM
Contributor
***
Offline Offline

Posts: 119


WWW
« on: November 28, 2010, 03:35:15 PM »

Hello,

I am attempting to use the WD Phone script and can't seem to figure out how to configure the script for my area radar and advisories.  The script is using this for the advisories:

$warnzone = $_REQUEST['warnzone'];
$warncounty = $_REQUEST['warncounty'];
$warnlocal = $_REQUEST['warnlocal'];

//import NOAA Advisory info
//data can be altered by changing the zone and county numbers
//Target data ends up in $targetwarn and $targettext[0]

$html = implode('', file("http://www.srh.noaa.gov/showsigwx.php?warnzone=${warnzone}&warncounty=${warncounty}"));

I have added my Zone codes and changed the file location bey get nothing.

Also, any tips on setting up the radar section would also be appreciated.

Thanks!

Al...
Logged

ALITTLEweird1
Mark
Forecaster
*****
Online Online

Posts: 402



WWW
« Reply #1 on: December 02, 2010, 08:52:34 PM »

Whats the link to your iphone page?

Here's mine.. http://www.snoqualmieweather.com/iphone.php
Logged

"Nature can do without man, but man cannot do without nature."


Software: WeatherDisplay
Hardware: Davis VP2 + VP2 Solar + 1-wire Lightning + 1-Wire UV + Logitech Quickcam Pro 9000
ADM
Contributor
***
Offline Offline

Posts: 119


WWW
« Reply #2 on: December 12, 2010, 07:18:00 AM »

Here is the link to my iphone page

http://www.barrowcountyweather.com/iphone.php

Thanks for your help!

Al
Logged

ALITTLEweird1
Mark
Forecaster
*****
Online Online

Posts: 402



WWW
« Reply #3 on: December 12, 2010, 05:33:19 PM »

For my advisories this is how mine is setup..

Code:

<?php

// Force Defaults for Zone and County
if ( ! isset($_REQUEST['warnzone']) )
        
$_REQUEST['warnzone']="WAZ505";
if ( ! isset(
$_REQUEST['warncounty']) )
        
$_REQUEST['warncounty']="WAC033";
if ( ! isset(
$_REQUEST['warnlocal']) )
        
$_REQUEST['warnlocal']="Snoqualmie+WA";

//You can pass data to this script with:
// http://www.carterlake.org/testadvisory.php?warnzone=KYZ030&warncounty=KYC111&warnlocal=Anchorage+KY
//Where the zone is your zone and the county is your county and location is your location
//using pluses in place of spaces

$warnzone $_REQUEST['warnzone'];
$warncounty $_REQUEST['warncounty'];
$warnlocal $_REQUEST['warnlocal'];


This is my radar settings, theres 2 places that you need to change your settings. You should just be able to change your long. and lat. and it should work.

Code:

{
var myradius = radius*1.852;
var severe_overlay="http://wumaps.wunderground.com/cgi-bin/mapgen?theme=severe&stdout=1&size=278x278&lat=47.552548880794056&lon=-121.80756568908691&format=gif&alpha=1&radius="+myradius+"&r="+new Date().getTime();
document.getElementById('severe_overlay').src = severe_overlay;
return;
}
function changeRadarSource(animated, radius)
{
var num = 1;
if (animated == true)
num = 6;
document.getElementById('radarImage').src = "http://radblast.wunderground.com/cgi-bin/radar/WUNIDS_composite?centerlat=47.552548880794056&centerlon=-121.80756568908691&radius="+radius+"&type=N0R&frame=0&num="+num+"&delay=15&width=278&height=278&newmaps=1&r=1225814451&smooth=1&rainsnow=1&lat=47.552548880794056&lon=-121.80756568908691&label=You+Are+Here";
return;
}



Logged

"Nature can do without man, but man cannot do without nature."


Software: WeatherDisplay
Hardware: Davis VP2 + VP2 Solar + 1-wire Lightning + 1-Wire UV + Logitech Quickcam Pro 9000
ADM
Contributor
***
Offline Offline

Posts: 119


WWW
« Reply #4 on: December 13, 2010, 03:29:42 PM »

Thanks for your help!  Working now.

Al
Logged

Pages: [1]   Go Up
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!
Page created in 0.101 seconds with 19 queries.
anything