osln/weather

显示天气的模块

V1.1.1 2019-12-19 18:41 UTC

This package is auto-updated.

Last update: 2024-09-20 06:14:33 UTC


README

Build Status

Scrutinizer Code Quality

Code Coverage

Build Status

anax框架的天气模块

composer require osln/weather

通过运行后处理脚本来安装此模块

bash /vendor/osln/weather/.anax/scaffold/postprocces.d/350_weather.bash

手动安装

站在anax框架的根目录下。

1:复制配置文件

rsync -av vendor/osln/weather/config/di ./config/di

rsync -av vendor/osln/weather/config/router ./config/router

2:复制视图文件

rsync -av vendor/osln/weather/view/ view/osln/weather

3:安装leaflet

cd $PWD/vendor/osln/weather/ | npm install

4:复制leaflet的CSS文件和图像

rsync -av vendor/osln/weather/node_modules/leaflet/dist/leaflet.css htdocs/css/

rsync -av vendor/osln/weather/node_modules/leaflet/dist/images/ htdocs/css/images/