jespernyhlen/weather-module

Weather module for anax

v1.1.0 2019-12-06 11:01 UTC

This package is auto-updated.

Last update: 2024-04-06 20:40:12 UTC


README

Build Status
Build Status Code Coverage Scrutinizer Code Quality

Anax weather module

This weather module works together with an Anax installation. Webinterface that displays weather forecast for nextcoming days and previous month. REST API for weather forecast working with method GET, returns JSON data.

Install as Anax module

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

Install using composer

composer require jespernyhlen/weather-module

Install using scaffold postprocessing file

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

bash vendor/jespernyhlen/weather-module/.anax/scaffold/postprocess.d/450_weather.bash

Run this script after composer require is done or use the commands below for step by step installation.

Important: Change the key in Config/key_darksky to a valid API key.

Configuration and Service setup

Copy the configuration files and setup the weather-module as a route handler for the route weather/web (webinterface) and weather/weather-api (api endpoint).

rsync -av vendor/jespernyhlen/weather-module/config ./

Important: Change the key in Config/key_darksky to a valid API key.

View files

Copy the view files related to the module and included documentation.

rsync -av vendor/jespernyhlen/weather-module/view ./

Src files

Copy the src files including controllers and models.

rsync -av vendor/jespernyhlen/weather-module/src ./

Extra, Copy the test files

Copy testfiles with included testcases using phpunit.

rsync -av vendor/jespernyhlen/weather-module/test ./

Dependency

This is a Anax module 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 Jesper Nyhlén (jeppe_nyhlen@hotmail.com)