LiveWeatherPlugin
该插件用于从 OpenWeatherMap 获取实时天气。
备注
要想 获得平滑的天气过渡和降雨效果,你需要在 extra_cfg.yml 中将 EnableWeatherFx 设为 true。
要获取 API 密钥,你需要先在 https://openweathermap.org/ 注册一个免费账户。
配置
在 extra_cfg.yml 中启用该插件
extra_cfg.yml
EnablePlugins:
- LiveWeatherPlugin
参考配置
plugin_live_weather_cfg.yml
# OpenWeatherMap API key
OpenWeatherMapApiKey:
# How often the weather is updated
UpdateIntervalMinutes: 10