For the past few months I’ve been using this neat API to check the weather from the command line. It’s very simple to use. Simply run:

curl wttr.in

This will show the weather based on your location, but you can also give a particular location and format.

curl wttr.in/Amsterdam

202304271504

https://github.com/chubin/wttr.in