Skip to main content

天气查询,支持绑定城市、今日天气、五日天气

Project description

ErisPulse-Weather

这是一个基于ErisPulse开发的天气查询插件,支持今日查询、五日查询、城市绑定等多种功能。
目前城市绑定管理的数据记录在ErisPulse的EnvManager的SQLite数据库中,您可以使用env.get("Weather:{用户ID}", "默认值")来获取绑定数据

使用

pip install ErisPulse-Weather

安装完成后,可以使用/天气天气指令来调用本模块。

指令

每条指令都需要以/天气天气为消息前缀,如/天气 今日 桂林

名称 作用
/天气 今日 [城市名称] 获取今日该城市的天气
/天气 五日 [城市名称] 获取将来五天该城市的天气
/天气 绑定 <城市名称> 绑定城市,如果绑定则前二指令可以不传城市名称,如需更改请直接再次调用
/天气 解绑 解绑当前绑定的城市
/天气 查绑 查询当前绑定的城市
实际上,指令与参数间的空格并不是必须的。您可以省略该空格,但我们推荐使用带空格调用的方式。

功能

目前支持以下功能:

  • 今日天气查询
  • 五日天气查询
  • 城市绑定管理 接下来可能会支持的功能:
  • 自定义平台获取
  • 配置哪些内容不展示
  • 使用MarkDown发送消息内容 如果您有任何建议或想法,欢迎提交issues和pr给我们的仓库。

有关Markdown的一些信息
1.仅可用于支持Markdown消息的平台,如果不支持则直接发送文本
2.什么是Markdown?点我了解

参考链接

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

erispulse_weather-1.0.1.tar.gz (5.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

erispulse_weather-1.0.1-py3-none-any.whl (5.8 kB view details)

Uploaded Python 3

File details

Details for the file erispulse_weather-1.0.1.tar.gz.

File metadata

  • Download URL: erispulse_weather-1.0.1.tar.gz
  • Upload date:
  • Size: 5.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-requests/2.32.4

File hashes

Hashes for erispulse_weather-1.0.1.tar.gz
Algorithm Hash digest
SHA256 35d7f11f84df69f7a2abe694f9eb4a59845887f62d272e9ad2aa9ebc8ed5b408
MD5 6f353fddae4dc2e8e5ae31652a59c34e
BLAKE2b-256 23dd04fb96a772d15736fb36eb35691284f815c51f4e236394ad8e11885c9d64

See more details on using hashes here.

File details

Details for the file erispulse_weather-1.0.1-py3-none-any.whl.

File metadata

File hashes

Hashes for erispulse_weather-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 43b16e2581d4c2a30a25eea4adb97c09b202e5d015e3af74c0f27d0dc2ef5e65
MD5 21d15487fe4d4d864104b53fb99ea9c2
BLAKE2b-256 942650dbc321f8da180b872bf9bc35c9cffe2a352e875cdbd7923ab21188cb5f

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page