Drupal is a registered trademark of Dries Buytaert
Protected Pages 3.0.0 Major update available for module protected_pages (3.0.0). Commerce Core 3.3.8 Minor update available for module commerce (3.3.8). Search API HTML Element Filter 1.0.7 Minor update available for module search_api_html_element_filter (1.0.7). Layout Builder Reorder 2.0.1 Minor update available for module layout_builder_reorder (2.0.1). Ban 1.1.0 Minor update available for module ban (1.1.0). Field Formatter Range 2.0.0 Major update available for module field_formatter_range (2.0.0). Field Formatter Range 8.x-1.8 Minor update available for module field_formatter_range (8.x-1.8). Varbase Media Header 9.2.1 Minor update available for module varbase_media_header (9.2.1). Search API Solr 4.3.11 Module search_api_solr updated after 14 months of inactivity (4.3.11). Provus Mega Menu Module provus_mega_menu crossed 1,000 active installs.

This module automatically detects a website visitor's location to display current weather and up to a 7-day forecast fetched from OpenWeatherMap.org. You can also manually set a specific location by latitude and longitude and choose between Celsius or Fahrenheit for display.

SmartWeather is a smart module which provides current weather details and forecast upto 7 days. Display of forecast is optional.
The module is smart enough to detect website visitor location and get the weather details from OpenWeatherMap.org.

Features

  1. Get current weather details on the basis of website visitor location.
  2. Display weather forecast upto 7 days. This is optional.
  3. Display weather on basis of fixed latitude and longitude of area/location of your choice, incase you do not want the module to detect visitor location.
  4. Display weather in Celsius or Fahrenheit.
  5. Includes relevant CSS classes and id's to customize the design per your website.

How it works

  • The module basically automatically detects the visitor IP address and get the location details. On the basis of location detected the module then gets the weather details from OpenWeatherMap.org.
  • You can also configure the module to get data for specific location by specifying the latitude and longitude through SmartWeather settings form in case you do not want the module to display website visitor specific weather details.
  • The location details are fetched from GeoPlugin.com, which offers 120 requests per minute for free. If your website visitors are close to 120 request per minute then you can choose to opt for geoplugin.com premium plan. Please refer to FAQ- https://www.geoplugin.com/faq
  • GeoPlugin.com includes GeoLite data created by MaxMind, available from http://www.maxmind.com.
  • Weather data is fetched from https://openweathermap.org/ with a limitation of 60 calls/minute and a total of 1,000,000 calls/month. If your website visitors are more than the above mentioned limit then you may need to buy a premium subscription.
    Please refer to pricing at- https://openweathermap.org/price
  • The weather data is cached in Drupal for specific time so that the module does not hit the GeoPlugin API and OpenWeatherMap API at every request.



REQUIREMENTS
OpenWeatherMap.org- need to create a free API key by registering at OpenWeatherMap.org.

CONFIGURATION
Configure the SmartWeather at (/admin/config/smartweather/settings).

MAINTAINERS
Current maintainer:
Gaurav Kumar - https://www.drupal.org/u/gauravkumar

Activity

Total releases
2
First release
May 2025
Latest release
1 year ago
Releases (12 mo)
0 ▼ from 2
Maintenance
Dormant

Releases

Version Type Release date
8.x-1.4 Stable May 31, 2025
8.x-1.3 Stable May 24, 2025