Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/dch/wetter
- Owner: dch
- License: bsd-2-clause
- Created: 2021-02-02T11:26:33.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2021-03-30T12:32:48.000Z (over 3 years ago)
- Last Synced: 2024-10-13T13:09:15.065Z (2 months ago)
- Topics: go, openweathermap, weather, wetter
- Language: Go
- Homepage:
- Size: 16.6 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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
```