blob: 195ceb3a778471b4ff5cc4e4cf2fcd2e759cb78c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
## 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
if [[ ${$(du -b $file)[1]} == 0 ]] {
echo "Error"
return 1
}
mplayer -loop 0 $file
rm $file
|