Weather Application
| Display weather information for a specific location |
| Type | XAR |
| Category | |
| Developed by | |
| Rating | |
| License | GNU Lesser General Public License 2.1 |
Table of contents
Description
About
Description
Display weather information for a specific location.
Resources
- forecast.io API
- moment.js
- skycons animated icon set
Usage
Overview
The macro does not require any content and supports the following parameters:
| Name | Mandatory | Description |
|---|---|---|
| displayer | no | Defines in which way the content will be displayed, as a panel or as a full page. The possible values are 'panel' and 'page'. By default the parameter is set to 'panel'. |
| location | yes | The GPS coordinates for the desired location. The following format needs to be obeyed 'latitude,longitude' |
| units | no | Metric or imperial. The possible values are 'c' and 'f' |
Examples
Panel
{{weather displayer="panel" location="47.15984,27.589302" /}}![]() | ![]() | Clicking on the 'right now' section, the user can toggle between a more detailed view of the current conditions and the more basic version. |
Page
{{weather displayer="page" location="47.15984,27.589302" /}}
Clicking on the 'hourly forecast' section, the user can toggle information about what the weather will be like in the next hours.
Notice
At the moment, the forecast.io API provides 1000 free requests per account each day, so it would be wise to register your own key at Forecast for Developers.
To change the key used in this extension, just open Weather.Proxy in wiki mode and paste your own in the corresponding variable.
Improvements
- adding translations
- allowing the user to switch between metric and imperial units
- an administration panel from which the location and units can be set
- use a geocoding service to determine the location coordinates from its address
Prerequisites & Installation Instructions
We recommend using the Extension Manager to install this extension (Make sure that the text "Installable with the Extension Manager" is displayed at the top right location on this page to know if this extension can be installed with the Extension Manager). Note that installing Extensions when being offline is currently not supported and you'd need to use some complex manual method.
You can also use the following manual method, which is useful if this extension cannot be installed with the Extension Manager or if you're using an old version of XWiki that doesn't have the Extension Manager:
- Log in the wiki with a user having Administration rights
- Go to the Administration page and select the Import category
- Follow the on-screen instructions to upload the downloaded XAR
- Click on the uploaded XAR and follow the instructions
- You'll also need to install all dependent Extensions that are not already installed in your wiki

