Terminal Weather?

Has anyone used curl wttr.in to get the weather in your terminal, is it working for you? I went to Follow @igor_chubin for wttr.in updates on twitter and I saw that you now have to do a curl wttr.in/“insert city here”+“insert your state here” like this curl wttr.in/Portland+Oregon to get your weather for that area. Is this working for anyone else? I’m using Plasma and the weather widgets aren’t that good imho. Thanks!

Yes.

$ curl wttr.in/Portland+Oregon
Weather report: Portland+Oregon

       .-.      Light freezing drizzle
      (   ).    -1(-3) °C      
     (___(__)   ← 24 km/h      
      ‘ * ‘ *   5 km           
     * ‘ * ‘    2.9 mm 

What’s the question?

2 Likes

it’s working, i have a article on my site about it:

1 Like

Is it working for you was the question. :smile:

Its now working again for me as well.

Thanks!

That would be a great script to run automatically when you open a terminal

I am not sure about that. It looks like wttr.in domain has some limited bandwidth and running it every time you open a terminal adds unnecessary queries. Sometimes (usualy later at night) it returns only a message that maximum query limit was reached for the day.
But maybe this behaviour changed over last few months when I didn’t use it.

It probably has limitations of SOME sort in it! I just utilize other sources, and display all I need with conky (so I don’t even have to enter a command!) Examples can be seen in Share Your Desktop if interested :grin:

1 Like
                                                       ┌─────────────┐                                                       
┌──────────────────────────────┬───────────────────────┤  Mon 15 Feb ├───────────────────────┬──────────────────────────────┐
│            Morning           │             Noon      └──────┬──────┘     Evening           │             Night            │
├──────────────────────────────┼──────────────────────────────┼──────────────────────────────┼──────────────────────────────┤
│               Overcast       │               Overcast       │               Overcast       │      .-.      Light drizzle  │
│      .--.     +35(30) °F     │      .--.     +35(33) °F     │      .--.     +35(33) °F     │     (   ).    32(30) °F      │
│   .-(    ).   ↓ 4-5 mph      │   .-(    ).   ↓ 3 mph        │   .-(    ).   ↙ 3-4 mph      │    (___(__)   ↙ 4-6 mph      │
│  (___.__)__)  6 mi           │  (___.__)__)  6 mi           │  (___.__)__)  6 mi           │     ‘ ‘ ‘ ‘   4 mi           │
│               0.0 in | 0%    │               0.0 in | 0%    │               0.0 in | 53%   │    ‘ ‘ ‘ ‘    0.0 in | 0%    │
└──────────────────────────────┴──────────────────────────────┴──────────────────────────────┴──────────────────────────────┘
                                                       ┌─────────────┐                                                       
┌──────────────────────────────┬───────────────────────┤  Tue 16 Feb ├───────────────────────┬──────────────────────────────┐
│            Morning           │             Noon      └──────┬──────┘     Evening           │             Night            │
├──────────────────────────────┼──────────────────────────────┼──────────────────────────────┼──────────────────────────────┤
│               Overcast       │               Cloudy         │  _`/"".-.     Moderate or he…│    \  /       Partly cloudy  │
│      .--.     +46(44) °F     │      .--.     +48(46) °F     │   ,\_(   ).   +48(46) °F     │  _ /"".-.     42 °F          │
│   .-(    ).   ↗ 4-8 mph      │   .-(    ).   → 6-8 mph      │    /(___(__)  ↘ 10-15 mph    │    \_(   ).   ↘ 14-20 mph    │
│  (___.__)__)  1 mi           │  (___.__)__)  6 mi           │     * * * *   4 mi           │    /(___(__)  4 mi           │
│               0.0 in | 0%    │               0.0 in | 0%    │    * * * *    0.0 in | 68%   │               0.0 in | 55%   │
└──────────────────────────────┴──────────────────────────────┴──────────────────────────────┴──────────────────────────────┘
                                                       ┌─────────────┐                                                       
┌──────────────────────────────┬───────────────────────┤  Wed 17 Feb ├───────────────────────┬──────────────────────────────┐
│            Morning           │             Noon      └──────┬──────┘     Evening           │             Night            │
├──────────────────────────────┼──────────────────────────────┼──────────────────────────────┼──────────────────────────────┤
│    \  /       Partly cloudy  │    \  /       Partly cloudy  │  _`/"".-.     Patchy light s…│               Overcast       │
│  _ /"".-.     24(15) °F      │  _ /"".-.     30(23) °F      │   ,\_(   ).   +33(30) °F     │      .--.     32(28) °F      │
│    \_(   ).   ↘ 10-12 mph    │    \_(   ).   ↘ 8-9 mph      │    /(___(__)  ↗ 3-4 mph      │   .-(    ).   ↙ 3-4 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%    │
└──────────────────────────────┴──────────────────────────────┴──────────────────────────────┴──────────────────────────────┘
Location: Washington, District of Columbia, United States of America [38.8949549,-77.0366455]

Follow @igor_chubin for wttr.in updates
1 Like

yah thats a bit much for every time i log in

2 Likes