2000-11-01  Martin Geisler  <gimpster@gimpster.com>

	* locale_no.inc 1.7, locale_nl.inc 1.6, locale_fr.inc 1.6, locale_es.inc 1.7:
	Added temporary English string for runway_vis and runway_vis_min_max.

	* locale_dk.inc 1.7:
	Added translated strings for runway_vis and runway_vis_min_max.

	* phpweather.inc 1.52: Removed a debug-message.

	* phpweather.inc 1.51:
	Added support for 'CAVOK', meaning generally good weather. Also added
	support for the runway-visibility groups. These two things were
	suggested by Johnny Funder <jhf@slv.dk>.

	* locale_en.inc 1.8: Added strings for runway-visibility.

	* locale_no.inc 1.6, locale_nl.inc 1.5, locale_fr.inc 1.5, locale_es.inc 1.6:
	Added temporary English string for CAVOK.

	* locale_en.inc 1.7: Added string for CAVOK.

	* locale_dk.inc 1.6: Ups - It was 5000 feet and not meters. :-)

	* locale_dk.inc 1.5: Added string for CAVOK.

2000-10-31  Martin Geisler  <gimpster@gimpster.com>

	* locale_nl.inc 1.4:
	Translations for 'variable directions' by Nicky Haan
	<nicky@netcase.nl>

2000-10-29  Martin Geisler  <gimpster@gimpster.com>

	* phpweather.inc 1.50:
	MySQL expects to receive the time in local time, not in UTC. That's
	why I had to subtract date('Z') before. This has now been fixed.

	I hope that this will still work with PostgreSQL and dbm databases.

2000-10-28  Martin Geisler  <gimpster@gimpster.com>

	* phpweather.inc 1.49:
	Added a new function: update_metars_db(). You should call this
	function to update all the METARs in your database. The METARs will be
	updated by the normal fetch_metar() function.

	If you call update_metars_db() from register_shutdown_function(), then
	the database will be update when the script is terminated. This means
	that the user won't have to wait, while the script fetches new
	metars.

	If you wan't to ensure that the script never tries to fetch a METAR,
	then use the new argument to get_metar($station,
	$always_use_cache). By setting $always_use_cache to true, get_metar()
	will always return the old METAR, if any. It still fetches a new METAR
	is no old one could be found.

	* phpweather.inc 1.48:
	As suggested by Maciek Uhlig <muhlig@us.edu.pl>, we now use the
	timestamp found in the first line of the raw report, if the timestamp
	is lacking from the METAR.

2000-10-27  Martin Geisler  <gimpster@gimpster.com>

	* locale_dk.inc 1.4:
	Changed 'variable' to 'forskellige' since it sounds more Danish this
	way.

	* phpweather.inc 1.47:
	Sven-Erik spotted that the 'variable directions'-string wasn't
	translated. It is now corrected.

	* locale_fr.inc 1.4: Temporary English text for 'variable directions'.

	* locale_dk.inc 1.3:
	Added a Danish translation of 'variable directions'.

	* locale_nl.inc 1.3, locale_es.inc 1.5:
	Temporary English text for 'variable directions'.

	* locale_en.inc 1.6: Fixed the 'variable directions'-string.

	* locale_no.inc 1.5:
	Sven-Erik spotted that the 'variable directions'-string wasn't
	translated. It is now corrected.

