From 44ae9fe45d4e03ab3145553bd2a94ae2fd682d08 Mon Sep 17 00:00:00 2001 From: huanglinsd <74490561+huanglinsd@users.noreply.github.com> Date: Mon, 18 Oct 2021 23:01:10 +0800 Subject: [PATCH] Update main.py --- bin/main.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/main.py b/bin/main.py index 014f165..c44f0a2 100644 --- a/bin/main.py +++ b/bin/main.py @@ -30,7 +30,7 @@ def Local_strong_brush(): #局部强制刷新显示 while i < 5: epd.displayPartial(epd.getbuffer(info_image.rotate(180)))#局刷开始 i = i + 1 -def getWeath(city='101270108'): #天气函数,下载json天气至本地 +def getWeath(city='101280601'): #天气函数,下载json天气至本地 headers = { 'User-Agent':'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/94.0.4606.81 Safari/537.36 Edg/94.0.992.50', 'Referer':'http://www.weather.com.cn/' @@ -255,4 +255,4 @@ except KeyboardInterrupt: epd.init(epd.FULL_UPDATE) epd.sleep() epd2in13_V2.epdconfig.module_exit() - exit() \ No newline at end of file + exit()