New Script: doppler.sh: check local radar map

This commit is contained in:
mollusk 2020-06-17 06:14:34 -07:00
parent a67d23f6cf
commit 167eaf8c95

14
doppler.sh Executable file
View File

@ -0,0 +1,14 @@
#!/bin/sh
IMAGE_URL="https://radar.weather.gov/lite/N0R/FSX_loop.gif"
VIDEO_PLAYER=/usr/bin/mpv
if [[ ! -f "${VIDEO_PLAYER}" ]];then
echo "${VIDEO_PLAYER} not found"
echo "Please install it with your system's package manager"
notify-send "${VIDEO_PLAYER} not found" "Please install it with your system's package manager"
exit 1
fi
notify-send "Getting radar image" "please wait..."
${VIDEO_PLAYER} --loop=inf "${IMAGE_URL}"