kris3xiq/weatherservice

ANAX天气模块。

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

This package is auto-updated.

Last update: 2024-09-25 04:25:56 UTC


README

徽章

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

安装

步骤 1

使用composer安装
composer require kris3xiq/weatherservice

步骤 2

确保你处于ANAX安装的根目录,并运行
bash vendor/kris3xiq/weatherservice/install.bash

步骤 3

将您的API密钥添加到IPStack和OpenWeatherMap。如果您打开配置目录,您会注意到有一个名为api-keys-example的文件。按照文件中的说明操作。

步骤 4

现在您需要做的只是将模块添加到ANAX导航栏。进入config/navbar/header.php,将以下行添加到menu-item数组中。

[
    "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).",
            ],
        ],
    ],
],