#!/bin/bash

# weather_radar_600_mile_animation_0.0.1.sh

# 2007-01-11
# Mark W. Giles
# I took Duane's animation script and added a 1 second delay to the xview
# parameters for the animation to work on Ubuntu Dapper.

for i in `seq 1 5` 
do
	wget -q http://image.weather.com/looper/archive/us_tlh_closeradar_plus_usen/${i}L.jpg
	PERCENT_COMPLETE=$(($i * 20))
	
	osd_cat -b percentage -p top -A center -c green -l 1 -d 2 -P $PERCENT_COMPLETE &
	#echo $PERCENT_COMPLETE
done

killall osd_cat

#xview *L.jpg -goto 1L.jpg &> /dev/null
xview *L.jpg -quiet -global -delay 1 -goto 1L.jpg

rm *L.jpg
