PHPackages                             clearbold/craft-darksky-weather - 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. [Templating &amp; Views](/categories/templating)
4. /
5. clearbold/craft-darksky-weather

ActiveCraft-plugin[Templating &amp; Views](/categories/templating)

clearbold/craft-darksky-weather
===============================

Dark Sky Weather is a Craft plugin to display weather data from the Dark Sky API.

1.0.6(7y ago)12371[1 issues](https://github.com/clearbold/craft-darksky-weather/issues)MITPHP

Since Feb 1Pushed 7y ago1 watchersCompare

[ Source](https://github.com/clearbold/craft-darksky-weather)[ Packagist](https://packagist.org/packages/clearbold/craft-darksky-weather)[ Docs](https://github.com/clearbold/craft-darksky-weather)[ RSS](/packages/clearbold-craft-darksky-weather/feed)WikiDiscussions master Synced today

READMEChangelogDependencies (1)Versions (8)Used By (0)

Dark Sky Weather for Craft 3
============================

[](#dark-sky-weather-for-craft-3)

A Craft plugin to display weather data from the Dark Sky API.

You can set your Dark Sky API key in the plugin's settings via the Control Panel.

**Note** that, per Dark Sky’s [Terms of Service](https://darksky.net/dev/docs/terms#attribution):

“You are required to display the message “Powered by Dark Sky” that links to  somewhere prominent in your app or service.”

You are responsible for any Dark Sky fees per Dark Sky’s Terms of Service.

Usage
-----

[](#usage)

```
{# See https://darksky.net/dev/docs#request-parameters #}
{% set weather = craft.darksky.forecast(entry.latitudeField, entry.longitudeField) %}
{% set weather = craft.darksky.forecast(37.8267, -122.4233) %}
{% set weather = craft.darksky.forecast(44.2741865, -72.6037392, 'en', 'us') %}}
{% set weather = craft.darksky.forecast(44.2741865, -72.6037392) %}

        Latitude
        {{ weather.latitude }}
        Longitude
        {{ weather.longitude }}
        Timezone
        {{ weather.timezone }}

    Currently:

        Time
        {{ weather.currently.time|datetime }}
        Summary
        {{ weather.currently.summary }}
        Icon
        {{ weather.currently.icon }}
        Nearest Storm Distance
        {{ weather.currently.nearestStormDistance }}
        Precipitation Intensity
        {{ (weather.currently.precipIntensity is defined) ? weather.currently.precipIntensity : 'NA' }}
        Precipitation Intensity Error
        {{ (weather.currently.precipIntensityError is defined) ? weather.currently.precipIntensityError : 'NA' }}
        Precipitation Probability
        {{ weather.currently.precipProbability }}
        Precipitation Type
        {{ (weather.currently.precipType is defined) ? weather.currently.precipType : 'NA' }}
        Temperature
        {{ weather.currently.temperature }}
        Apparent Temperature
        {{ weather.currently.apparentTemperature }}
        Dewpoint
        {{ weather.currently.dewPoint }}
        Humidity
        {{ weather.currently.humidity }}
        Pressure
        {{ weather.currently.pressure }}
        Wind Speed
        {{ weather.currently.windSpeed }}
        Wind Gust
        {{ weather.currently.windGust }}
        Wind Bearing
        {{ weather.currently.windBearing }}
        Cloud Cover
        {{ weather.currently.cloudCover }}
        UV Index
        {{ weather.currently.uvIndex }}
        Visibility
        {{ weather.currently.visibility }}
        Ozone
        {{ weather.currently.ozone }}

    Minutely:

        Length
        {{ weather.minutely.data|length }}
        Summary
        {{ weather.minutely.summary }}
        Icon
        {{ weather.minutely.icon }}
{% for minute in weather.minutely.data %}
        Minute
        {{ loop.index0 }}
        Time
        {{ minute.time|datetime }}
        Precipitation Intensity
        {{ (minute.precipIntensity is defined) ? minute.precipIntensity : 'NA' }}
        Precipitation Intensity Error
        {{ (minute.precipIntensityError is defined) ? minute.precipIntensityError : 'NA' }}
        Precipitation Probability
        {{ minute.precipProbability }}
        Precipitation Type
        {{ (minute.precipType is defined) ? minute.precipType : 'NA' }}
{% endfor %}

    Hourly:

        Length
        {{ weather.hourly.data|length }}
        Summary
        {{ weather.hourly.summary }}
        Icon
        {{ weather.hourly.icon }}
{% for hour in weather.hourly.data %}
        Hour
        {{ loop.index0 }}
        Time
        {{ hour.time|datetime }}
        Summary
        {{ hour.summary }}
        Icon
        {{ hour.icon }}
        Precipitation Intensity
        {{ (hour.precipIntensity is defined) ? hour.precipIntensity : 'NA' }}
        Precipitation Intensity Error
        {{ (hour.precipIntensityError is defined) ? hour.precipIntensityError : 'NA' }}
        Precipitation Probability
        {{ hour.precipProbability }}
        Precipitation Type
        {{ (hour.precipType is defined) ? hour.precipType : 'NA' }}
        Temperature
        {{ hour.temperature }}
        Apparent Temperature
        {{ hour.apparentTemperature }}
        Dewpoint
        {{ hour.dewPoint }}
        Humidity
        {{ hour.humidity }}
        Pressure
        {{ hour.pressure }}
        Wind Speed
        {{ hour.windSpeed }}
        Wind Gust
        {{ hour.windGust }}
        Wind Bearing
        {{ hour.windBearing }}
        Cloud Cover
        {{ hour.cloudCover }}
        UV Index
        {{ hour.uvIndex }}
        Visibility
        {{ hour.visibility }}
        Ozone
        {{ hour.ozone }}
{% endfor %}

    Daily:

        Length
        {{ weather.daily.data|length }}
        Summary
        {{ weather.daily.summary }}
        Icon
        {{ weather.daily.icon }}
{% for day in weather.daily.data %}
        Hour
        {{ loop.index0 }}
        Time
        {{ day.time|datetime }}
        Summary
        {{ day.summary }}
        Icon
        {{ day.icon }}
        Sunrise
        {{ day.sunriseTime|datetime }}
        Sunset
        {{ day.sunsetTime|datetime }}
        Moon Phase
        {{ day.moonPhase }}
        Precipitation Intensity
        {{ (day.precipIntensity is defined) ? day.precipIntensity : 'NA' }}
        Precipitation Intensity Max
        {{ (day.precipIntensityMax is defined) ? day.precipIntensityMax : 'NA' }}
        Precipitation Intensity Max Time
        {{ (day.precipIntensityMaxTime is defined) ? day.precipIntensityMaxTime : 'NA' }}
        Precipitation Intensity Error
        {{ (day.precipIntensityError is defined) ? day.precipIntensityError : 'NA' }}
        Precipitation Probability
        {{ day.precipProbability }}
        Precipitation Type
        {{ (day.precipType is defined) ? day.precipType : 'NA' }}

        Temperature High
        {{ day.temperatureHigh }}
        Temperature High Time
        {{ day.temperatureHighTime|datetime }}
        Temperature Low
        {{ day.temperatureLow }}
        Temperature Low Time
        {{ day.temperatureLowTime|datetime }}

        Apparent Temperature High
        {{ day.apparentTemperatureHigh }}
        Apparent Temperature High Time
        {{ day.apparentTemperatureHighTime|datetime }}
        Apparent Temperature Low
        {{ day.apparentTemperatureLow }}
        Apparent Temperature Low Time
        {{ day.apparentTemperatureLowTime|datetime }}

        Dewpoint
        {{ day.dewPoint }}
        Humidity
        {{ day.humidity }}
        Pressure
        {{ day.pressure }}
        Wind Speed
        {{ day.windSpeed }}
        Wind Gust
        {{ day.windGust }}
        Wind Bearing
        {{ day.windBearing }}
        Cloud Cover
        {{ day.cloudCover }}
        UV Index
        {{ day.uvIndex }}
        Visibility
        {{ day.visibility }}
        Ozone
        {{ day.ozone }}

        Temperature Min
        {{ day.temperatureMin }}
        Temperature Min Time
        {{ day.temperatureMinTime|datetime }}
        Temperature Max
        {{ day.temperatureMax }}
        Temperature Max Time
        {{ day.temperatureMaxTime|datetime }}
        Apparent Temperature Min
        {{ day.apparentTemperatureMin }}
        Apparent Temperature Min Time
        {{ day.apparentTemperatureMinTime|datetime }}
        Apparent Temperature Max
        {{ day.apparentTemperatureMax }}
        Apparent Temperature Max Time
        {{ day.apparentTemperatureMaxTime|datetime }}
{% endfor %}

{% if weather.alerts is defined and weather.alerts|length %}
    Alerts

        Length
        {{ weather.alerts|length }}
{% for alert in weather.alerts %}
        Alert
        {{ loop.index0 }}
        {{ alert.title }}
{% for region in alert.regions %}
        Region
        {{ region }}
{% endfor %}
        Severity
        {{ alert.severity }}
        Time
        {{ alert.time|datetime }}
        Expires
        {{ alert.expires }}
        Description
        {{ alert.description }}
        URI
        {{ alert.uri }}
{% endfor %}

{% endif %}
    Flags

{% for source in weather.flags.sources %}
        Source
        {{ source }}
{% endfor %}
        Nearest Station
        {{ attribute(weather.flags, 'nearest-station') }}
        Units
        {{ weather.flags.units }}

    Offset

        Offset
        {{ weather.offset }}

```

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance0

Infrequent updates — may be unmaintained

Popularity14

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity65

Established project with proven stability

 Bus Factor1

Top contributor holds 94.1% 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.

###  Release Activity

Cadence

Every ~3 days

Total

7

Last Release

2639d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/99ef0d2558efaf3a6f7f9a394435dbfea08583f332768fb5f557d3752405b74c?d=identicon)[clearbold](/maintainers/clearbold)

---

Top Contributors

[![heymarkreeves](https://avatars.githubusercontent.com/u/49657?v=4)](https://github.com/heymarkreeves "heymarkreeves (16 commits)")[![elivz](https://avatars.githubusercontent.com/u/62592?v=4)](https://github.com/elivz "elivz (1 commits)")

---

Tags

craft-plugincraftcmstwigcmsskyCraftcraftcmsweatherdarkdarksky

### Embed Badge

![Health badge](/badges/clearbold-craft-darksky-weather/health.svg)

```
[![Health](https://phpackages.com/badges/clearbold-craft-darksky-weather/health.svg)](https://phpackages.com/packages/clearbold-craft-darksky-weather)
```

###  Alternatives

[nystudio107/craft-autocomplete

Provides Twig template IDE autocomplete of Craft CMS &amp; plugin variables

44204.4k13](/packages/nystudio107-craft-autocomplete)[wbrowar/guide

A CMS Guide for Craft CMS.

6154.5k1](/packages/wbrowar-guide)[jalendport/craft-preparse

A fieldtype that parses Twig when an element is saved and saves the result as plain text.

1086.4k](/packages/jalendport-craft-preparse)[viget/craft-classnames

Classnames plugin for Craft CMS

1115.5k1](/packages/viget-craft-classnames)[clearbold/fixmealink

Fix Me a Link is a Craft plugin with link utility functions.

151.4k](/packages/clearbold-fixmealink)[verbb/footnotes

Adds a footnotes feature to CKEditor fields and Twig templates.

213.3k](/packages/verbb-footnotes)

PHPackages © 2026

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