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

https://github.com/tlugger/won

A small CLI tool for getting live weather forecasts straight to your terminal
https://github.com/tlugger/won

cli darksky-api forecast golang weather

Last synced: 6 months ago
JSON representation

A small CLI tool for getting live weather forecasts straight to your terminal

Awesome Lists containing this project

README

          

# Weather or not
A small CLI tool for getting live weather forecasts straight to your terminal

## Installation
Clone this repo
```
git clone https://github.com/tlugger/won
cd won
```

Copy weather-or-not env file
```
cp .wonenv.example .wonenv
```

Copy your Dark Sky API Key, Latitude, and Longitude into .wonenv

## Run
Get current weather summary and Temperature

_Compile then run_
```
go build won.go
./won
```

_Only run_
```
go run won.go
```

## Install
_Add GOBIN to your path_
```
export PATH=$PATH:$GOPATH/bin
```

_Install won to your GOPATH_
```
go install
```

_Run won!_
```
$ won
Current condition: Flurries
Current temperature: 29.97°F
```