海天鹰天气的城市名称应该如何输入
Tofloor
poster avatar
heqi
deepin
2019-04-07 04:28
Author
坐标山西大同,安装海天鹰天气,设置国家为CH,城市名称为“Datong”“datong”“DaTong”均无效。用“Beijing”测试,log如下:
  1. 2019/04/06 20:22:56
  2. https://api.openweathermap.org/data/2.5/forecast?q=Beijing,CH&appid=8f3c852b69f0417fac76cd52c894ba63
  3. {"cod":"404","message":"city not found"}`
Copy the Code
按照地址去提供API的https://openweathermap.org/api翻了一下,他们的示例是这样的

按照示例,把海天鹰城市改成伦敦,成功了......


所以,请教一下各位,海天鹰天气的城市名称到底如何输入?(本人小白)


Reply Favorite View the author
All Replies
avatar
heqi
deepin
2019-04-07 04:30
#1
Reply View the author
avatar
lst512
deepin
2019-04-07 04:56
#2
那个,选CN,不是CH
Reply View the author
avatar
heqi
deepin
2019-04-07 05:17
#3
https://bbs.deepin.org/post/176468
那个,选CN,不是CH

谢谢,唉,丢人丢大发了
Reply View the author