PHPackages                             hestec/silverstripe-openweathermap - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. hestec/silverstripe-openweathermap

ActiveSilverstripe-vendormodule

hestec/silverstripe-openweathermap
==================================

Adds a simple 1 to 5 day weather forecast to your SilverStripe website

035PHP

Since Oct 2Pushed 7y ago1 watchersCompare

[ Source](https://github.com/brasileric/silverstripe-openweathermap)[ Packagist](https://packagist.org/packages/hestec/silverstripe-openweathermap)[ RSS](/packages/hestec-silverstripe-openweathermap/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

SilverStripe OpenWeatherMap
===========================

[](#silverstripe-openweathermap)

Adds a simple 1 to 5 day weather forecast to your SilverStripe website with data from the free version of OpenWeatherMap (). This free version gives only a 5 day/3 hours forecast, but this module turns the collected date into a 1 to 5 day full day forecast. At the moment it's just a simple forecast with a weather icon and the minimum and maximum temperature.

### Requirements

[](#requirements)

- SilverStripe 4
- cmfcmf/openweathermap-php-api

### Version

[](#version)

Using Semantic Versioning.

### Installation

[](#installation)

Install via Composer:

composer require "hestec/silverstripe-openweathermap": "1.\*"

### Configuration

[](#configuration)

Signup for a (free) account at  and get your API key.

Add the OpenWeatherMap API key to your yaml file:

```
Hestec\OpenWeatherMap\OpenWeatherMapExtension:
  ApiKey: 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxx'

```

do a dev/build and flush.

### Working

[](#working)

The forecast data of the free version of OpenWeatherMap (maximum 5 days) will be stored in the table OpenWeatherMapData and is updated just once in 3 hours when someone visits the website. This method reduces the number of api calls and will show the weather even if the OpenWeatherMap service is not available for a while.

### Usage

[](#usage)

Include OpenWeatherMap in your Page:

```

```

This gives a 5 day weather forecast of the city Rio de Janeiro. I guess you want the forecast(s) of other cities. For that copy the template \\silverstripe-openweathermap\\templates\\Includes\\OpenWeatherMap.ss to your templates\\Includes folder in your theme and changes the parameters of the loop call:

```

```

Where the number is the days of forecasts (maximum 5) en the code is the city code used on OpenWeathetMap. Get the code of your city on : search the name of the city and find the code in the url.

Or simply put this loop in your page(s):

```

       $CityName, $CityCountry $Date:
           Minimum temperatuur: $TemperatureMin
           Maximum temperatuur: $TemperatureMax

```

If you want to use your own icons instead of the standard OpenWeatherMap icons, use just $Icon and the path to your icons. For example:

```

       $CityName, $CityCountry $Date:
           Minimum temperatuur: $TemperatureMin
           Maximum temperatuur: $TemperatureMax

```

Find a list of the necessary icons here:

### Issues

[](#issues)

No known issues.

### Todo

[](#todo)

- Make an elemental extension.
- Tests.
- More forecast types (3 hours forecast, more details).

###  Health Score

20

—

LowBetter than 14% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity39

Early-stage or recently created project

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

### Community

Maintainers

![](https://www.gravatar.com/avatar/41c11c1b405ce1712772a28f519691499b940e3b1098a1646bfa3c3fa6c714d4?d=identicon)[hestec](/maintainers/hestec)

---

Top Contributors

[![brasileric](https://avatars.githubusercontent.com/u/6453793?v=4)](https://github.com/brasileric "brasileric (16 commits)")

### Embed Badge

![Health badge](/badges/hestec-silverstripe-openweathermap/health.svg)

```
[![Health](https://phpackages.com/badges/hestec-silverstripe-openweathermap/health.svg)](https://phpackages.com/packages/hestec-silverstripe-openweathermap)
```

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
