elpr/anax-weather-module

v2.0.0 2019-12-12 13:23 UTC

This package is auto-updated.

Last update: 2024-04-12 22:57:22 UTC


README

Build Status Scrutinizer Code Quality Code Coverage Build Status Code Intelligence Status CircleCI Maintainability

Table of content

Install as Anax module

This is how you install the module into an existing Anax installation.

Install using composer.

composer require elpr/anax-weather-module

Install using scaffold postprocessing file

The module supports a postprocessing installation script, to be used with Anax scaffolding. The script executes the default installation.

bash vendor/elpr/anax-weather-module/.anax/scaffold/postprocess.d/300_weather.bash

The postprocessing script should be run after the composer require is done.

Manual installation

Copy the needed configuration and setup the anax-weather-module as a route handler for the route weather.

rsync -av vendor/elpr/anax-weather-module/config ./
rsync -av vendor/elpr/anax-weather-module/src ./
rsync -av vendor/elpr/anax-weather-module/view ./
rsync -av vendor/elpr/anax-weather-module/test ./
rsync -av vendor/elpr/anax-weather-module/weather ./htdocs/img/

The anax-weather-module is now active on the route weather/. According to the API documentation you may try it out on the route json_weather to get a json response.

API keys

Create a new config/api_keys.php and store your API keys there. You can see example config/api_keys_ex.php.

Dependency

This is a Anax modulen and primarly intended to be used together with the Anax framework.

License

This software carries a MIT license. See LICENSE.txt for details.

 .  
..:  Copyright (c) 2019 Elena Perers