Yet another commnd line weather tool.

Use city name  or zip (some people also say that case insensitive and, if you want to specify the nation, you can append an underscore and the nation's iso 2 or 3 letters code or the full nation name, it seems.
I.e.:
curl http://wittr.in/Milano_usa
curl http://wittr.in/Milano_it
curl http//wittr.in/Milano_italy)

$ curl http://wttr.in/austin



$ curl http://wttr.in/77337


---------------------------------
Script in progress:

Get your ipaddress:
 
$ dig +short myip.opendns.com @resolver1.opendns.com
 
23.43.247.204
 
Get location from ipadress:

$ curl ipinfo.io/23.43.247.204
{
  "ip": "23.43.247.204",
  "hostname": "a23-43-247-204.deploy.static.akamaitechnologies.com",
  "city": "Cambridge",
  "region": "Massachusetts",
  "country": "US",
  "loc": "42.3626,-71.0843",
  "org": "AS4436 nLayer Communications, Inc.",
  "postal": "02142"

Get the data you need with grep.
 
Via the web:
 
 
 $ curl http://wttr.in/moon
                 .------------.  
             .--'  o     . .   `--.  
          .-'   .    O   .       . `-.  
       .-'@   @@@@@@@   .  @@@@@      `-  
      /@@@  @@@@@@@@@@@   @@@@@@@   .    \  
    ./    o @@@@@@@@@@@   @@@@@@@       . \  
   /@@  o   @@@@@@@@@@@.   @@@@@@@   O        
  /@@@@   .   @@@@@@@o    @@@@@@@@@@     @@@   
  |@@@@@               . @@@@@@@@@@@@@ o @@@@|  
 /@@@@@  O  `.-./  .      @@@@@@@@@@@@    @@    Full Moon +    
 | @@@@    --`-'       o     @@@@@@@@ @@@@      0 21:53:04
 |@ @@@        `    o      .  @@   . @@@@@@@    Last Quarter - 
 |       @@  @         .-.     @@@   @@@@@@@    6  3:56:45
 \  . @        @@@     `-'   . @@@@   @@@@  o   
  |      @@   @@@@@ .           @@   .       |  
  \     @@@@  @\@@    /  .  O    .     o   .   
   \  o  @@     \ \  /         .    .         
    `\     .    .\.-.___   .      .   .-. /  
      \           `-'                `-' /  
       `-.   o   / |     o    O   .   .-  
          `-.   /     .       .    .-'  
             `--.       .      .--'  
                 `------------'  


Check new Feature: wttr.in/Moon or wttr.in/Moon@2016-Mar-23 to see the phase of the Moon
Follow @igor_chubin for wttr.in updates.
 
You can also use your browser. 


Comments

Popular posts from this blog

Guiless?

MSOffice vs Libreoffice

Raspberry pi zero.