Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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.
Backport intelligent download interval calculation from D7 port. This way, the website will be much more responsive if a request times out or an ICAO code is no longer valid.
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.
Change ICAO code of Bangalore, India from VOBG to VOBL, which is updated more often. Thanks to Raghavan Subramaniyan for the report. Closes: #421326: Add Bangalore (VOBL)