Help addition to PHP script
My dear friends, here I have one request, should one add to the visibility of the php script.
I not know under what number it takes to WDisplay program menu for manual entry, but should be accurate to make it work automatically. Specifically in WDisplay program is now added option of manually entering your visibility in km. options and refresh XML Scripts every minute or every 5min. I asked Mr. Brianna, and he has done, is doing everything right, this is the only supplement to kick in automatically, here's how I added the php script, but I am not a programmer so do not laugh like I did, because you all let me know who to properly do so. Thank you all for your help.
$Lng =-($data[161]);// invert because in WD it's minus for EAST of GMT
$SnowLvl = $extra[697]; // Snow depth
$gotSolar= $extra[701]=="s1"; // Solar info present
$wdvisibility='30.0';// unit="km" ...What number goes in this bracket for visibility, [?]
$wdDesc = ' '.strtolower($data[ 49]); // Inputted weather description
$Strikes = $data [114]; // Lightning
if ($Strikes < $MinStrikes) {
$Strikes = 0;
}
<dewpoint value="' . $Dewp . '"/>
</temperature>
<humidity value="' . $Humid . '"/>
<pressure value="' . $Baro . '" trend="' . $BTrend . '"/>'
. $solarTag
. $uvTag . '
<visibility value="' . $wdvisibility . '" />
<wind>
<speed value="' . $wavgspd . '"/>
<gust value="' . $wmaxgustlastimediate10 . '"/>
<direction value="' . $wDirec . '"/>
S: AMP Trnovec Bartolovecki on Sun, 11-Dec-2011 @ 07:14:09
Timezone: Europe/Zagreb
Data generated with yowindow-xml.php v2.4
Clouds: height 125m ... temp 0.4 C
Solar: 0% (present) / Rain Rate: 0.000 mm/h
WD Description: pretežno_oblačno
WD: Icon #3(Pretežno Oblačno) changed to #3(Pretežno Oblačno)
Mods:
--><response><auto_update><timestamp value="Sun, 11 Dec 2011 07:14:09 +0100"/><interval value="60"/><maxuploads value="10"/></auto_update><current_weather><temperature><current value="1.6"/><feels_like value="1.6"/><dewpoint value="0.6"/></temperature><humidity value="93"/><pressure value="1022.1" trend="0.4"/><visibility value="30.0"/><wind><speed value="0"/><gust value="0"/><direction value="225"/></wind><sky><description value="Pretežno Oblačno"/><clouds value="mostlyCloudy"/><precipitation><rain><rate value="0"/><daily_total value="0.0"/></rain></precipitation><thunderstorm value="0"/></sky></current_weather></response>