Re: 'Bug' with weather icons (images.inc)
Brought to you by:
iridium
From: Ray v. B. <r_v...@ho...> - 2002-03-13 21:01:17
|
>My mistake! I was passing the actual metar string to your function instead >of the array. In other words, I was doing this: Glad you found it! >That's what I get for not reading the comments/instructions very carefully. >:) Yep, that's true... >Well, my web site is here: http://www.moulton-udell.k12.ia.us/ The >weather >is located in the navigation column on the left-hand side (at the bottom). >It looks okay in IE, but for some reason, my columns get squished in >Netscape. I'm still trying to work on that. I found it. Great! Do you mind if I reference your site on my 'Online weather' project page http://www.devolder.nl ? >To print the current weather string, I'm doing something like this: > > $metar = get_metar('KOTM'); > > $data = process_metar($metar); > > $condition = ucfirst($data['cloud_layer1_condition']); > $weather = $data['weather']; > > // if there is no current weather, use the cloud condition instead > if (strlen($weather) == 0) { > echo "$condition<br>\n"; > } else { > echo "$weather<br>\n"; > }; > >This way if there is no current weather data in the metar, it will fall >back >on the cloud condition. Hope this helps. That *is* a good idea. Now Kevin, I like the today's specials for lunch. Maybe I'll drop by :-) Greetz, Ray _________________________________________________________________ Chat with friends online, try MSN Messenger: http://messenger.msn.com |