v1.3.6, update weather url

This commit is contained in:
2026-02-03 16:10:52 +08:00
parent cda7c855fe
commit 212bd6b2e1
3 changed files with 4 additions and 4 deletions

View File

@@ -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请求

View File

@@ -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)

View File

@@ -129,7 +129,7 @@ WS2是一款基于ESP8266的桌面气象站能够实时显示天气信息、
href="https://iot.foresh.com/git/kicer/ws2/releases"
target="_blank"
>
ws2-firmware-v1.3.5-4M.bin </a
ws2-firmware-v1.3.6-4M.bin </a
><span class="badge badge-success">开源</span></div><div class="list-item"><strong>协议:</strong> HTTP REST API
</div><div class="list-item"><strong>更新频率:</strong> 每小时
</div></div></div></div><h3 class="mt-3">开放源码</h3><a