Upload graphics and scripts
Brought to you by:
iridium
From: Martin G. <gim...@gi...> - 2002-03-10 20:37:12
|
Ray sent this message to the list, but it was stopped because it was too big - I'm resending it without the files attached. The files are now in CVS, take a look here: http://cvs.sf.net/cgi-bin/viewcvs.cgi/phpweather/phpweather-1.x/ > Hi all! > > It took me a while, but please find the weather icons and the > accompanying script images.inc enclosed. Martin, if you want, you > can add these to the phpweather project. Of course I want to add these files to the project! Thanks a lot! =20 > To use the icons, include the images.inc and the regular phpweather > files (locale_**.inc and phpweather.inc). The images.inc script > contains all filenames and the images path. Great - I've changed it a bit to include the images from a 'icons' subdirectory. =20 > The images.inc script relies heavily on the phpweather code: it > expects that the metar has already been decoded by process_metar(). > The images.inc script contains a function that converts the wind > speed in [m/s] to Beauforts. I don't know about the rest of the > world but in the Netherlands windspeed is often expressed in > Beaufort. IMHO, I think that the Beaufort unit should be part of the > already existing knots/milesperhour/kilometersperhour function in > phpweather.inc. In that case, the function can be deleted from > images.inc. You're right - it should probably be part of the output. But this is a more general problem: there's more unit-systems in use today than the metric and imperial. Some people like a mixture of those two systems, so the best thing would be, if we could support a wide range of units, so that people could chose their preferred unit for each bit of the report. > During development of images.inc I made a very simple and small > script (list.php) that shows all available associative array > elements. This way I could check the operation of the images.inc > functions. The list.php is included as well. Nice - some people have asked for such a tool. I've changed it slightly so that the output looks more like what you get by using the print_r() call in PHP4. =20 > I included a demo page as well: table.php. This page shows all > available icons and some explanation. That's really good. =20 > Finally, I was wondering if the phpweather can be changed such that > it 'understands' the /////KT notation on wind (and other groups), as > is discussed in the 'Funny chars in metar?' thread in this list. I > still haven't seen a spec on that, but apparently the notation > *does* exist. >=20 > I did not want to add this in CVS, because I'm not familiar with it: > I'm only starting in Linux. >=20 > Have fun! >=20 > Ray =2D-=20 Martin Geisler My GnuPG Key: 0xF7F6B57B See my homepage at http://www.gimpster.com/ for: PHP Weather =3D> Shows the current weather on your webpage. PHP Shell =3D> A telnet-connection (almost :-) in a PHP page. |