2017 © Pedro Peláez
 

typo3-cms-extension openweathermap-php-api-service

image

rauchf/openweathermap-php-api-service

  • Wednesday, March 16, 2016
  • by helhum
  • Repository
  • 1 Watchers
  • 0 Stars
  • 3 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 1 Open issues
  • 5 Versions
  • 0 % Grown

The README.md

OpenWeatherMap-PHP-Api-Service (EXT:openweathermap_php_api_service)

This extension provides a wrapper for the library OpenWeatherMap-PHP-Api (GitHub)., (*1)

It allows developers to use the library in their TYPO3 extension without much hassle., (*2)

The library uses the TYPO3 caching framework and TYPO3’s own methods to fetch URLs., (*3)

Requirements

This extension does not have any major requirements, (*4)

  • PHP 5.3-5.6
  • TYPO3 CMS 6.2 (It is known to run with version 7.5, but this is unsupported)
  • TYPO3 should obviously be able to access the internet

Installation

Just install the extension from the TER or manually., (*5)

Configuration

Some basic configuration needs to be done:, (*6)

  • You need an AppID / API Key from openweathermap.org. Enter this AppID in the extension configuration inside the extension manager.
  • Optionally change the cache lifetime in the extension configuration.

Usage

Get an instance of the service and the actual API class:, (*7)

    /** @var \RauchF\OpenweathermapPhpApiService\Service\OpenweathermapPhpApiService $owmService */
    $owmService = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstanceService('openweathermap_php_api');
    $owmApi = $owmService->getOpenweathermapPhpApi();

Now you can use any API method:, (*8)

    $weatherData = $owmApi->getRawWeatherData(
        $query,
        'metric',
        'en',
        $owmService->getApiKey(),
        'json'
    );

Issues / Contributing

Please report any bugs and issues you may encounter on GitHub., (*9)

Licenses

The source code and usage are covered under the following licenses:, (*10)

OpenWeatherMap-PHP-Api-Service for TYPO3

(c) 2015 Felix Rauch, (*11)

This product is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3 of the License, or (at your option) any later version., (*12)

The GNU General Public License can be found at http://www.gnu.org/copyleft/gpl.html., (*13)

OpenWeatherMap-PHP-Api

Copyright (c) 2013 Christian Flach, (*14)

MIT — Please see the LICENSE file distributed with the source code for further information regarding copyright and licensing., (*15)

OpenWeatherMap

Please check out the following links to read about the usage policies and the license of OpenWeatherMap before using the service. - http://www.OpenWeatherMap.org - http://www.OpenWeatherMap.org/terms - http://www.OpenWeatherMap.org/appid, (*16)

The Versions

16/03 2016

dev-develop

dev-develop

  Sources   Download

typo3 cms

16/12 2015

dev-master

9999999-dev

  Sources   Download

typo3 cms

16/12 2015

1.0.0

1.0.0.0

  Sources   Download

typo3 cms

23/10 2015

0.0.2

0.0.2.0

  Sources   Download

typo3 cms

22/10 2015

0.0.1

0.0.1.0

  Sources   Download

typo3 cms