Page 1 of 2

find the weather

Posted: 29. Feb 2016, 12:59
by djemos

Re: find the weather

Posted: 29. Feb 2016, 18:45
by gapan
Wow! Nice!

Re: find the weather

Posted: 29. Feb 2016, 20:16
by ChuangTzu
really nice. brings back pre-net all terminal memories. :) This one is a keeper.

Re: find the weather

Posted: 29. Feb 2016, 23:41
by laprjns
alias weather="curl http://wttr.in/ellington"

Re: find the weather

Posted: 16. Oct 2016, 01:15
by Sasquatch
It also recognizes US zip codes. Excellent find.

**EDIT**
How can I get a cleaner output? It looks fine when I use the browser, but the terminal is illegible;

Code: Select all

Morning            │             Noon      └──────┬──────┘    Evening            │            Night             │
├──────────────────────────────┼──────────────────────────────┼──────────────────────────────┼──────────────────────────────┤
│               Cloudy         │               Overcast       │     \   /     Sunny          │     \   /     Clear          │
│      .--.     69 – 71 °F     │      .--.     78 – 80 °F     │      .-.      82 – 84 °F     │      .-.      77 – 78 °F     │
│   .-(    ).   ↑ 11 – 16 mph  │   .-(    ).   ↑ 14 – 16 mph  │   ― (   ) ―   ↑ 13 – 20 mph  │   ― (   ) ―   ↑ 13 – 24 mph  │
│  (___.__)__)  6 mi           │  (___.__)__)  6 mi           │      `-’      6 mi           │      `-’      6 mi           │
│               0.0 in | 0%    │               0.0 in | 0%    │     /   \     0.0 in | 0%    │     /   \     0.0 in | 0%    │
└──────────────────────────────┴──────────────────────────────┴──────────────────────────────┴──────────────────────────────┘

Re: find the weather

Posted: 16. Oct 2016, 07:44
by mimosa
Maybe a bigger window? I use Xmonad or Ratpoison, so I always get the whole screen - where it displays well.

Also note:

http://wttr.in/Moon

Re: find the weather

Posted: 16. Oct 2016, 09:22
by gapan
Sasquatch wrote:How can I get a cleaner output?
There is something wrong with your terminal. Which one are you using and what is the output of:

Code: Select all

locale

Re: find the weather

Posted: 16. Oct 2016, 12:37
by Sasquatch
It's the stock terminal emulator. I launch it from the taskbar. I didn't even know there was an option.

Code: Select all

$ locale
LANG=en_US
LC_CTYPE="en_US"
LC_NUMERIC="en_US"
LC_TIME="en_US"
LC_COLLATE=C
LC_MONETARY="en_US"
LC_MESSAGES="en_US"
LC_PAPER="en_US"
LC_NAME="en_US"
LC_ADDRESS="en_US"
LC_TELEPHONE="en_US"
LC_MEASUREMENT="en_US"
LC_IDENTIFICATION="en_US"
LC_ALL=

Re: find the weather

Posted: 16. Oct 2016, 13:05
by gapan
You need to use a UTF8 locale. Run:

Code: Select all

sudo localesetup
and choose en_US.utf8 from the list.

Re: find the weather

Posted: 16. Oct 2016, 13:14
by Sasquatch
I'm beginning to think my computer is haunted. When I run

Code: Select all

sudo localesetup
it shows en_US.utf8 as the selected locale. Just for giggles, I selected en_AU.utf8... and I get the same result as before. Is there a local config setting that is overriding the global one?