Skip to content

Commit

Permalink
更新readme,提供详细教程
Browse files Browse the repository at this point in the history
  • Loading branch information
HellSakura committed Sep 26, 2023
1 parent bca6439 commit 2cac97f
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 45 deletions.
50 changes: 5 additions & 45 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,60 +5,20 @@
[![GitHub release (latest SemVer)](https://img.shields.io/github/v/release/hellsakura/UpdateWeather?style=flat-square&logo=github)](https://github.com/HellSakura/UpdateWeather/releases/latest)
[![GitHub all releases](https://img.shields.io/github/downloads/hellsakura/UpdateWeather/total?color=brightgreen&style=flat-square&logo=github)](https://github.com/HellSakura/UpdateWeather/releases/latest)

## 使用说明
* [申请和风天气api](https://dev.qweather.com/docs/configuration/project-and-key/),获取`key``location`,并填入`config.ini`

`location` 即 LocationID 可通过[城市搜索服务](https://dev.qweather.com/docs/api/geoapi/city-lookup/)获取或直接在和风天气提供的[China-City-List](https://github.com/qwd/LocationList/blob/master/China-City-List-latest.csv)中查找
```
[DEFAULT]
key =
location =
```

* 直接从release里下载打包好的exe文件运行(需要放置`hidapi-win.zip`中的文件)

>需要将`hidapi-win.zip`中对应架构的`hidapi.pdb` `hidapi.lib` `hidapi.dll` 放置在相应的目录中。
例如64位系统电脑请使用X64文件夹下的文件,放置于`C:\Windows\System32`



## 效果预览
![图片预览](docs/output.png#pic_center)
<img src="./docs/Actual%20picture.png#pic_center" width = "128" height = "296" />

## 使用说明

## 如何刷入墨水屏(任选其一)

* 直接运行打包好的exe程序并配置好`config.ini`即可

* 使用[xingrz](https://github.com/xingrz/zmk-config_helloword_hw-75)开发的 [zmkx.app](https://zmkx.app/) 上位机驱动刷入

* ~~运行`UpdateWeather.py`,会自动刷入墨水屏~~
* ~~运行`picUpdate.py`~~
>`picUpdate.py``hidapi-win.zip`来自群友`[GNX-Susanoo]`,感谢!
>⚠注意:无论使用哪种方式,扩展模块都需要刷入 xingrz 的[固件](https://github.com/xingrz/zmk-config_helloword_hw-75/tree/master/config/boards/arm/hw75_dynamic),才能正常工作
## Tips
* 如果想实现后台自动刷新,最好在自己系统配置python3.8或以上版本的Python环境,并在win计划任务中添加python程序
### 方法一 (无弹窗)
* 在计划任务中添加python程序,将`UpdateWeather.py`重命名为`UpdateWeather.pyw`
在程序或脚本中填入`UpdateWeather.pyw`所在完整路径
在起始于中填入`UpdateWeather.pyw`所在文件夹的完整路径

>⚠注意:扩展模块需要刷入 xingrz 的[扩展固件](https://github.com/xingrz/zmk-config_helloword_hw-75/tree/master/config/boards/arm/hw75_dynamic),才能正常工作
>例:程序放置于D:\UpdateWeather\文件夹
那么
程序或脚本中填入D:\UpdateWeather\UpdateWeather.pyw
起始于中填入 D:\UpdateWeather
![Alt text](docs/task1.png)

### 方法二 (有弹窗)
* 参见[快速开始](https://github.com/HellSakura/UpdateWeather/wiki/%E5%BF%AB%E9%80%9F%E5%BC%80%E5%A7%8B)

* 直接在计划任务中选择添加打包好的程序,在起始于中填入`UpdateWeather.exe`所在完整路径即可
![Alt text](docs/task2.png)
>这会在每次刷新时弹窗
## Todolist ![咕咕咕](https://img.shields.io/badge/-%E5%92%95%E5%92%95%E5%92%95-blue?style=flat-square)
- [x] 详细的使用说明
- [ ] 支持局部刷新(在想了在想了)
- [ ] [更多](https://dev.qweather.com/docs/resource/icons/) 的中文天气矢量图
- [ ] `location`直接填入城市名称即可
- [ ] 无需填写`loccation`,自动获取当前位置
Expand Down
Binary file removed docs/task1.png
Binary file not shown.
Binary file removed docs/task2.png
Binary file not shown.

0 comments on commit 2cac97f

Please sign in to comment.