Gets plaintext weather info, useful for piping into scripts.

lotus d3667f5357 added more detail into error messages 5 months ago
.gitignore a886c23e64 fixed makefile, updated readme, added gitignore 7 months ago
LICENSE.md 7078b242a1 updated readme and license 6 months ago
README.md 7078b242a1 updated readme and license 6 months ago
makefile a886c23e64 fixed makefile, updated readme, added gitignore 7 months ago
simple-weather.1 d43a00501b first commit 10 months ago
simple-weather.rb d3667f5357 added more detail into error messages 5 months ago

README.md

simple-weather

logo

License

Installation

You need to have a Ruby interpreter installed to use this tool

Simply run:

# as root
make install

# to uninstall
make uninstall

The reasoning behind this tool is that it provides a way to get the bare minimum of information you need. All the CLI weather tools I've used, while nice, have not been very 'script-friendly'. This tool gives you only the bare minimum of what you ask for. Each item is separated by a new line. I've intentionally left out some items present in the OpenWeatherMap reponse simply because most of the time I never look at them.

Note: You will need to sign up for a free OpenWeatherMap API key in order to use this tool

Usage

sw -t -l seattle -k myapikeyhere           # get the temperature in seattle"
sw -c -l seattle -k myapikeyhere           # get the 'condition' i.e. sunny, cloudy, etc."
sw -w -l seattle -k myapikeyhere           # get the windspeed"
sw -tcw -u m -l seattle -k myapikeyhere    # get all three, and use metric units"
sw -h                                      # show this help message"
sw -v                                      # show version"

# note the order of arguments does not matter

Limitations

  • No zip code support
  • English only
  • Metric and Imperial units only (no Kelvin)

License / Disclaimer

This project is licensed under the 3-clause BSD license. (See LICENSE.md) I take no responsibility for you blowing stuff up. Artwork courtesy of AcidBeast (CC 3.0 BY)