2000-10-26  Martin Geisler  <gimpster@gimpster.com>

	* locale_fr.inc 1.3, locale_no.inc 1.4:
	Added translated 'no_data'-string.

	* locale_nl.inc 1.2: Added 'no_data' string.

	* locale_es.inc 1.4, locale_no.inc 1.3, locale_fr.inc 1.2:
	Added temporary English version of the 'no_data' string.

	* locale_en.inc 1.5: Removed 'But' from the 'no_data' string.

	* phpweather.inc 1.46:
	Now that I think about it - perhaps I should use gmdate() instead of
	date()? :-) It seams to work now...

	* phpweather.inc 1.45:
	If the file is unavailable, we wait 10 minutes before we check
	again. There is no need to stress the server.

	* phpweather.inc 1.44:
	If we fetch a new metar, and the new one is more than one hour old (it
	happens when stations doesn't update the metar), then we adjust the
	timestamp to time() - 3300. This ensures that we don't try to fetch
	the metar again within the next 5 minutes.

	Also added some exception-handling. If the station-file is
	unavailable, then we set the metar to an empty string, and then it is
	pretty-printed, a nice message will tell the users that the data is
	unavailable.

2000-10-25  Martin Geisler  <gimpster@gimpster.com>

	* locale_dk.inc 1.2: Danish 'no_data' string.

	* locale_en.inc 1.4: Added no_data string.

2000-10-21  Martin Geisler  <gimpster@gimpster.com>

	* demo.php 1.31:
	Made the file more suitable for it's new stand-alone role.

2000-10-18  Martin Geisler  <gimpster@gimpster.com>

	* locale_no.inc 1.2: Update.

2000-10-17  Martin Geisler  <gimpster@gimpster.com>

	* locale_en.inc 1.3: Closed an unclosed parenthesis.

2000-10-16  Martin Geisler  <gimpster@gimpster.com>

	* locale_dk.inc 1.1, locale_no.inc 1.1: New file.

	* phpweather.inc 1.43:
	Added a test, so that if the cloud-condition is OVC, then we don't add
	the $strings['clouds']. This is to avoid the silly 'there were
	overcast clouds'-text. It also eliminates the same problem in the
	Danish translation.

	* demo.php 1.30:
	Added a description of the Norwegian and Danish translations.

	* demo.php 1.29: Added a Norwegian translation done by Sven Erik
	<sven_erik@andersen.as> and my own Danish translation.

2000-10-14  Martin Geisler  <gimpster@gimpster.com>

	* demo.php 1.28:
	Added the name of the author to the description of the locale-files

	* demo.php 1.27:
	Added French to the list of languages. Thanks to Antoine Bajolet
	<antoine.bajolet@free.fr> for translating PHP Weahter.

	* locale_nl.inc 1.1, locale_fr.inc 1.1: New file.

2000-10-10  Martin Geisler  <gimpster@gimpster.com>

	* demo.php 1.26:
	Added Dutch language option, kindly provided by Nicky Haan
	<nicky@netcase.nl>.

2000-10-09  Martin Geisler  <gimpster@gimpster.com>

	* locale_es.inc 1.3:
	It said that the time was local time in Buenos Aires, when it really
	was UTC.

2000-10-08  Martin Geisler  <gimpster@gimpster.com>

	* demo.php 1.25: Made some links point to gimpster.com

	* demo.php 1.24:
	Added a Support section with a link to the new maillinglist. Also
	added descriptions of the locale-files.

	* demo.php 1.23:
	Support for multiply languages has been added, so I made a drop-down
	list there you can try out the different languages.

	* phpweather.inc 1.42:
	Added support for other languages that English! A big thanks goes to
	Eduardo Guilenea <eduardo@guilenea.com> for translating PHP Weather
	into Spanish.

	* locale_en.inc 1.2:
	Added the other arrays to the file. Also made sure that any old
	language-arrays would be unset before we load the new ones.

	* locale_es.inc 1.2: Added the $weather, etc arrays to the file.

	* locale_en.inc 1.1, locale_es.inc 1.1: New file.

2000-10-01  Martin Geisler  <gimpster@gimpster.com>

	* phpweather.inc 1.41:
	Initialized the variable $weather_str, to prevent stupid errors from
	PHP when it was used without being defined. It was on purpose that it
	wasn't defined, it was just supposed to be an empty string - now we
	make it an empty string ourselves if we don't need it.
	Also checked for the existence of a couple of other variables.

	* phpweather.inc 1.40:
	Ha, fixed a subtle bug in the store_temp() function. Brant Summerlin
	<brants@kricket.net> discovered a bug in the code that converted the
	Celsius temperature to Fahrenheit.

2000-09-23  Martin Geisler  <gimpster@gimpster.com>

	* demo.php 1.22:
	Explained what all the errors mean, that you'll get from MySQL if you
	don't edit phpweather.inc.

	* wap.php 1.6: Added Aalborg to the list of cities.

	* demo.php 1.21: Added a section about WAP and PHP Weather.

	* wap.php 1.5: Removed a little piece of gimpster-specific code.

	* demo.php 1.20: Ups, forgot the definition-tags (<dt>)!

	* demo.php 1.19: Added a description of the wap.php page.

	* wap.php 1.4: Changed two unknown cities to Antarctica and Congo.

	* phpweather.inc 1.39:
	Removed the 'City: ' text - it is quite obvious that it is the city,
	so there was no need to waste precious space on that.

	* wap.php 1.3:
	Changed the location of the links, so they matches the new location of
	this WAP-page.

	* wap.php 1.2: Added header.

	* wap.php 1.1: New file.

	* phpweather.inc 1.38: Added time to pretty_print_metar_wap().

	* demo.php 1.18: Changed Kbenhavn to Copenhagen.

	* phpweather.inc 1.37:
	Added a pretty_print_metar_wap() function! It is intended to be use
	with WAP (Wireless Application Protocol) phones, so it will only print
	the most important information, in a compact manner.

	* demo.php 1.17: Added Soul, Korea to the list of cities.

2000-09-21  Martin Geisler  <gimpster@gimpster.com>

	* phpweather.inc 1.36:
	Added a commet that explains how to show the time af another
	timezone. Not everybody want to see the time in UTC.

2000-09-12  Martin Geisler  <gimpster@gimpster.com>

	* phpweather.inc 1.35:
	Added support for cumulonimbus (CB) and towering cumulus (TCU)
	clouds. If that information is present, it will be included in the
	pretty-print.

2000-09-11  Martin Geisler  <gimpster@gimpster.com>

	* phpweather.inc 1.34:
	Added comment, that describe what to do if the times are all off. Russ
	McClay <mcclay@taolodge.com.tw> experienced this, so he corrected it
	by added 16 hours to the time stored in the database.

	* phpweather.inc 1.33:
	Jeffrey Y. Sue <jysue@tiki.net> has added support for METARs that
	report the wind-speed in meters/second (MPS) and kilometers/hour
	(KMH). This catches the reports made by Beijing, China and Moscow,
	Russia.

2000-09-10  Martin Geisler  <gimpster@gimpster.com>

	* demo.php 1.16:
	Used the $version and $last_modified variables to write the version on
	the page.

	* phpweather.inc 1.32:
	Added two variables: $version and $last_modified. They will be filled
	out by RCS, and contains the version number and last modification
	time. This makes it easy for me to show the current version in my
	pages.

	* phpweather.inc 1.31:
	Added patch from Gogo "the Great" "Bongo,,,,"" <great@great.sk> with
	support for PostgreSQL. You can now choose between using MySQL,
	PostgreSQL or DBM for your database.

	* demo.php 1.15:
	Typo in PostgreSQL: its spelled PostgreSQL and not PostgresSQL :-)

	* demo.php 1.14:
	Added create-information for a PostgresSQL database. Support for
	PostgresSQL was added by Gogo "the Great" "Bongo,,,,""
	<great@great.sk> (that was the name in the email :-)

	* phpweather.inc 1.30:
	Pointed out to people that they should not use the line that says:
	  include("$DOCUMENT_ROOT/include/db_connect.inc");
	Instead they should use the code above the line to connect to the
	database.

