lioo19 / weathermodule
Module for weather, anax
Requires
- php: >7.2
- anax/anax-cli: ^1.2
- anax/anax-ramverk1-me: ^1.0.0
- anax/commons: ^2.0.0@alpha
- anax/configure: ^2.0.0@alpha
- anax/controller: ^2.0.0@alpha
- anax/di: ^2.0.0@alpha
- anax/page: ^2.0.0@beta
- anax/request: ^2.0.0@beta
- anax/response: ^2.0.0@beta
- anax/session: ^2.0
- anax/url: ^2.0.0@alpha
- anax/view: ^2.0.0@beta
Requires (Dev)
- anax/anax: ^2.0.17
- phpmetrics/phpmetrics: ^2
- phpunit/phpunit: ^7
README
About module
This module is part of a school project at Blekinge Institute of Technology, fall 2020. The module works with Anax (framework) to get weather for your specific area, depending on coordinates or ip.
Installation
To install this module, use composer
composer require lioo19/weathermodule
To setup, copy the necessary files and config
rsync -av vendor/lioo19/weathermodule/config/ config/
rsync -av vendor/lioo19/weathermodule/src/ src/
rsync -av vendor/lioo19/weathermodule/test/ test/
rsync -av vendor/lioo19/weathermodule/view/ view/
Finally, to get it all working, modify the config/apikeyssample.php
with valid apikeys and rename it to apikeys.php
The Modules Ip and Weather are now available and can be accessed through /weather
or ip
.
If you would like to add them to the navigation, please do so in the config/navbar
catalogue.
Don't forget to run make install
.
Dependency
This is an Anax module 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 testing and development.