Skip to main content
Drupal is a registered trademark of Dries Buytaert
Release: OpenID Connect / OAuth client 3.0.0-alpha9 New alpha version released for module openid_connect (3.0.0-alpha9). Release: Opensolr Search 4.5.0 Minor update available for module opensolr_search (4.5.0). Release: Timelinr 1.0.1 Minor update available for module timelinr (1.0.1). Usage Milestone: Simplify Module simplify crossed 10,000 active installs. Usage Milestone: Views Reference Filter Module entityreference_filter crossed 10,000 active installs. Usage Milestone: Dropdown Language Module dropdown_language crossed 10,000 active installs. Usage Milestone: Paragraphs Browser Module paragraphs_browser crossed 10,000 active installs. Usage Milestone: OpenAPI Module openapi crossed 10,000 active installs. Usage Milestone: Decoupled Router Module decoupled_router crossed 10,000 active installs. Module Revived: Entityqueue Buttons 1.1.2 Module entityqueue_buttons updated after 8 months of inactivity (1.1.2).

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

Depends on

Dependencies of the latest stable release

No dependencies recorded for this project.

Required by

Tracked projects that depend on this one

No tracked projects depend on this one yet.

Activity

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

Releases

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