Update main.py

This commit is contained in:
huanglinsd
2021-10-18 23:01:10 +08:00
committed by GitHub
parent 4f3309a85c
commit 44ae9fe45d

View File

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