New Script: doppler.sh: check local radar map
This commit is contained in:
parent
a67d23f6cf
commit
167eaf8c95
14
doppler.sh
Executable file
14
doppler.sh
Executable 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}"
|
Loading…
x
Reference in New Issue
Block a user