lioo19/weathermodule

Module for weather, anax

v2.0.3 2020-12-02 13:08 UTC

This package is auto-updated.

Last update: 2024-04-04 20:28:18 UTC


README

Scrutinizer Code Quality Code Coverage Build Status Build Status CircleCI

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.