find the weather

Introduce yourself, create test postings or talk nonsense
djemos
Salix Warrior
Posts: 1433
Joined: 29. Dec 2009, 13:45
Location: Greece

find the weather

Post by djemos »

User avatar
gapan
Salix Wizard
Posts: 6238
Joined: 6. Jun 2009, 17:40

Re: find the weather

Post by gapan »

Wow! Nice!
Image
Image
User avatar
ChuangTzu
Donor
Posts: 388
Joined: 19. May 2015, 23:34

Re: find the weather

Post by ChuangTzu »

really nice. brings back pre-net all terminal memories. :) This one is a keeper.
User avatar
laprjns
Salix Warrior
Posts: 1105
Joined: 28. Aug 2009, 01:30
Location: Connecticut USA

Re: find the weather

Post by laprjns »

alias weather="curl http://wttr.in/ellington"
“Don’t you see that the whole aim of Newspeak is to narrow the range of thought?"
Sasquatch
Posts: 155
Joined: 26. Mar 2014, 00:50

Re: find the weather

Post 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%    │
└──────────────────────────────┴──────────────────────────────┴──────────────────────────────┴──────────────────────────────┘
User avatar
mimosa
Salix Warrior
Posts: 3311
Joined: 25. May 2010, 17:02
Contact:

Re: find the weather

Post 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
User avatar
gapan
Salix Wizard
Posts: 6238
Joined: 6. Jun 2009, 17:40

Re: find the weather

Post 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
Image
Image
Sasquatch
Posts: 155
Joined: 26. Mar 2014, 00:50

Re: find the weather

Post 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=
User avatar
gapan
Salix Wizard
Posts: 6238
Joined: 6. Jun 2009, 17:40

Re: find the weather

Post by gapan »

You need to use a UTF8 locale. Run:

Code: Select all

sudo localesetup
and choose en_US.utf8 from the list.
Image
Image
Sasquatch
Posts: 155
Joined: 26. Mar 2014, 00:50

Re: find the weather

Post 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?
Post Reply