asdfx / phergie-irc-plugin-react-apixu-weather
用于返回特定地点天气信息的 Phergie 插件。
1.0.0
2019-02-04 13:21 UTC
Requires
Requires (Dev)
- phpunit/phpunit: ^8.0
This package is auto-updated.
Last update: 2024-09-05 02:21:28 UTC
README
Phergie 插件,用于返回特定地点的天气信息。
关于
此插件提供了一种从 Apixu API 对指定城镇/城市/邮编进行天气查询的方法。
安装
推荐安装方法是 通过 composer。
composer require asdfx/phergie-irc-plugin-react-apixu-weather
有关安装和启用插件的更多信息,请参阅 Phergie 文档 安装和启用插件。
配置
此插件需要 命令插件 来识别命令。
如果您是 Phergie 或 Phergie 插件的新手,请参阅 Phergie 设置说明 获取更多信息。否则,将以下引用添加到您的配置文件中
return [ // ... 'plugins' => [ new \Phergie\Irc\Plugin\React\Command\Plugin, // dependency new \Asdfx\Phergie\Plugin\Weather\Plugin(['apiKey' => 'YOUR API KEY GOES HERE']), ] ]
提供商是 Apixu,使用它需要免费 API 密钥(您可以从 这里 获取一个)。要使用 Apixu,您只需提供 API 密钥。
当前请求限制
- Apixu:每月 10,000 次
许可证
在 MIT 许可证下发布。请参阅 LICENSE。