evilbengt / weather
Module for weather related stuff.
Requires (Dev)
- anax/commons: ^2.0
- phpunit/phpunit: ^7
- psr/container: ^1.0
This package is auto-updated.
Last update: 2020-09-22 20:45:36 UTC
README
Module for weather services.
Installation
-
Copy folders
/src
,/config
,/view
to the anax installation. If installed with composer, these files can be found in[ANAX_INSTALL_PATH]/vendor/evilbengt/weather/
. If you have rsync installed, you may run the following commands from your anax install path to do this automatically:rsync -av vendor/evilbengt/weather/src/ src/
rsync -av vendor/evilbengt/weather/config/ config/
rsync -av vendor/evilbengt/weather/view/ view/
-
A sample config-file can be found in
[ANAX_INSTALL_PATH]/config/weather
. Renameconfig_sample.txt
toconfig.php
and replace anyAPI_KEY_GOES_HERE
with your corresponding key. -
The module's services is now accessible on
/weather
and/weather/api
. See/weather/api/doc
for documentation on how to use the API. -
To add the services to the navbar, you may use the sample-file
[ANAX_INSTALL_PATH]/config/navbar/weather-navbar-sample.txt
.