-
Notifications
You must be signed in to change notification settings - Fork 218
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
使用和风天气API #48
Open
chase535
wants to merge
12
commits into
ClimbSnail:main
Choose a base branch
from
chase535:main
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
使用和风天气API #48
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Prepare for qweather
chase535
force-pushed
the
main
branch
2 times, most recently
from
July 11, 2024 01:21
21c75e6
to
fe39003
Compare
1. Change the time unit to minutes. 2. Web Setting display tips. 3. Determine whether the setting numbers are compliant. 4. Fix possible memory leak. 5. Change config file name. 6. Fix the end of snprintf string may not be '\0'. 7. Fix Web Setting crash.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
和风天气免费订阅每日最多可请求1000次API,无总使用量及试用时间限制,比易刻天气的免费规则要好很多。
主要附带更改为:
1.将
ArduinoJson
库版本升级为7.1.0,不再需要指定JsonDocument
的大小,提高Json数据的提取效率并减少系统资源的消耗2.添加
URLCode
库,以便将中文转换为URL编码,用于请求和风天气LocationID
数据3.添加
ArduinoUZlib
库,用于解压和风天气API返回的使用GZip压缩的数据4.可选是否通过IP地址自动获取地理位置
5.更好的天气界面显示效果
6.将部分Web Setting选项改为选择而非填空
7.禁用看门狗及断电探测器,防止因GET请求时间过长、供电不够等导致的重启
8.因目前并没有应用需要检测震动,而震动检测会导致手拿小电视时串口疯狂输出,所以禁用振动检测
9.取消
MPU6050
库library.json文件的注释,改为删除会引起编译报错的相关内容,使得编译时不会因注释而显示错误信息10.默认禁用旧版天气应用