Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/dch/wetter

A BSD-licensed command-line interface to the OpenWeatherMap API for fun
https://github.com/dch/wetter

go openweathermap weather wetter

Last synced: 28 days ago
JSON representation

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

Awesome Lists containing this project

README

        

# 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](https://skunkwerks.github.io/bsd-2-clause-license)

## 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 ]

$ 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
```