wezr

command module
v0.0.0-...-b9a6555 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 8, 2015 License: MIT Imports: 10 Imported by: 0

README

wezr

Shows weather info in the console. Weather data is provided by forecast.io

Installation

  • go get github.com/stchris/wezr

Usage

  • You need an API Key from forecast.io
  • Find the coordinates you want weather data for
  • wezr expects a ~/.wezr.yml file with this structure:
api_key: abcdef1234
lat: 12.345
long: 54.321
  • Run wezr

Sample output

$ wezr
Mostly Cloudy 8.3°C (feels like 6.8°C) precipitation chance 0%

$ wezr --units us
Mostly Cloudy 47.0°F (feels like 44.2°F) precipitation chance 0%

$ wezr --help
usage: wezr [--config CONFIG] [--units UNITS] [--version] 

options:
  --config CONFIG        location of the configuration file - default: ~/.wezr.yml
  --units UNITS          display units: 'us' or 'si' (default)
  --version, -v          show the current version

Creative usage

Add a cronjob (crontab -e)

@hourly $GOHOME/bin/wezr > $HOME/.wezr.txt

and then use that info to greet you every time you open a new terminal, by putting this into your .bash{rc,_profile}:

echo "This is what it's like outside: `cat $HOME/.wezr.txt`"

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL