abberadhi/weather-module

用于anax的天气模块

v1.0.6 2021-05-09 23:06 UTC

This package is auto-updated.

Last update: 2024-09-23 02:49:21 UTC


README

安装

使用Composer安装

composer require abberadhi/weather-module

配置

移动文件

在根目录下

rsync -av ./vendor/abberadhi/weather-module/config/ ./config/

rsync -av ./vendor/abberadhi/weather-module/src/ ./src/

rsync -av ./vendor/abberadhi/weather-module/view/ ./view/

rsync -av ./vendor/abberadhi/weather-module/view/ ./view/

rsync -av ./vendor/abberadhi/weather-module/test/ ./test/

rsync -av ./vendor/abberadhi/weather-module/htdocs/css ./htdocs

API密钥

  • 复制.weatherapi-example.json并命名为.weatherapi.json,放入您的个人API密钥
  • 复制.api-example.json并命名为.api.json,放入您的个人API密钥。

样式

在您的config/page.php中,在stylesheets下插入此行

"css/weather.css"

测试

运行

sudo make test