Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/uPortal-Attic/WeatherPortlet

Java Portlet for viewing weather.
https://github.com/uPortal-Attic/WeatherPortlet

hacktoberfest java portal portlet uportal uportal-start-bundled weather weather-locations weather-portlet

Last synced: 20 days ago
JSON representation

Java Portlet for viewing weather.

Awesome Lists containing this project

README

        

# Apereo Weather Portlet

[![Maven Central](https://maven-badges.herokuapp.com/maven-central/org.jasig.portlet/WeatherPortlet/badge.svg)](https://maven-badges.herokuapp.com/maven-central/org.jasig.portlet/WeatherPortlet)
[![build status](https://github.com/uPortal-Project/WeatherPortlet/workflows/CI/badge.svg?branch=master)](https://github.com/uPortal-Project/WeatherPortlet/actions)

This is a [Sponsored Portlet][] in the uPortal project.

[Link to old documentation](https://wiki.jasig.org/display/PLT/Weather+Portlet)

## Table of Contents
- [Description](#desc)
- [Configuration](#config)
- [Weather Locations](#locations)
- [Yahoo! Weather API Key](#yahoo!)
- [Where to Get Help](#help)
- [Contribution Guidelines](#contrib)
- [License](#license)

## Description

The Apereo Weather Portlet is a fully-functional JSR-286 Java portlet that provides
international weather using either World Weather Online or Yahoo Weather. If permitted,
end users have the ability add and delete multiple locations and standards of measurement
with ease!

The Weather Portlet has been bundled with uPortal since 3.2.0.

## Configuration

### Weather Locations

The default weather service is [Yahoo! Weather](https://developer.yahoo.com/weather/).
Weather locations are most commonly configured by the portal developer/administrator
using portlet preferences. **Currently this method does not require an API key.**

#### Example Weather Locations Configuration:

``` xml

locationCodes
2459115
1118370

locations
New York, NY
Tokyo, Japan(Tokyo)

units
F
C

showEditLink
false

```

You can discover `locationCodes` for your locations by inspecting the URL of the
associated page in Yahoo! Weather. For example, the following URL belongs to the
Yahoo! Weather page for Phoenix, AZ:

-

The location code for Phoenix is 2471390.

### Yahoo! Weather API Key

The Apereo Weather Portlet includes an optional EDIT mode that allows end users to
manage their own weather locations. To use it, you must provide a valid API key
from developer.yahoo.com.

To obtain an API key, you must [Create an App](https://developer.yahoo.com/apps/create)
in the Yahoo! Developer Network portal. Once you create your app, copy the
`Client Secret (Consumer Secret)` that Yahoo! generates.

Paste the `Client Secret` in the space provided within
`src/main/webapp/WEB-INF/context/applicationContext.xml`:

``` xml




```

As with all portlets, you must package and deploy a new build of the Weather Portlet
for this change to take effect.

## Where to Get Help
The mailing list is the best place to go with
questions related to Apereo portlets and uPortal.

Issues should be reported at .
Check if your issue has already been reported. If so, comment that you are also
experiencing the issue and add any detail that could help resolve it. Feel free to
create an issue if it has not been reported. Creating an account is free and can be
initiated at the Login widget in the default dashboard.

## Contribution Guidelines
Apereo requires contributors sign a contributor license agreement (CLA).
We realize this is a hurdle. To learn why we require CLAs, see
"Q5. Why does Apereo require Contributor License Agreements (CLAs)?"
at .

The CLA form(s) can be found along
with the various ways to submit the form.

Contributions will be accepted once the contributor's name appears at
.

See for details.

## License

Copyright 2016 Apereo Foundation, Inc.

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this project except in compliance with the License.
You may obtain a copy of the License at

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

See for additional details.

[Sponsored Portlet]: https://wiki.jasig.org/display/PLT/Jasig+Sponsored+Portlets