Still on Drupal 7? Security support for Drupal 7 ended on 5 January 2025. Please visit our Drupal 7 End of Life resources page to review all of your options.
Please use this version only for testing. There will be no upgrade path from this release to the proper 7.x-1.0 release of the module.
This release needs at least Drupal 7.0 Alpha 4.
Changes:
Port weather 6.x-5.x to Drupal 7.x
Split module into several smaller files. The file weather.module gets loaded and parsed on every page request, so having a small file size speeds up Drupal. The file has been reduced from 67 kB to 21 kB, meaning a decrease of almost 70%. Moreover, the parser is now loaded only when needed instead of unconditionally on every page request, resulting in an overall size reduction from 87 kB to 21 kB, which is about 25% of the original size. This speeds up the weather module by factor 4!
Implement a cache for parsed METAR data, so that the parsing needs to be done only once instead of every time the weather data is displayed.
Rewrite download handler for METAR weather data. If the data is not available, the module retries at increasing time intervals up to one day to download the data. This better supports METAR stations which report their data only a few times a day. Moreover, if an ICAO code is no longer valid, the module tries to download only once a day. In both cases, the previous download interval had been 10 minutes.
* overhauled the API to instantiate class extenders. That way we won't run into troubles with late static binding of PHP <5.3, can properly implement the interface in extenders and extenders can make use of per extendable object variables.
However to ease explicit invocation of specific extenders an extender() method has been added to the faces extendable.
Also a test case for easy benchmarking of faces has been added and extending single methods without an interface is possible with functions now.