kris3xiq/weatherservice

Anax weather module.

v2.0.1 2020-12-24 03:00 UTC

This package is auto-updated.

Last update: 2024-03-25 03:29:57 UTC


README

Badges

Travis:
Build Status
Scrutinizer:
Scrutinizer Code Quality
Build Status
Code Intelligence Status

Installation

Step 1

Install using composer:
composer require kris3xiq/weatherservice

Step 2

Be in the root of your ANAX installation and run:
bash vendor/kris3xiq/weatherservice/install.bash

Step 3

Add your own API-keys to IPStack and OpenWeatherMap. If you open up your config directory you will notice the file api-keys-example. Follow the instructions given in the file.

Step 4

All you need to do now is to add the module to your ANAX navbar. Go into config/navbar/header.php Add the following lines into the menu-item array.

[
    "text" => "Weather service",
    "url" => "weather",
    "title" => "Weather service",
    "submenu" => [
        "items" => [
            [
                "text" => "Weather service",
                "url" => "weather",
                "title" => "IP-Geolocator.",
            ],
            [
                "text" => "Weather service API(JSON)",
                "url" => "weather-api",
                "title" => "Weather service API(JSON).",
            ],
        ],
    ],
],