2000-09-09  Martin Geisler  <gimpster@gimpster.com>

	* phpweather.inc 1.29:
	Some bug-fixes by Jeffrey Y. Sue <jysue@tiki.net>. This corrects an
	exotic error that occurs when the METAR from Thule, Greenland is
	parsed.
	After I added the drop-down list to my page, some minor bugs will
	start to show, simply because PHP Weather is tested against a larger
	sample of METARs. Most of these bugs will probably be minor.

2000-09-08  Martin Geisler  <gimpster@gimpster.com>

	* phpweather.inc 1.28:
	Made sure that the temperature is formatted without leading
	zeros. Also removed a echo statement I had been using for debugging.

	* demo.php 1.13:
	Expanded the Download-section a lot. It now lists the files included
	in the tarball, and gives a short description of them.

	* demo.php 1.12:
	Made the links point to the full URL of the phpweather.tar.gz-file
	Also added a drop-down list of cities to choose from. This gives the
	page a nice interactive feel.

	* phpweather.inc 1.27:
	Included my own db_connect.inc file to simplify the way I use PHP
	Weather.

	* phpweather.inc 1.26:
	Some more changed by Jeffrey Y. Sue <jysue@tiki.net>. If the METAR
	contains a part that looks like this: 9999, it means that the
	visibility was greather than 9.5 kilometers (5.9 miles).

	* phpweather.inc 1.25: Added a version-number-variable

