dch / wetter

A BSD-licensed command-line interface to the OpenWeatherMap API for fun

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Wetter

A BSD-licensed command-line interface to the [OpenWeatherMap API] for fun.

It will guess your location from whatever external (internet-facing) IP address we have, to determine the most appropriate geographic region and location for guessing your weather.

It supports imperial and metric units, defaulting to metric units, and you can optionally override it with a suitable location, if the guessed location is not to your preference, or you want to obtain the weather elsewhere.

License

BSD-2 Clause

Pre-requisites

  • You'll need to sign up for an [OpenWeatherMap API] key stored in the OWM_TOKEN environment variable
  • internet connectivity for GeoIP lookup and API access

Usage

$ env OWM_TOKEN=... wetter [-i] \
    [-l <integer | city,ISO3166 CountryCode>]

$ wetter -l vienna,at

Your nearest weather is Vienna,AT is:

overcast with clouds

4.9°С temperature from 3.9 to 6.1 °С, wind 2.02 m/s. clouds 98 %, 1017 hpa

Geo coords [48.2085, 16.3721]

$ wetter -i -l 2761369

About

A BSD-licensed command-line interface to the OpenWeatherMap API for fun

License:BSD 2-Clause "Simplified" License


Languages

Language:Go 100.0%