bthpan/weather

A weather module.

v1.0.9 2020-12-11 11:38 UTC

This package is auto-updated.

Last update: 2024-11-11 21:57:32 UTC


README

Latest Stable Version Build Status CircleCI

Scrutinizer Code Quality Code Coverage Build Status Codacy Badge

Weather module implements a weather service

Install as an Anax module

There are two steps in the installation procedure, 1) first install the module using composer and then 2) integrate it into you Anax base installation.

Step 1, install using composer

Install the module using composer.

composer require bthpan/weather

Step 2, integrate into your Anax base

You can review the module files in the directory vendor/bthpan/weather/. It consists of the following parts.

You may copy all the module files with the following command.

# Move to dir me/redovisa
rsync -av  vendor/bthpan/weather/config/router/  ./config/router/
# Copy the files for creating the services into $di for ipgeoweather and openweather
rsync -av  vendor/bthpan/weather/test/config/di/ipstack.php  ./config/di/
rsync -av  vendor/bthpan/weather/test/config/di/openweather.php  ./config/di/
# Copy the config files(apikey) for creating the services into $di for ipgeoweather and openweather
rsync -av  vendor/bthpan/weather/test/config/ipstack.php ./config/
rsync -av  vendor/bthpan/weather/test/config/weather.php  ./config/
# Copy the view files
rsync -av  vendor/bthpan/weather/view/ ./view

The weather service is now active on the route weather2/. The weather API is now active on the route weather2Api.

Dependency

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

You can install an instance on anax/anax and run this module inside it, to try it out for test and development.