Anax weather module.
- Install as Anax module
- Install using scaffold postprocessing file
- Install and setup Anax
This is how you install the module into an existing Anax installation.
Install using composer.
composer require mahw17/weather
Copy the needed configuration and setup the weather as a route handler for the route
rsync -av vendor/mahw17/weather/config ./
After you retrieved your own set of api keys create a new or update config/apikey_sample.php if you choose to change filename you must also update config/weather with that filename.
Copy the needed views.
rsync -av vendor/mahw17/weather/view ./
rsync -av vendor/mahw17/weather/htdocs ./
Copy the API documentation.
rsync -av vendor/mahw17/weather/content ./
The API documentation is now available through the route
The weather module is now active on the route
weather/ according to the documentation. You may try it out on the route
weather to get the weather forecast for any valid ip-address or coordinates.
The module supports a postprocessing installation script, to be used with Anax scaffolding. The script executes the default installation, as outlined above.
The postprocessing script should be run after the
composer require is done.
You need a Anax installation, before you can use this module. You can create a sample Anax installation, using the scaffolding utility
Scaffold a sample Anax installation
anax-site-develop into the directory
$ anax create anax anax-site-develop $ cd anax
Point your webserver to
anax/htdocs and Anax should display a Home-page.
This is a mahw17 module and primarly intended to be used together with the Anax framework.
This software carries a MIT license. See LICENSE.txt for details.
. ..: Copyright (c) 2017 - 2018 Marcus Holmersson (firstname.lastname@example.org)