Re: More documentation or archived info
Brought to you by:
iridium
From: Martin G. <gim...@gi...> - 2003-08-20 10:37:15
|
"GREGG HALES" <gr...@ki...> writes: Hi Gregg > does anyone have more concise documentation. Have tried to access > the link to archive section on sourceforge, but always get the > message that the archive is restricted to members of the group only. I've just tried accessing the SourceForge archives of phpweather-devel without being logged in and it worked. There's also a bit of documentation available here http://phpweather.sourceforge.net/phpweather/docs/ I don't know how much of a help this is though, for you should also have received those documents in the tarball/zipfile you've downloaded. > Just want a bit of guidance. Want to display multiple locations, as > pulling info into another program result page. If you can get PhpWeather do display one report, then it shouldn't be difficult to display two :-). Either make another phpweather object with a different ICAO or change the ICAO with the set_icao() method. Then create new pw_text_xx and pw_icons objects from the phpweather object. > Have experimented with mysql, but does not appear to be updating > info, has anyone got mysql working, and if so, what did you find > requiring alteration. MySQL should be working... what are the exact problems you're seeing? > Secondly, what areas do we need to alter, to alter the complete > return of results. Unless I have missed something completely, there > is no short cut for this, in the form of a template file. Due to > size of visible area restraint, all we want is abbreviated wording > and images like: > n_1cloud_norain.gif || few clouds > see.gif || Wind: E/SE > temphigh.gif || Temp: 27=B0C > > Any quick pointers to which files to look at quickly and code to > alter would be greatly appreciated. You should write your own code that picks the data out of the array returned by the decode_metar() method in the phpweather class. The problem is basically that PhpWeather has grown out of the ad-hoc textual report I used when I first wrote it. Because the report tries to string something together that can be considered sentences, it's rather ackward to use the individual parts... There's also a lot of translations now which makes it a bit difficult to change things radically. Perhaps we should start over with a PhpWeather version 3? I've certainly learned a lot since version 2, both about how object oriented programming should be done, but also about things like clever new template systems. > As would access to the archive section, as the answer is probably > already in there. Doesn't the archive at SourceForge work? http://sourceforge.net/mailarchive/forum.php?forum_id=3D2219 I'm not very fond of the webinterface, but I believe it's working... --=20 Martin Geisler My GnuPG Key: 0xF7F6B57B See http://gimpster.com/ and http://phpweather.net/ for: PHP Weather: Shows the current weather on your webpage and PHP Shell: A telnet-connection (almost :-) in a PHP page. |