使用wttr.in的天气查询 ,支持大部分wttr.in的用法。
Project description
nonebot_plugin_weather_lite
使用wttr.in的天气查询 ,支持大部分wttr.in的用法。nonebot版本必须大于nonebot2.0b1。
使用://github.com/chubin/wttr.in
命令:
注:1.以下天气命令均可以使用wttr、weather、tianqi等效替代,
2.城市名可以使用各种语言,例如Beijing、Peking、北京是等效的。
3.支持查询全球各种地区。例如莫斯科什么的都可以。
4.本项目只是wttr.in在线服务的一个简陋包装。后端代码是人家写的。如果因为各种原因实现不了功能,除了确定是插件的缺陷都不要找我。
基础:
天气 城市名(可选,如不给出机器人会提示获取)
高级一点点:
天气 城市名_format=v2
天气 城市名_format=v3
指定语言:
天气 城市名_lang=语言 语言可选于:
am ar af be bn ca da de el et fr fa hi hu ia id it lt mg nb nl oc pl pt-br ro ru ta tr th uk vi zh-cn zh-tw
例如俄文查询北京:
天气 北京_lang=ru
多格式联动:
wttr.in支持多种格式联动:
使用v2格式、俄文来查询北京:
天气 北京_format=v2_lang=ru
甚至支持看月相:
天气 Moon
更多用法请参考wttr.in的文档!
地址:https://github.com/chubin/wttr.in
缺陷:
1.无法使用%自定义格式。
2.其他暂时应该用不上我也没测试的功能。
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file nonebot_plugin_weather_lite-0.0.1.tar.gz.
File metadata
- Download URL: nonebot_plugin_weather_lite-0.0.1.tar.gz
- Upload date:
- Size: 3.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.7.1 importlib_metadata/4.10.0 pkginfo/1.8.2 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.10.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
90a49e3dcfd4725246ca8b52209a8ed14fe7e674d5486ab052b7f44e398a8708
|
|
| MD5 |
e3bb38fcdbade45e65b59788d80b1af2
|
|
| BLAKE2b-256 |
77b861f544c7021827dac71241afaa5c86dec21358da28ba086dabcccab0776a
|
File details
Details for the file nonebot_plugin_weather_lite-0.0.1-py3-none-any.whl.
File metadata
- Download URL: nonebot_plugin_weather_lite-0.0.1-py3-none-any.whl
- Upload date:
- Size: 3.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.7.1 importlib_metadata/4.10.0 pkginfo/1.8.2 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.10.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
71940def928c625853d5da7cf983319c0c69a16c799e0514c7a5880ce5943953
|
|
| MD5 |
d6d866825bd9f1d7809bf57728fdedbe
|
|
| BLAKE2b-256 |
87396259072d05832033452a989b91d3a148e11cbc390aaaa858b21a595eaa0f
|