Return Yahoo! weather API data in Celsius, using YQL

前端 未结 3 765
长情又很酷
长情又很酷 2021-02-12 18:45

I\'m trying to get Yahoo! weather API with temperatures in Celsius.

I\'ve added &u=c in the request, but it\'s still returning data in Fahrenheit.

3条回答
  •  再見小時候
    2021-02-12 19:07

    I used the yql

    select item from weather.forecast where woeid=22724447 and u='c'
    

    and it worked fine with the results in Celsius. I changed the "LEXX0003" for the real WOEID of that zone and it seems to have worked.

提交回复
热议问题