openweather plugin for Craft CMS 3.x
providing weather data from openweathermap data for craft 3, (*1)
, (*2)
Requirements
This plugin requires Craft CMS 3.0.0-RC2 or later., (*3)
Installation
To install the plugin, follow these instructions., (*4)
-
Open your terminal and go to your Craft project:, (*5)
cd /path/to/project
-
Then tell Composer to load the plugin:, (*6)
composer require vardump-de/craft-openweather
-
In the Control Panel, go to Settings → Plugins and click the “Install” button for openweather., (*7)
Configuring openweather
Insert your openweathermap apik key in the plugins setting page., (*8)
Using openweather
{% set weather = craft.openweather.findById(12345, {'units': 'metric'}) %}
openweather Roadmap
Some things to do, and ideas for potential features:, (*9)
- add forecast
- configurable cache time
- add logo
- add some translations
- add js query