v0.15.2
-----BEGIN PGP SIGNATURE-----

iQIzBAABCgAdFiEE1MTdYA1m9lqO/FEeGPNoXAAiv/MFAltCIC4ACgkQGPNoXAAi
v/OH3g//apZ0B3b06TVCi0YUt3VaT3PRAMfFP+PUSamRJg6THeXgIoincS3s6HPA
CjNoyj025I4Vu9UOpYKAu3J5RV2mKyuIm5P2jriuABl3fElCXT7KYpQPr35N7j9Z
FXAK4ThHu1ryhvnX6D65QvcGO9Dum7oxtnxTlCglkUk0rtweuLuzTBohf5BYHDAD
IBqfZQfQJYLd5fUhUbl/Po1Ie0+lUhceGV6e8qwyMbOE+tNZkJcKP9b600LbEU/T
RJD0Xt3GcemrqVxGgCof0AGq7NSJiR/XacRcykaladRHkm6GtpHKUTbifhfNQKTg
qaTiAF6yJYiZwIcRd9cinC1R30rd0cjykWRZpRQibv9vHVmrsSuTT4YVQUW3Etf+
I43sF5p5zVmAHm+5sJsLeE6W+dLFOfw4c0B+UXjzyFdh+31i/23a7S3P2Z2Hf8q2
TJ43PKwV5qPwm4iHP0lrYw/F2X03RIMGm5tcdKfZ/3tcUR0E/JauwgcfzIGAlHpw
lK35G6b4M85toaqC9ZKSZBs52XL3hAh5tiyhgG+b3S3pOerrbMfvcNlazeDttYB5
A3DhK1xV/rIZP1F7duHwGf4oEDXeVzzt3Z22EB01vyI2PECIxtDTnQ5tZJNEHLwA
EWmCyBCNmL7OZ08DV5hp65WzHeHZfcwyg9JcnIiafZFwo7Mc7Mc=
=s5x1
-----END PGP SIGNATURE-----
Bump version to v0.15.2

Signed-off-by: Jess Frazelle <acidburn@microsoft.com>
2 files changed
tree: f3575584e792c6ac44c43cc5c5c4e981c9a45073
  1. .dockerignore
  2. .gitignore
  3. .travis.yml
  4. Dockerfile
  5. Gopkg.lock
  6. Gopkg.toml
  7. LICENSE
  8. Makefile
  9. README.md
  10. VERSION.txt
  11. forecast/
  12. geocode/
  13. icons/
  14. main.go
  15. screenshot.png
  16. server/
  17. vendor/
  18. version/
README.md

weather

Travis CI

Weather via the command line. Uses the darksky.net API so it's super accurate. Also includes any current weather alerts in the output.

Screenshot

Installation

Binaries

Via Go

$ go get github.com/genuinetools/weather

Via Homebrew

$ brew install darksky-weather

Usage

$ weather -h
  -c    Get location for the ssh client (shorthand)
  -client
        Get location for the ssh client
  -d int
        No. of days to get forecast (shorthand)
  -days int
        No. of days to get forecast
  -hide-icon
        Hide the weather icons from being output
  -ignore-alerts
        Ignore alerts in weather output
  -l string
        Location to get the weather (shorthand)
  -location string
        Location to get the weather
  -no-forecast
        Hide the forecast for the next 16 hours
  -s string
        Weather API server uri (shorthand) (default "https://geocode.jessfraz.com")
  -server string
        Weather API server uri (default "https://geocode.jessfraz.com")
  -u string
        System of units (shorthand) (e.g. auto, us, si, ca, uk2) (default "auto")
  -units string
        System of units (e.g. auto, us, si, ca, uk2) (default "auto")
  -v    print version and exit (shorthand)
  -version
        print version and exit

Examples

# get the current weather in your current location
$ weather

# change the units to metric
$ weather -l "Paris, France" -u si

# it will auto guess the units though so changing
# the location to paris will change the units to `si`
$ weather -l "Paris, France"

# get three days forecast for NY
$ weather -l 10028 -d 3

# or you can autolocate and get three days forecast
$ weather -d 3

