From 167eaf8c959a9791036580858cd801d6d085d62e Mon Sep 17 00:00:00 2001 From: mollusk Date: Wed, 17 Jun 2020 06:14:34 -0700 Subject: [PATCH] New Script: doppler.sh: check local radar map --- doppler.sh | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100755 doppler.sh 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}"