From 212bd6b2e196653159617e8774b91a115075330c Mon Sep 17 00:00:00 2001 From: kicer Date: Tue, 3 Feb 2026 16:10:52 +0800 Subject: [PATCH] v1.3.6, update weather url --- src/rom/app.py | 2 +- src/rom/display.py | 4 ++-- src/rom/www/index.html | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/rom/app.py b/src/rom/app.py index f46a921..0179833 100644 --- a/src/rom/app.py +++ b/src/rom/app.py @@ -248,7 +248,7 @@ async def fetch_weather_data(city=None): print(f"正在获取{city}天气数据...") # 从配置获取API基础URL,默认使用官方API - url = config.get("weather_api_url", "http://esp.tangofu.com/api/ws2/") + url = config.get("weather_api_url", "http://esp.foresh.com/api/ws2/") params = {"uuid": uuid(), "city": city} # 发送GET请求 diff --git a/src/rom/display.py b/src/rom/display.py index 6252cb7..4475ec3 100644 --- a/src/rom/display.py +++ b/src/rom/display.py @@ -68,7 +68,7 @@ class Display: self.tft.init() self.tft.fill(0) self.show_jpg(self.bootimg, 80, 80) - self.message("WS2 v1.3.5 (20260202)") + self.message("WS2 v1.3.6 (20260203)") _print_mem() return True @@ -186,7 +186,7 @@ class Display: if rh is not None and rh != self.ui_data.get('rh'): self.ui_data['rh'] = rh self.tft.fill_rect(110,179,40,16,0) - self.tft.draw(self.vector_font, f' {str(rh)}%', 110,187,0xFFFF,0.5) + self.tft.draw(self.vector_font, f' {str(rh)}', 110,187,0xFFFF,0.5) if pm is not None and pm != self.ui_data.get('pm'): self.ui_data['pm'] = pm self.tft.fill_rect(35,213,40,16,0) diff --git a/src/rom/www/index.html b/src/rom/www/index.html index d3e0621..a21acb7 100644 --- a/src/rom/www/index.html +++ b/src/rom/www/index.html @@ -129,7 +129,7 @@ WS2是一款基于ESP8266的桌面气象站,能够实时显示天气信息、 href="https://iot.foresh.com/git/kicer/ws2/releases" target="_blank" > -ws2-firmware-v1.3.5-4M.bin 开源
协议: HTTP REST API
更新频率: 每小时

开放源码