Jakub Wajs 2017
Weather Api Bash Client for apixu.com - script for downloading the weather data for chosen location (from https://www.apixu.com/) and print it in terminal.
./weather.sh [OPTION]...
Replace phrase APIXUKEY by your own generated key. You can do it for free at https://www.apixu.com/
-
-l [CITY] determines the location for which weather data should be displayed. Default location is set to Poznan.
eg. ./weather.sh -l London
-
-d (dynamic update) automatically updates weather data every 5 minutes and displays it. The script works until the SIGINT signal is sent.
eg. ./weather.sh -d
-
-f shows data in american scales (eg. temperature in Fahrenheit)
eg. ./weather.sh -f
The script downloads weather data from apixu.com and saves it in temporary file. Then weather info is displayed in the terminal. Data is updated every 5 minutes (when script is running, eg. with -d option) or at the script start.