grabber.sh updated

This commit is contained in:
Peter Reichart 2024-05-14 12:02:43 +02:00
parent e6dc071d8b
commit d735f9860a

14
grabber.sh Normal file → Executable file
View File

@ -5,7 +5,7 @@
# foto-webcam.eu Grabber
#
CAMS="nebelhorn"
CAMS="fellhorn"
YEARS="2024"
MONTHS="05"
DAYS="09 10 11 12"
@ -17,6 +17,7 @@ MINUTES="00 10 20 30 40 50"
for CAM in $CAMS
do
mkdir -p ./pics/${CAM}
for YEAR in $YEARS
do
for MONTH in $MONTHS
@ -28,11 +29,12 @@ do
for MINUTE in $MINUTES
do
URL="https://www.foto-webcam.eu/webcam/${CAM}/${YEAR}/${MONTH}/${DAY}/${HOUR}${MINUTE}_hu.jpg"
OUTFILE="./${CAM}-${YEAR}-${MONTH}-${DAY}-${HOUR}${MINUTE}_hu.jpg"
echo $URL
echo $OUTFILE
done
done
OUTFILE="./pics/${CAM}/${CAM}-${YEAR}-${MONTH}-${DAY}-${HOUR}${MINUTE}_hu.jpg"
#echo $URL $OUTFILE
wget -nv -nc -O $OUTFILE $URL
done
done
find -type f -size 0 | xargs -I"###" rm -v "###"
done
done
done