2000-09-07  Martin Geisler  <gimpster@gimpster.com>

	* demo.php 1.11: Cosmetics...

	* phpweather.inc 1.24:
	Fix for some broken reports that miss the time-part. If it's not
	present we add the current time to the metar. It might not be the time
	the report was made, but the report was broken anyway :-)

2000-09-06  Martin Geisler  <gimpster@gimpster.com>

	* phpweather.inc 1.23:
	Jeffrey Y. Sue <jysue@tiki.net> has yet again added something to PHP
	Weather. If the current weather-conditions are reported, then that
	will show up in the pretty_print_metar() function. Also, if the
	station reports that there was a "trace" of precipitation, it will be
	part of the output.

	* phpweather.inc 1.22:
	Replaced array_shift() with function-call present in
	php3. There was no reason why people still using php4 shouldn't be
	able to use PHP Weather. array_shift() was only used because it did
	what I needed in a compact way, but it was easily rewritten.

2000-09-05  Martin Geisler  <gimpster@gimpster.com>

	* demo.php 1.10:
	Explained that you could use a DBM database instead of a MySQL. To do
	this you have to give the user running the webserver write-permission
	to the directory containing phpweather.inc

	* phpweather.inc 1.21:
	Several great changes made by Jeffrey Y. Sue <jysue@tiki.net>:
	1) PHP Weather can now also use DBM databases. Just set the variable
	   $useDBM to 1, and $useMySQL to 0. You can also disable the use of a
	   database by setting both variables to 0.
	2) The pretty_print_metar() functions has been improved. It now also
	   includes information about gusts. Some stations report the
	   temperature with a tenth of degrees accuracy so this is also
	   reported if present. Also, if data on precipitation (rain and snow)
	   is available, it will be included in the pretty-print.

2000-09-04  Martin Geisler  <gimpster@gimpster.com>

	* phpweather.inc 1.20:
	Rutger Lubbers <rutger@notenbomer.nl> saw that I had duplicated
	South/Southeast in the directions-array. Silly me :-)

	* phpweather.inc 1.19:
	There is now a comment that tells you how to suppress the warnings,
	suggested by Jeffrey Y. Sue <jysue@tiki.net>

2000-09-03  Martin Geisler  <gimpster@gimpster.com>

	* demo.php 1.9: Ups - somehow an extra ) had slipped in.

2000-08-26  Martin Geisler  <gimpster@gimpster.com>

	* demo.php 1.8:
	Indented the METARs and showed both of them (both the one from
	Aalborg, Denmark and the one from Honolulu, Hawaii)

	* phpweather.inc 1.18:
	Small change in the parsing of the cloud-layers. This should eliminate
	the 'The sky was clear at a height of 0 meters (0 feet)'-message that
	appeared from time to time.
	Also fixed the visibility, so that it won't be confused when strange
	numbers appear in the middle of the METAR.

