Weather file is refershed every 60mins for the destination determined from host IP address. To use the service, you will need to configure the wttr_script, wttr_script.service, and wttr_script.timer with the instructions below:
wttr_script
- Confirm or create a
bin
folder in your$HOME
directory - Place wttr_script file in bin directory
- Run script to create a weather file that will hold the data for the weather
wttr_script.timer and wttr_script.service
- Save wttr_script.timer and wttr_script.service inside
$HOME
directory - Copy the files into your /etc/systemd/system directory -
sudo cp wttr_script.service /etc/systemd/system/wttr_script.service
andsudo cp wttr_script.timer /etc/systemd/system/wttr_script.timer
- Reload system daemons -
sudo systemctl daemon-reload
- Enable timer to run on boot -
sudo systemctl enable --now wttr_script.timer
Congratulations, your service is now installed!