chubin / wttr.in

:partly_sunny: The right way to check the weather
https://wttr.in
Apache License 2.0
24.45k stars 1.1k forks source link

How to display celsius temperature in one-line output #987

Closed lemyx closed 4 months ago

lemyx commented 5 months ago

When I execute the following one-line output command

curl -s 'zh.wttr.in/{Beijing,Chifeng}?format=4'

It will display results with Fahrenheit temperature, but I wanna see celsius one, any option to fix this problem?

By the way, If I close my proxy, the command will display celsius temperature as expected.

Thanks

vitusson commented 4 months ago

It depends on from where the query is originated, it will display Fahrenheit if your proxy is in USA https://github.com/chubin/wttr.in?tab=readme-ov-file#weather-units Use curl -s 'zh.wttr.in/{Beijing,Chifeng}?m&format=4' to get metric units