Skip to content
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
wants to merge 12 commits into
base: main
Choose a base branch
from
Open

使用和风天气API #48

wants to merge 12 commits into from

Conversation

chase535
Copy link

@chase535 chase535 commented Jul 9, 2024

和风天气免费订阅每日最多可请求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.默认禁用旧版天气应用

@chase535 chase535 force-pushed the main branch 2 times, most recently from 21c75e6 to fe39003 Compare July 11, 2024 01:21
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.
@chase535 chase535 changed the title 新版天气使用和风天气API 使用和风天气API Aug 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant