Skip to content
 
 

Repository files navigation

UpdateWeather GitHub Workflow Status

调用和风天气api,为瀚文75扩展模块生成天气图片

python GitHub release (latest SemVer) GitHub all releases

效果预览

图片预览

使用说明

⚠注意:扩展模块需要刷入 xingrz 的扩展固件,才能正常工作

Todolist 咕咕咕

  • 详细的使用说明
  • 支持局部刷新(在想了在想了)
  • 更多 的中文天气矢量图
  • location直接填入城市名称即可
  • 无需填写loccation,自动获取当前位置
  • NEW UI Alt text

macOS上的使用说明

依赖安装

pip install -r requirements.txt

HIDAPI安装

先从hidapiclone源码,然后编译安装

# precondition: create a <build dir> somewhere on the filesystem (preferably outside of the HIDAPI source)
# this is the place where all intermediate/build files are going to be located
cd <build dir>
# configure the build
cmake <HIDAPI source dir>
# build it!
cmake --build .
# install library; by default installs into /usr/local/
cmake --build . --target install
# NOTE: you need to run install command as root, to be able to install into /usr/local/

配置天气接口key和location

参照快速开始

刷新天气

python UpdateWeather.py

设置masOS定时任务

# 创建定时任务
crontab -e
# 添加定时任务,每30分钟执行一次,记得这里改成自己的真实路径
*/30 * * * * cd /path/to/UpdateWeather && /path/to/python /path/to/UpdateWeather/UpdateWeather.py

About

调用和风天气api,为瀚文75扩展模块生成天气图片

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages