Anax weather forecast module.
The Weather Forecast module allows you to request both forecasts and historical weather data from the past month.
- Install as Anax module
- Install using scaffold postprocessing file
- Install and setup Anax
You can also read this documentation online.
This is how you install the module into an existing Anax installation.
Install using composer.
composer require daib17/forecast
Copy the needed configuration and setup the forecast as a route handler for the route
rsync -av vendor/daib17/forecast/config ./ rsync -av vendor/daib17/forecast/src ./ rsync -av vendor/daib17/forecast/test ./ rsync -av vendor/daib17/forecast/view ./
The module is now active on the route
forecast/. You may try it out on the route
json/forecast to get results in JSON format.
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 weather anax-site-develop $ cd weather
Point your webserver to
weather/htdocs and Anax should display a Home-page.
This is a Anax modulen and primarly intended to be used together with the Anax framework.
This software carries a MIT license. See LICENSE.txt for details.
Copyright (c) 2018 Daniel Ibanez