Hi Cindy,
First, sharing whathappens when I type
curl wttr-in/yyz
I get a message stating that curl 6 could not resolve host name wttr-in
is there a way to run wttr-in via a browser?
As for running weather -f yyz
it does give me the information for current conditions at the airport.
however it provides a buffalo New York forecast. The differences in our weather
are considerable. Its several hours away.
Indeed, simply running weather -f Toronto
would list several airports we have rather a few, some public, some
private, some heliports and so on.
Going to run weather -f for both of the city centre airports and see if
the forecast improves in terms of location.
Still, Is there a way of expanding whatever weather -f draws upon for its
sources forecast wise?
Thanks!
Kare
On Tue, 17 Mar 2026, Cindy Sue Causey wrote:
On Tue, 2026-03-17 at 20:08 -0400, Karen Lewellen wrote:
Hi Chime,
Indeed. Niagara falls is western New York state. sharring a border
with
Ontario.
That is likely the nearest city to yyz, that the program can provide.
unclear about the duckduckgo reference however?
Still makes my first question stand as well. A weather utility that
realizes the rest of the world has weather too?
Wonder what it would provide if I used the airport code for John
Lennon
International?
I took a shot at this, too. Based on the desire to still find another
weather utility, I tripped over "ansiweather" on the Internet. After
installing, I checked "man ansiweather" for usage which provided this
sample command which includes emoticon-type feedback:
$ ansiweather -l "Toronto" -u imperial -s true -f 5 -d true Toronto
forecast: Tue Mar 17: 29/18 °F ❄ - Wed Mar 18: 35/18 °F ☁ - Thu Mar 19:
38/30 °F ❄ - Fri Mar 20: 36/30 °F ❄ - Sat Mar 21: 40/32 °F ☁
Somewhere while installing it, I saw a reference to this initiative:
https://openweathermap.org/api
NOT ideal for my personal usage (aka liking), especially relying on
pictures of clouds and sun, so I went back to weather-util, my own
favorite for many years. I asked DuckDuckGo if they could help me help
a Debian User access Toronto via weather-util. DDG said:
+++ BEGIN DUCKDUCKGO QUOTE
To add Toronto weather forecasts to the weather-util program on Debian,
the user can create or edit the ~/.weatherrc file to include an alias
for Toronto. They should add a section like this:
[Toronto]
City = Toronto
ID = CYTZ
St = ON
+++ END DUCKDUCKGO QUOTE
So I tried that then ran "weather -f Toronto" which semi-failed but in
a useful way:
WARNING: the city/id/st options are now unsupported in aliases
Searching via name...
Your search is ambiguous, returning 8 matches:
[cytz] Toronto Island Airport Automated Reporting Station, Canada
[cyyz] Toronto Pearson Int'L. Ont., Canada
[fips1978600] Toronto city, IA
[fips2020771075] Toronto township, KS
[fips2071050] Toronto city, KS
[fips3977112] Toronto city, OH
[fips4603963740] Toronto town, SD
[fips4663740] Toronto town, SD
Next running "weather -f cyyz" got me what seemed to be a credible
forecast for something in the vicinity of Toronto, Canada. It's not a
perfect match to ansiweather's output but does seem to be almost
reasonably similar.
I'd like to further help with this regarding why a command of some kind
that was working is now failing. Might not be able to help but am
willing to dig a tiny bit further.
That "~/.weatherrc" in DDG's tip had never been generated for me. A
~/.weather exists. It's where I can see NOAA websites. I messed around
with those values years ago when NOAA reorganized their own website.
Can't remember if putzing around with that or a similar file worked
before Jeremy officially updated weather-util to the new NOAA layout.
If typing in "weather -f Toronto" doesn't work for others for whatever
reason, it'd be nice to be able to addend something to e.g. ~/.weather
(or weather.py??) for other countries, if necessary.
Just thinking out loud..
Cindy :)
--
Talking Rock, Pickens County, Georgia, USA
* runs with birdseed! *