Networking | Linux | FOSS | Note-Keeping |

Pages

Friday, March 29, 2019

wttr.in - Eye Candy Weather Forecast in Linux Command Line & Browser

I recently came across an eye candy console-oriented weather forecast service tool wttr.in — the right way to check the weather!
wttr.in is a console-oriented weather forecast service that supports various information representation methods like terminal-oriented ANSI-sequences for console HTTP clients (curl, httpie, or wget), HTML for web browsers, or PNG for graphical viewers.
wttr.in uses wego for visualization and various data sources for weather forecast information. It uses the USCS units for the queries from the USA and the metric system for the rest of the world by default.
You can see it running here: wttr.in.
Weather Report

Usage

You can access the service from a shell or from a Web browser like this:
$ curl wttr.in
Weather for City: Paris, France

     \   /     Clear
      .-.      10 – 11 °C     
   ― (   ) ―   ↑ 11 km/h      
      `-’      10 km          
     /   \     0.0 mm         
You can get the weather information for a specific location by adding the desired location to the URL in your request like this:
$ curl wttr.in/London
$ curl wttr.in/Moscow
If you omit the location name, you will get the report for your current location based on your IP address.
Use 3-letter airport codes in order to get the weather information at a certain airport:
$ curl wttr.in/muc      # Weather for IATA: muc, Munich International Airport, Germany
$ curl wttr.in/bhv      # Weather for IATA: bhv, Bahawalpur Airport, Pakistan
You can also use IP-addresses (direct) or domain names (prefixed with @) to specify a location:
$ curl wttr.in/@github.com
$ curl wttr.in/@msu.ru
To get detailed information online, you can access the /:help page:
$ curl wttr.in/:help
Source:
Igor Chubin
Share:

0 comments:

Post a Comment

Sitemap

Contact Form

Name

Email *

Message *

Total Pageviews

Search This Blog