soulteary / docker-flare

Flare ✨ Lightweight, high performance and fast self-hosted navigation pages, resource utilization rate is <1% CPU, MEM <30 M, Docker Image < 10M

Home Page:https://soulteary.com/2022/02/23/building-a-personal-bookmark-navigation-app-from-scratch-flare.html

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

天气组件不可用

oubayun opened this issue · comments

commented

你遇到了什么样的麻烦?

image

如何复现这个问题?

在0.4.1版本中天气组件不可用,排除网络及DNS问题。

应用版本

在0.4.1版本中天气组件不可用,排除网络及DNS问题。

搜索

  • 在提交这个表格之前,我已经进行了相关问题搜索,没有找到相关的问题或解决方案。

补充描述

No response

我这里试了试接口是正常:
test

  • 你在填写完地区名称之后有点击"保存修改"按钮吗?
  • 另外在相同网络下直接访问 https://wis.qq.com/weather/common?source=pc&weather_type=observe&province=广东省&city=深圳市 有响应吗?
commented
image image
/app # curl "https://wis.qq.com/weather/common?source=pc&weather_type=observe&province=广东省&city=深圳市"
{"data":{"observe":{"degree":"19","humidity":"63","precipitation":"0","pressure":"1012","update_time":"202312062125","weather":"多云","weather_code":"01","weather_short":"多云","wind_direction":"1","wind_power":"2"}},"message":"OK","status":200}

是的,已经保存配置多次,对应 config.yml 中 ShowWeather: true,另外在容器内 curl 请求返回正常。

commented

已找到原因,是因为本地国外代理开启后,无法获取对应天气信息。