# get the weather in Manhattan Beach, CA
# even includes alerts
$ weather -l "Manhattan Beach, CA"
#                             .;odc
#                           ;kXNNNO
#                         .0NNO0NN:
#                        'XNK; dNNl
#                        KNX'  'XNK.
#                       ,NNk    cXNK,
#                       ,NNk     '0NNO:.
#                     .'cXNXl;,.   ,xXNNKOxxxk0Xx
#                 'lOXNNNNNNNNNNXOo'  ':oxkOXNNXc
#               cKNNKd:'.    ..;d0NNKl    ,xXNK,
#        .;:cclKNXd.              .oXNXxOXNNXl
#    .cOXNNNNNNNO.                  .kNNNNNNNXOc.
#   lXNXx;.    .                      .    .;dXNXo
#  ONNd.                                       oXN0.
# dNNo                                          cNNk
# XNN.                                           NNX
# 0NN'                                          .NNK
# ;XN0.                                        .ONNc
#  ;XNXo.                                    .lXNX:
#   .oXNX0dlcclx0Xo.              .oXKxlccldOXNXd.
#      ,lk0KXXK0xKNN0o;..    ..;o0NNKx0KXXX0ko,
#                 'lOXNNNNNNNNNNXOo,
#                     :x0XNNX0x:.
#
#
# Current weather is Partly Cloudy in Manhattan Beach in California for July 14 at 4:14am EDT
# The temperature is 69.2°F, but it feels like 69.2°F
#
# Special Weather Statement for Los Angeles, CA
# ...THREAT OF MONSOONAL THUNDERSTORMS LATE TONIGHT THROUGH WEDNESDAY...
# A STRONG UPPER LEVEL HIGH PRESSURE SYSTEM CURRENTLY CENTERED OVER NEVADA
# WILL BRING INCREASING EAST TO SOUTHEAST FLOW OVER SOUTHERN
# CALIFORNIA. AS A RESULT...A SIGNIFICANT SURGE OF MONSOONAL MOISTURE
# WILL MOVE INTO SOUTHWEST CALIFORNIA LATE TONIGHT THROUGH WEDNESDAY.
# THE GREATEST THREAT OF SHOWERS AND THUNDERSTORMS WILL BE ACROSS THE
# MOUNTAINS AND ANTELOPE VALLEY LATE TONIGHT INTO TUESDAY. DUE TO THE
# EASTERLY UPPER LEVEL FLOW ON MONDAY...THERE WILL ALSO BE A SLIGHT
# CHANCE OF SHOWERS AND THUNDERSTORMS ACROSS MOST COASTAL AND VALLEY
# AREAS.
# THE DEEPER MONSOONAL MOISTURE WILL BRING THE POTENTIAL FOR BRIEF HEAVY
# RAINFALL WITH STORMS THAT DEVELOP ON MONDAY AND TUESDAY...ESPECIALLY
# ACROSS THE MOUNTAINS AND ANTELOPE VALLEY. WHILE STORMS ARE EXPECTED
# TO BE FAST MOVING...THERE WILL BE THE POTENTIAL FOR LOCALIZED FLOODING
# OF ROADWAYS AND ARROYOS. ON TUESDAY...THE THREAT OF THUNDERSTORMS IS
# EXPECTED TO REMAIN CONFINED TO THE MOUNTAINS AND DESERTS. WITH WEAKER
# UPPER LEVEL WINDS ON TUESDAY...STORMS WILL LIKELY MOVE SLOWER. AS A
# RESULT...THERE WILL BE AN INCREASED THREAT OF FLASH FLOODING.
# IT WILL NOT BE AS HOT ACROSS MUCH OF THE REGION TOMORROW DUE TO THE
# INCREASED MOISTURE AND CLOUD COVERAGE...WITH INTERIOR SECTIONS
# GENERALLY REMAINING IN THE 90S. HOWEVER...THERE WILL BE A
# SIGNIFICANT INCREASE IN HUMIDITY ON MONDAY THAT WILL CONTINUE TO
# BRING DISCOMFORT.
# ANYONE PLANNING OUTDOOR ACTIVITIES IN THE MOUNTAINS AND DESERTS
# DURING THE NEXT FEW DAYS SHOULD CAREFULLY MONITOR THE LATEST
# NATIONAL WEATHER SERVICE FORECASTS AND STATEMENTS DUE TO THE
# POTENTIAL HAZARDS ASSOCIATED WITH THUNDERSTORMS.
#             Created: July 13 at 10:50pm EDT
#             Expires: July 14 at 7:00pm EDT
#
# Ick! The humidity is 85%
# The nearest storm is 18 miles NE away
# The wind speed is 3.96 mph SE
# The cloud coverage is 35%
# The visibility is 9.58 miles
# The pressure is 1012.99 mbar

Makefile Usage

$ make help
all                            Runs a clean, build, fmt, lint, test, vet and install
build                          Builds a dynamic executable or package
clean                          Cleanup any build binaries or packages
cross                          Builds the cross compiled binaries, creating a clean directory structure (eg. GOOS/GOARCH/binary)
fmt                            Verifies all files have men `gofmt`ed
install                        Installs the executable or package
lint                           Verifies `golint` passes
release                        Builds the cross compiled binaries, naming them in such a way for release (eg. binary-GOOS-GOARCH)
tag                            Create a new git tag to prepare to build a release
test                           Runs the go tests
vet                            Verifies `go vet` passes

Analytics