#!/usr/bin/env bash # ww (worldweather): Displays weather vitals for multiple locations. # Requires 'weather' to be in your PATH. # Personal tool for quick weather lookups, polished for public distribution. # --------------------------------------------------------------------------- # Example usage (ready to run): # --------------------------------------------------------------------------- weather -f -city "New York" -state NY -country US weather -c -city Beijing -country CN weather -f -city "Marble Bar" -country AU weather -c -city Tokyo -country JP weather -c -city Verkhoyansk -country RU weather -f -city "Dawson City" -state YT -country CA weather -f -city Amsterdam -country NL weather -c -city Springfield -state MB -country CA echo # blank line for readability on output # --------------------------------------------------------------------------- # # Important: for locations with duplicate city names (ex: Springfield) # # Use 2-letter state/province codes for US and Canada (ex: NY, MB) # # For other countries, a region/province name may be necessary, using # official OpenStreetMap naming (ex: Moscow Oblast, Krasnoyarsk Krai) # # Examples: # # US : NY, MN, WY # Canada: YT, MB # Russia: Moscow Oblast, Krasnoyarsk Krai # Australia: NSW, QLD # # ---------------------------------------------------------------------------