Posted: . At: 2:45 PM. This was 1 month ago. Post ID: 19406
Page permalink. WordPress uses cookies, or tiny pieces of information stored on your computer, to verify who you are. There are cookies for logged in users and for commenters.
These cookies expire two weeks after they are set.


See a nice high-resolution weather map of the United States with the terminal.


Seeing a nice US weather map is very easy with the terminal. If you have an MPV installed, view a high-resolution weather map using this command.

(jcartwright@2403-4800-25af-b00--2) 192.168.1.5 Downloads  $ mpv https://radar.weather.gov/ridge/standard/CONUS-LARGE_loop.gif --loop
 (+) Video --vid=1 (gif 3400x1600 5.000fps)
VO: [gpu] 3400x1600 bgra
V: 00:00:01 / 00:00:03 (30%) Cache: 0.4s/1MB

Exiting... (Quit)

This will open a lovely looping GIF. This works very well to get the weather conditions at a glance.

Another example is a smaller map centred on Indianapolis.

(jcartwright@2403-4800-25af-b00--2) 192.168.1.5 Downloads  $ mpv https://radar.weather.gov/ridge/standard/KIND_loop.gif --loop
 (+) Video --vid=1 (gif 600x550 2.750fps)
VO: [gpu] 600x550 bgra
V: 00:00:00 / 00:00:03 (24%) Cache: 0.6s/332KB

Exiting... (Quit)

This is a neat Linux trick.

Get a nice weather report for Indiana in a table.

(jcartwright@2403-4800-25af-b00--2) 192.168.1.5 Downloads  $ curl wttr.in/IND?u
Weather report: IND

     \  /       Partly cloudy
   _ /"".-.     60 °F          
     \_(   ).    19 mph       
     /(___(__)  9 mi           
                0.1 in         
                                                       ┌─────────────┐                                                       
┌──────────────────────────────┬───────────────────────┤  Mon 25 Mar ├───────────────────────┬──────────────────────────────┐
│            Morning           │             Noon      └──────┬──────┘     Evening           │             Night            │
├──────────────────────────────┼──────────────────────────────┼──────────────────────────────┼──────────────────────────────┤
│    \  /       Partly Cloudy  │    \  /       Partly Cloudy  │               Overcast       │    \  /       Partly Cloudy  │
│  _ /"".-.     +48(41) °F     │  _ /"".-.     +55(50) °F     │      .--.     +57(53) °F     │  _ /"".-.     +57(51) °F     │
│    \_(   ).    18-30 mph    │    \_(   ).    19-23 mph    │   .-(    ).    20-31 mph    │    \_(   ).    22-37 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%    │
└──────────────────────────────┴──────────────────────────────┴──────────────────────────────┴──────────────────────────────┘
                                                       ┌─────────────┐                                                       
┌──────────────────────────────┬───────────────────────┤  Tue 26 Mar ├───────────────────────┬──────────────────────────────┐
│            Morning           │             Noon      └──────┬──────┘     Evening           │             Night            │
├──────────────────────────────┼──────────────────────────────┼──────────────────────────────┼──────────────────────────────┤
│  _`/"".-.     Patchy rain ne…│  _`/"".-.     Patchy light d…│     \   /     Sunny          │               Overcast       │
│   ,\_(   ).   +53(48) °F     │   ,\_(   ).   +60(59) °F     │      .-.      +53(48) °F     │      .--.     +44(37) °F     │
│    /(___(__)   22-33 mph    │    /(___(__)   22-26 mph    │   ― (   ) ―    21-25 mph    │   .-(    ).    16-23 mph    │
│      ‘ ‘ ‘ ‘  6 mi           │      ‘ ‘ ‘ ‘  3 mi           │      `-’      6 mi           │  (___.__)__)  6 mi           │
│     ‘ ‘ ‘ ‘   0.0 in | 77%   │     ‘ ‘ ‘ ‘   0.0 in | 100%  │     /   \     0.0 in | 0%    │               0.0 in | 0%    │
└──────────────────────────────┴──────────────────────────────┴──────────────────────────────┴──────────────────────────────┘
                                                       ┌─────────────┐                                                       
┌──────────────────────────────┬───────────────────────┤  Wed 27 Mar ├───────────────────────┬──────────────────────────────┐
│            Morning           │             Noon      └──────┬──────┘     Evening           │             Night            │
├──────────────────────────────┼──────────────────────────────┼──────────────────────────────┼──────────────────────────────┤
│    \  /       Partly Cloudy  │     \   /     Sunny          │     \   /     Sunny          │     \   /     Clear          │
│  _ /"".-.     +35(26) °F     │      .-.      +39(33) °F     │      .-.      +46(41) °F     │      .-.      +41(37) °F     │
│    \_(   ).    11-14 mph    │   ― (   ) ―    10-11 mph    │   ― (   ) ―    11-13 mph    │   ― (   ) ―    5-11 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: Indiana, USA [40.3270127,-86.1746933]

Follow @igor_chubin for wttr.in updates

This is a very nice 3-day forecast.

Using curl to return weather information is very neat.


Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.