This commit is contained in:
Jerry
2025-06-29 08:12:04 +08:00
parent 5856a84b8d
commit bf390dada2
5 changed files with 7 additions and 4 deletions

View File

@@ -114,7 +114,9 @@ A: 仅刷新app固件后配置是保留的所以无需重新配置。
A: 2025年3月1日后注册的和风天气账户有API Host限制请下载1.0.25以后版本在配置时配置API Host信息。
## Releases
### 1.0.25 (未测试)
### 1.0.26
* Refine: 显示当前为第**周。国际标准ISO 8601以周一作为每周起始日
### 1.0.25
* Fix: 和风天气api变更需要输入API Host在配置页面增加配置项
### 1.0.24
* Refine: 配置页面location约束改为64长度允许输入经纬度设置天气位置e.g. 116.41,39.92

View File

@@ -196,14 +196,15 @@ void draw_cal_year(bool partial) {
calLayout.lunarYearX = u8g2Fonts.getCursorX() + 15;
calLayout.lunarDayX = u8g2Fonts.getCursorX() + 15;
// 星期几
// 第几周
u8g2Fonts.setFont(FONT_TEXT);
u8g2Fonts.setFontMode(1);
u8g2Fonts.setFontDirection(0);
u8g2Fonts.setForegroundColor(todayColor);
u8g2Fonts.setCursor(calLayout.weekX, calLayout.weekY);
u8g2Fonts.print("星期" + week_str[tmInfo.tm_wday]);
char week_num[8];
strftime(week_num, sizeof(week_num), "%V", &tmInfo); // 国际标准ISO 8601以周一作为每周起始日
u8g2Fonts.printf("第%s周", week_num);
calLayout.cdDayX = u8g2Fonts.getCursorX(); // update cd day X;
// 今日农历年份e.g. 乙巳年 蛇