diff --git a/doppler.sh b/doppler.sh new file mode 100755 index 0000000..3d079b2 --- /dev/null +++ b/doppler.sh @@ -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}"