Archive for the ‘PHP’ Category.

Added humidity-support to PHP Weather

PHP Weather PHP Weather will now calculate the relative humidity for you. It does this by using the temperature, and dew-point.

This also means thay you ought to be using at least version 1.17. I know the version-number has been incrementing pretty fast lately, but as you already know this is open source software, so user requests will be implemented as soon as I get the time.

And don’t worry, your old scripts will still works with this release, so there’s really no excuse for not upgrading :-)

PHP Weather has now reached v. 1.14

I’ve just updated PHP Weather again. There was a bug in the code that parsed the air-pressure. I now know that the pressure can be written both as A2991 and as Q1013. The first form is 29.91 inHg and the second is 1013 hPa.

I thought that the pressure was always measured in hPa, so all the altimeter_* numbers were wrong if the pressure was reported in inHg. PHP Weather now deals correctly with both forms.

PHP Weather has been updated

PHP Weather The version-number in you copy of PHP Weather should now say 1.11. You can find this number in the top of phpweather.inc.

This time Stefan Wiesendanger has speeded up the parsing by replacing the large switch- and case-statements with a couple of arrays. This also makes it easy to translate PHP Weather into other languages. If you do so, then please mail me, so that I can organize the translations.

New and improved version of PHP Weather

PHP Weather The speed of which PHP Weather fetched the METARs was quite poor. But then Enrico Lodolo suggested that I used HTTP instead of FTP to connect to the server.

So, go get the new version. You could also try my page, which should load significantly faster now.

Updated the PHP Tutorial

Click to see my PHP tutorial

I’ve just updated my tutorial on PHP. I tried to explain some parts better, and made a proper ending.