diff options
Diffstat (limited to 'etc/functions')
-rwxr-xr-x | etc/functions/rrad | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/etc/functions/rrad b/etc/functions/rrad new file mode 100755 index 0000000..21cda6d --- /dev/null +++ b/etc/functions/rrad @@ -0,0 +1,8 @@ +## vim:ft=zsh +typeset url=$(printf http://www.wetteronline.de/daten/radar/dnrw/%s/std_%02d%02d.gif \ + $(date +%Y/%m/%d) $(( $(date +%H) - 2)) $(( $(date +%M) / 15 * 15 )) ) +typeset file=$(mktemp /tmp/rrad.XXXXXXX) + +curl -s $url > $file +mplayer -loop 0 $file +rm $file |