Our plugin is based on the free OpenWeatherMap API and works with free API key for weather data receiving with limitation for this plan , but you can buy any key for paid plans and use it for your purposes.
PLUGIN FEATURES
- Weather forecast provided by FREE OpenWeatherMap API;
- Conversion measurements and settings for temperature, wind and pressure;s.
- Possibility to use OpenWeatherMap API key for free and paid plans;
- Font-based weather icons.
Our plugin is based on free OpenWeatherMap API(http://openweathermap.org/) and works with free API key for weather data receiving with limitation for this plan , but you can buy any key for paid plans and use it for your purposes.
Installation
- Add BABA.Weather plugin to a project.
- Add the Weather component to a page where you want to display weather.
Page Source
{% component "weatherBox" CityName = "Singapore" Language = "en" Unit = "metric" Forcast = 3 apiKey = "xxxx" cache = 43200 %}
Properties
-
CityName The cities' Names can be found in the following file:http://bulk.openweathermap.org/sample/city.list.json.gz (4M)
-
Language You can use language to get the output in your language. NOTE: Translation is only applied for the "description" field.
-
Unit Standard, metric, and imperial units are available. When you do not use units parameter, format is Standard by default.
Temperature is available in Fahrenheit, Celsius and Kelvin units.
- For temperature in Fahrenheit use units=imperial
- For temperature in Celsius use units=metric
- Temperature in Kelvin is used by default, no need to use units parameter in API call
List of all API parameters with units openweathermap.org/weather-data
-
Forcast Get forecast for the next ? days (free account max 5 days).
-
apiKey your api key.
-
cache default cache time 43200 seconds(12 hours).
Please check out the following official links to read about the terms, pricing and license of OpenWeatherMap before using the service:
-
This plugin has not been reviewed yet.
-
1.0.2 |
fixed "Class \BABA\Weather\Components\WeatherBox does not exist". Aug 11, 2018 |
---|---|
1.0.1 |
Initialize plugin. Jul 14, 2018 |