2000-08-19  Martin Geisler  <gimpster@gimpster.com>

	* phpweather.inc 1.17:
	Highlited the relative humidity by making it bold in the
	pretty_print_metar() function. If you don't like the bold numbers,
	just do a search-replace for <b> and </b>.

	* phpweather.inc 1.16:
	PHP Weather now deals correctly with METAR-reports that span several
	lines. It uses the first line as a timestamp, and the rest as the
	metar.
	It now also handles the visibility information correctly. An
	observation like this: 'M1 1/4SM' will now be parsed as <1.25 miles.
	You can now get the relative humidity from PHP Weather. It is
	calculated by using the temperature and dewpoint, and is available af
	$decoded_metar['rel_humidity']

2000-08-18  Martin Geisler  <gimpster@gimpster.com>

	* phpweather.inc 1.15:
	Fixed a bug that removed the current weather conditions if they
	consisted of only 4 letters, eg. SHRA. When this part was parsed, it
	was recognized as the station-identifier, because that also consists
	of 4 letters.
	Also added support for the VC Proximity Qualifier when describing the
	current weather conditions.

	* demo.php 1.7: Wrote a bit about the pretty_print_metar() function.

	* demo.php 1.6:
	I now use the function pretty_print_metar, which wraps the
	weather-info into a nice little piece of text.

	* phpweather.inc 1.14:
	Added the pretty_print_metar($metar, $location) function.
	This functions prints the weather-information in $metar in a couple of
	nice sentences. You should specify $location like this: 'Aalborg,
	Denmark'.

	* phpweather.inc 1.13:
	Ahh, now I understand what the difference between the A and Q-forms of
	the pressure are. The A-form is measured in inHg, and the Q-form is
	measured in hPa. The script now takes this into account.

	* phpweather.inc 1.12:
	Ups, the pressure is measured in inHg in the METAR. I though it was
	measured in hPa, so all the numbers were wrong.

2000-08-14  Martin Geisler  <gimpster@gimpster.com>

	* phpweather.inc 1.11:
	Removed the rnd() function. I now use number_format to round the
	numbers, since it's a built-in function.
	Thanks to Stefan Wiesendanger <stefan.wiesendanger@epfl.ch>, I now
	store all the strings in a couple of arrays. This means that it will
	be easy to translate PHP Weather into different languages. But it also
	means that the large switch-statements has been removed. This speeds
	up the parsing significantly.

	* demo.php 1.5:
	Now shows the visibility (if there is one) in the examples.
	We also calculate how many minutes ago the report was fetched.

2000-08-10  Martin Geisler  <gimpster@gimpster.com>

	* demo.php 1.4: Ups, broken link!

	* demo.php 1.3:
	Made a link to a page where you'll be able to find the ICAO Location
	Idicator for a station of your choice.

2000-08-09  Martin Geisler  <gimpster@gimpster.com>

	* demo.php 1.2:
	Ups, typo in the example! Thanks to Guus Beltman <guus@websight.nl>
	for spotting that one.

	* phpweather.inc 1.10: Changed a comment into English.

	* demo.php 1.1: New file.

	* phpweather.inc 1.9: Fixed typo.

	* phpweather.inc 1.8:
	Thanks to Enrico Lodolo <e.lodolo@bo.nettuno.it> I now use http
	instead of ftp when fetching the new metar. Http is much faster that
	ftp.

2000-08-06  Martin Geisler  <gimpster@gimpster.com>

	* phpweather.inc 1.7: Added copyright

	* phpweather.inc 1.6:
	Now we can figure out what timezone we're in. This important so that
	we know when to get a new metar.

2000-08-05  Martin Geisler  <gimpster@gimpster.com>

	* phpweather.inc 1.5:
	Suggested to the user that me makes a database to hold the metars.

	* phpweather.inc 1.4:
	Added the rnd() function. This is used to round a number to a number
	of decimal-places.

	* phpweather.inc 1.3: Added a RCS header

	* phpweather.inc 1.2: Stuff

	* phpweather.inc 1.1: New file.

