Bash script to view weather radar gifs for Canadian cities
To change the options for the script, the user must specify the options in the file located in ~/.config/cwgif/cwgif.conf
There, the user can modify the following three options:
To change the city, replace the default with your chosen city. The input is case-insensitive and the only requirement for the program to work is to make sure the inputted value is separated by a space and the last word on its line. The supported cities at this moment are:
- Toronto
- Montreal
- Vancouver
- Calgary
- Edmonton
- Ottawa
- Winnipeg
- Quebec
- Halifax
Depending on the season, the user can change to see the radar for rain or snow. For this field to be accepted, it must be IN ALL-CAPS. Therefore, the two options possible are:
- RAIN
- SNOW
This is fairly straightforward: input the amount of seconds for each image to be displayed. Decimal numbers are supported, with the default being 0.3 seconds per image.
The dependencies for this script are: mpv
and youtube-dl
For all distributions, make the included install.sh
script executable and RUN IT AS NON-ROOT USER. This ensures the configuration file is placed in the right place. An example to install is shown below:
git clone https://github.com/JaGoLi/cwgif.git && cd cwgit
chmod +x install.sh
./install.sh