olbe19/weather

Anax 天气模块。

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

This package is auto-updated.

Last update: 2024-09-08 23:16:37 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

安装

通过克隆仓库或使用composer安装。

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

or

composer require olbe19/weather

设置

设置环境和安装依赖项

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

API密钥

模块利用2个公共API来运行,IPStack和Openweathermap。

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

导航栏

如何将模块挂载到导航栏的说明。

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",
],

问题

请在这里提出问题。

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