olbe19/weather

Anax weather module.

v1.0.2 2020-12-08 15:06 UTC

This package is auto-updated.

Last update: 2024-04-08 22:28:00 UTC


README

Latest Stable Version Total Downloads License

Travis

Build Status

Circle CI

CircleCI

Scrutinizer

Build Status Scrutinizer Code Quality Code Coverage

Code climate

Maintainability

Codacy

Codacy Badge

Installation

Install by cloning repo or with composer.

git clone https://github.com/ollebergkvist/ramverk1-weather-module

or

composer require olbe19/weather

Setup

Set up the environment and install dependencies

composer install
chmod 777 cache/*
make install
bash vendor/olbe19/weather/.anax/scaffold/postprocess.d/001_olbe19_weather.
composer dump

API keys

Module utilizes 2 public API:s to function, IPStack and Openweathermap.

Add 2 files named "api_key_ip.txt" and "api_key_map.txt" to config/
containing your keys for Ipstack and Openweathermap respectively.

Navbar

Instructions how to mount the module in the navbar.

Add the Weather and API Documentation controllers to the navbar in config/navbar/header.php and config/navbar/responsive.php.

[
    "text" => "Weather",
    "url" => "weather",
    "title" => "Weather",
],
[
    "text" => "API Documentation",
    "url" => "api",
    "title" => "API Documentation",
],

Issues

Kindly open issues here.

https://github.com/ollebergkvist/ramverk1-weather-module/issues