Install

Works with Drupal: 7.x

Using Composer to manage Drupal site dependencies

Downloads

Download tar.gz 489.3 KB
MD5: a893010ee8ea5755311d722121548236
SHA-1: c1f4be124dc439c51ca5a0f7de03941440af9b6d
SHA-256: 016e3099294215c54f0e58555097f4e27fd164aaa16fb030b3457aeb4d273788
Download zip 778.67 KB
MD5: 50619b7e8ca2589693f66cab7e065117
SHA-1: 95dfd871430ed7b9347b350ec14af902981df448
SHA-256: 29b2bb677c134fe72278f9898d1ed7df7bfd2116d898d740295f1ac6c2366775

Release notes

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.
  • AJAX code in location form is fixed. Closes: #416892: AHAH uses old techniques
  • Installation of weather ICAO data is about six times faster.
  • The distance to the next weather station (for location enabled nodes) is now an explicit setting instead of being derived from the visibility setting. Closes: #589222: distance from weather station always displayed in kilometers
  • A new display type has been added. This allows to show the weather nearby a user's location based on their IP address. This uses the data available from hostip.info.
  • Replace file_directory_path() with file_default_scheme(). Thanks to John Voskuilen for the bug report. Closes: #920508: Error: Call to undefined function file_directory_path() in weather module for D7-alpha7.
  • Support a timeout for fetching new weather data. Closes: #967646: only call _weather_retrieve_data($icao) on cron OR new weather station addition
  • Translation updates for:
    • German, thanks to Tobias Quathamer.
    • Norwegian, thanks to Stein Magne.
    • Greek, thanks to Vasileios Lourdas.
    • Czech, thanks to Marek Drápal.
    • Russian, thanks to Alexander Lavrinenko.
    • Croatian, thanks to Mihaela Jurkovic.
    • Slovak, thanks to Peter Slama.
Created by: toddy
Created on: 17 Dec 2010 at 18:25 UTC
Last updated: 11 Nov 2015 at 16:37 UTC
New features
Bug fixes
Unsupported

Other releases