From ed77ef6f10bdd0e53015e7f77056b2bebd910cdd Mon Sep 17 00:00:00 2001 From: Emil Miler Date: Thu, 18 Jun 2020 09:02:29 +0200 Subject: [PATCH] Initial commit --- weathermap.sh | 5 +++++ 1 file changed, 5 insertions(+) create mode 100755 weathermap.sh diff --git a/weathermap.sh b/weathermap.sh new file mode 100755 index 0000000..d5e7835 --- /dev/null +++ b/weathermap.sh @@ -0,0 +1,5 @@ +#!/bin/sh + +address="http://portal.chmi.cz/files/portal/docs/meteo/rad/data_tr_png_1km/" +images=$(curl -s "$address" | grep -o 'pacz23\.z_max3d\.[0-9]\{8\}\.[0-9]\{4\}\.0\.png' | uniq | tail -5 | sed "s,^,$address," | tr "\n" " ") +mpv --loop --merge-files $images