amarok
April 29, 2021, 8:57pm
1
Huh… I just tested the command curl wttr.in
… and it correctly detected my city. By GPS or by IP address? Anyone know?
(I have WiFi on and Mobile off.)
https://linuxconfig.org/get-your-weather-forecast-from-the-linux-cli
Edit: It must be simply detecting by IP, because on my laptop, the command thinks my location is where the VPN server is located.
5 Likes
mekhos
April 30, 2021, 4:07am
2
I love that cli weather! my favourite is the v2 format, try
$ curl wttr.in/München?format=v2
or see a preview about half way down the github page (https://github.com/chubin/wttr.in )
3 Likes
I think so too. I executed on a VPS and it gave the weather for the location of the VPS.
2 Likes
nhu
April 30, 2021, 8:41am
4
I did not even think about it but SMHI.se worked directly in the browser. It works around the world and you just search for your place. I like it because I can check the weather at any place without any place recognition. Funny enough it even recognized our small village.
1 Like
amarok
April 30, 2021, 5:05pm
5
Oh wow, that’s even better! Thanks!
BTW, the GNOME Weather app’s forecast function is still broken.