weather_sunDisplay weather information for a specific location
TypeXAR
Developed by

Victor Rachieru

Rating
Rate!
1 Votes
LicenseGNU Lesser General Public License 2.1
Installable with the Extension Manager

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:

NameMandatoryDescription
displayernoDefines 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'.
locationyesThe GPS coordinates for the desired location. The following format needs to be obeyed 'latitude,longitude'
unitsnoMetric or imperial. The possible values are 'c' and 'f'

Examples

Panel

{{weather displayer="panel" location="47.15984,27.589302" /}}
panel-less.jpgpanel-more.jpgClicking 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" /}}

page-less.jpg

Clicking on the 'hourly forecast' section, the user can toggle information about what the weather will be like in the next hours.
page-more.jpg

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

Tested on

This extension has been tested with the following configurations.

Extension VersionXWiki FlavorNotes
1.0XWiki Enterprise 6.0.1

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:

  1. Log in the wiki with a user having Administration rights
  2. Go to the Administration page and select the Import category
  3. Follow the on-screen instructions to upload the downloaded XAR
  4. Click on the uploaded XAR and follow the instructions
  5. You'll also need to install all dependent Extensions that are not already installed in your wiki
Tags:
Created by Victor Rachieru on 2013/12/07 09:32
    

Get Connected