|
JohnMeister.com Today's Date: |
![]() |
a script that uses wget to get real time weather data from various authoritative sources
#!/bin/bash
#####################################################################
# PRIMARY COMMAND USED: wget --no-http-keep-alive -q -nc url-to-image
# usage via crontab entry or manual execution: /home/luser/wx/LIVE/wx-urls.sh
# run hourly btwn 6 AM through 8 PM during flight tests.
##############################################################
# script created 20 January 2010 - run on SuSE Linux
# john meister, mstm, lab manager, linux instructor, webmaster
#####################################################################
# http://adds.aviationweather.gov/icing/icing_nav.php?icg_type=CIPSEVO&height=max&fcst_hr=00
# http://adds.aviationweather.gov/icing/displayIcg.php?icg_type=cipsevo&height=max&fcst_hr=00
# Maximum icing severity (1000 ft. MSL to FL300)
#
cd /home/luser/wx/LIVE
#
echo "starting wget process for wx info `date`"
wget --no-http-keep-alive -q -nc http://adds.aviationweather.gov/icing/displayIcg.php?icg_type=cipsevo&height=max&fcst_hr=00
until ls displayIcg.php\?icg_type\=cipsevo
do
sleep 2
done
mv displayIcg.php\?icg_type\=cipsevo `date +%d%b-%H%M`_MAX.gif
echo "first file transfer complete - first entry... wget in process "
#
#####################################################################
# http://adds.aviationweather.gov/icing/icing_nav.php?icg_type=CIPSEVO&height=010&fcst_hr=00
# http://adds.aviationweather.gov/icing/displayIcg.php?icg_type=cipsevo&height=010&fcst_hr=00
# Icing severity at 1000ft MSL
#
wget --no-http-keep-alive -q -nc http://adds.aviationweather.gov/icing/displayIcg.php?icg_type=cipsevo&height=010&fcst_hr=00
until ls displayIcg.php\?icg_type\=cipsevo
do
sleep 2
done
mv displayIcg.php\?icg_type\=cipsevo `date +%d%b-%H%M`_01K.gif
#
#####################################################################
# http://adds.aviationweather.gov/icing/icing_nav.php?icg_type=CIPSEVO&height=030&fcst_hr=00
# http://adds.aviationweather.gov/icing/displayIcg.php?icg_type=cipsevo&height=030&fcst_hr=00
# Icing severity at 3000ft MSL
#
wget --no-http-keep-alive -q -nc http://adds.aviationweather.gov/icing/displayIcg.php?icg_type=cipsevo&height=030&fcst_hr=00
until ls displayIcg.php\?icg_type\=cipsevo
do
sleep 2
done
mv displayIcg.php\?icg_type\=cipsevo `date +%d%b-%H%M`_03K.gif
#
#####################################################################
# http://adds.aviationweather.gov/icing/icing_nav.php?icg_type=CIPSEVO&height=050&fcst_hr=00
# http://adds.aviationweather.gov/icing/displayIcg.php?icg_type=cipsevo&height=050&fcst_hr=00
# Icing severity at 5000ft MSL
#
wget --no-http-keep-alive -q -nc http://adds.aviationweather.gov/icing/displayIcg.php?icg_type=cipsevo&height=050&fcst_hr=00
until ls displayIcg.php\?icg_type\=cipsevo
do
sleep 2
done
mv displayIcg.php\?icg_type\=cipsevo `date +%d%b-%H%M`_05K.gif
#
#####################################################################
# http://adds.aviationweather.gov/icing/icing_nav.php?icg_type=CIPSEVO&height=070&fcst_hr=00
# http://adds.aviationweather.gov/icing/displayIcg.php?icg_type=cipsevo&height=070&fcst_hr=00
# Icing severity at 7000ft MSL
#
wget --no-http-keep-alive -q -nc http://adds.aviationweather.gov/icing/displayIcg.php?icg_type=cipsevo&height=070&fcst_hr=00
until ls displayIcg.php\?icg_type\=cipsevo
do
sleep 2
done
mv displayIcg.php\?icg_type\=cipsevo `date +%d%b-%H%M`_07K.gif
#
#####################################################################
# http://adds.aviationweather.gov/icing/icing_nav.php?icg_type=CIPSEVO&height=090&fcst_hr=00
# http://adds.aviationweather.gov/icing/displayIcg.php?icg_type=cipsevo&height=070&fcst_hr=00
# Icing severity at 9000ft MSL
#
wget --no-http-keep-alive -q -nc http://adds.aviationweather.gov/icing/displayIcg.php?icg_type=cipsevo&height=070&fcst_hr=00
until ls displayIcg.php\?icg_type\=cipsevo
do
sleep 2
done
mv displayIcg.php\?icg_type\=cipsevo `date +%d%b-%H%M`_09K.gif
#
#####################################################################
# http://adds.aviationweather.gov/icing/icing_nav.php?icg_type=CIPSEVO&height=110&fcst_hr=00
# http://adds.aviationweather.gov/icing/displayIcg.php?icg_type=cipsevo&height=110&fcst_hr=00
# Icing severity at 11000ft MSL
#
wget --no-http-keep-alive -q -nc http://adds.aviationweather.gov/icing/displayIcg.php?icg_type=cipsevo&height=110&fcst_hr=00
until ls displayIcg.php\?icg_type\=cipsevo
do
sleep 2
done
mv displayIcg.php\?icg_type\=cipsevo `date +%d%b-%H%M`_11K.gif
#
#####################################################################
# http://adds.aviationweather.gov/icing/icing_nav.php?icg_type=CIPSEVO&height=130&fcst_hr=00
# http://adds.aviationweather.gov/icing/displayIcg.php?icg_type=cipsevo&height=130&fcst_hr=00
# Icing severity at 13000ft MSL
#
wget --no-http-keep-alive -q -nc http://adds.aviationweather.gov/icing/displayIcg.php?icg_type=cipsevo&height=130&fcst_hr=00
until ls displayIcg.php\?icg_type\=cipsevo
do
sleep 2
done
mv displayIcg.php\?icg_type\=cipsevo `date +%d%b-%H%M`_13K.gif
#
#####################################################################
# http://adds.aviationweather.gov/icing/icing_nav.php?icg_type=CIPSEVO&height=150&fcst_hr=00
# http://adds.aviationweather.gov/icing/displayIcg.php?icg_type=cipsevo&height=150&fcst_hr=00
# Icing severity at 15000ft MSL
#
wget --no-http-keep-alive -q -nc http://adds.aviationweather.gov/icing/displayIcg.php?icg_type=cipsevo&height=150&fcst_hr=00
until ls displayIcg.php\?icg_type\=cipsevo
do
sleep 2
done
mv displayIcg.php\?icg_type\=cipsevo `date +%d%b-%H%M`_15K.gif
#
#####################################################################
# http://adds.aviationweather.gov/icing/icing_nav.php?icg_type=CIPSEVO&height=170&fcst_hr=00
# http://adds.aviationweather.gov/icing/displayIcg.php?icg_type=cipsevo&height=170&fcst_hr=00
# Icing severity at 17000ft MSL
#
wget --no-http-keep-alive -q -nc http://adds.aviationweather.gov/icing/displayIcg.php?icg_type=cipsevo&height=170&fcst_hr=00
until ls displayIcg.php\?icg_type\=cipsevo
do
sleep 2
done
mv displayIcg.php\?icg_type\=cipsevo `date +%d%b-%H%M`_17K.gif
#
#####################################################################
# http://adds.aviationweather.gov/icing/icing_nav.php?icg_type=CIPSEVO&height=190&fcst_hr=00
# http://adds.aviationweather.gov/icing/displayIcg.php?icg_type=cipsevo&height=190&fcst_hr=00
# Icing severity at FL190
#
wget --no-http-keep-alive -q -nc http://adds.aviationweather.gov/icing/displayIcg.php?icg_type=cipsevo&height=190&fcst_hr=00
until ls displayIcg.php\?icg_type\=cipsevo
do
sleep 2
done
mv displayIcg.php\?icg_type\=cipsevo `date +%d%b-%H%M`_19K.gif
#
#####################################################################
# http://adds.aviationweather.gov/icing/icing_nav.php?icg_type=CIPSEVO&height=210&fcst_hr=00
# http://adds.aviationweather.gov/icing/displayIcg.php?icg_type=cipsevo&height=210&fcst_hr=00
# Icing severity at FL210
#
wget --no-http-keep-alive -q -nc http://adds.aviationweather.gov/icing/displayIcg.php?icg_type=cipsevo&height=210&fcst_hr=00
until ls displayIcg.php\?icg_type\=cipsevo
do
sleep 2
done
mv displayIcg.php\?icg_type\=cipsevo `date +%d%b-%H%M`_21K.gif
#
#####################################################################
# http://adds.aviationweather.gov/icing/icing_nav.php?icg_type=CIPSEVO&height=230&fcst_hr=00
# http://adds.aviationweather.gov/icing/displayIcg.php?icg_type=cipsevo&height=230&fcst_hr=00
# Icing severity at FL230
#
wget --no-http-keep-alive -q -nc http://adds.aviationweather.gov/icing/displayIcg.php?icg_type=cipsevo&height=230&fcst_hr=00
until ls displayIcg.php\?icg_type\=cipsevo
do
sleep 2
done
mv displayIcg.php\?icg_type\=cipsevo `date +%d%b-%H%M`_23K.gif
#
#####################################################################
# http://adds.aviationweather.gov/icing/icing_nav.php?icg_type=CIPSEVO&height=250&fcst_hr=00
# http://adds.aviationweather.gov/icing/displayIcg.php?icg_type=cipsevo&height=250&fcst_hr=00
# Icing severity at FL250
#
wget --no-http-keep-alive -q -nc http://adds.aviationweather.gov/icing/displayIcg.php?icg_type=cipsevo&height=250&fcst_hr=00
until ls displayIcg.php\?icg_type\=cipsevo
do
sleep 2
done
mv displayIcg.php\?icg_type\=cipsevo `date +%d%b-%H%M`_25K.gif
#
#####################################################################
# http://adds.aviationweather.gov/icing/icing_nav.php?icg_type=CIPSEVO&height=270&fcst_hr=00
# http://adds.aviationweather.gov/icing/displayIcg.php?icg_type=cipsevo&height=270&fcst_hr=00
# Icing severity at FL270
#
wget --no-http-keep-alive -q -nc http://adds.aviationweather.gov/icing/displayIcg.php?icg_type=cipsevo&height=270&fcst_hr=00
until ls displayIcg.php\?icg_type\=cipsevo
do
sleep 2
done
mv displayIcg.php\?icg_type\=cipsevo `date +%d%b-%H%M`_27K.gif
#
#####################################################################
# http://adds.aviationweather.gov/icing/icing_nav.php?icg_type=CIPSEVO&height=290&fcst_hr=00
# http://adds.aviationweather.gov/icing/displayIcg.php?icg_type=cipsevo&height=290&fcst_hr=00
# Icing severity at FL290
#
wget --no-http-keep-alive -q -nc http://adds.aviationweather.gov/icing/displayIcg.php?icg_type=cipsevo&height=290&fcst_hr=00
until ls displayIcg.php\?icg_type\=cipsevo
do
sleep 2
done
mv displayIcg.php\?icg_type\=cipsevo `date +%d%b-%H%M`_29K.gif
#
#####################################################################
# http://adds.aviationweather.gov/phputils/wrap_image.php
# NOTHING TO CAPTURE????
#####################################################################
# http://adds.aviationweather.gov/icing/frzg_nav.php
# http://adds.aviationweather.gov/data/icing/ruc00hr_lvl_frzg.gif
# Lowest freezing level (100s of feet MSL)
#
wget --no-http-keep-alive -q -nc http://adds.aviationweather.gov/data/icing/ruc00hr_lvl_frzg.gif
until ls ruc00hr_lvl_frzg.gif
do
sleep 2
done
mv ruc00hr_lvl_frzg.gif `date +%d%b-%H%M`_ruc00hr_lvl_frzg.gif
#
#####################################################################
# http://radar.weather.gov/radar.php?rid=atx&product=N0R&overlay=11101111&loop=no
# http://radar.weather.gov/Legend/N0R/ATX_N0R_Legend_0.gif
# Base Reflectivity - SEATAC radar
#
wget --no-http-keep-alive -q -nc http://radar.weather.gov/Legend/N0R/ATX_N0R_Legend_0.gif
until ls ATX_N0R_Legend_0.gif
do
sleep 2
done
mv ATX_N0R_Legend_0.gif `date +%d%b-%H%M`_ATX_N0R_Legend_0.gif
#
#####################################################################
# http://www.goes.noaa.gov/ak1.html
# http://www.goes.noaa.gov/GIFS/ALIR.JPG
# GOES AK
#
wget --no-http-keep-alive -q -nc http://www.goes.noaa.gov/GIFS/ALIR.JPG
until ls ALIR.JPG
do
sleep 2
done
mv ALIR.JPG `date +%d%b-%H%M`_ALIR.JPG
#
#####################################################################
# http://www.goes.noaa.gov/browsw.html
# http://www.goes.noaa.gov/GIFS/WCIR.JPG
# GOES Western US
#
wget --no-http-keep-alive -q -nc http://www.goes.noaa.gov/GIFS/WCIR.JPG
until ls WCIR.JPG
do
sleep 2
done
mv WCIR.JPG `date +%d%b-%H%M`_WCIR.JPG
#####################################################################
date
mkdir `date +%d%b`
mv *.gif `date +%d%b`
mv *.JPG `date +%d%b`
echo "completed wget process for wx info `date`"
##############################################################
|
| ---> Major sections of JohnMeister.com - Linux, Jeep, Tech, Bible, Fotos:
---> LINUX - the operating system with a CLUE...
(Command Line User Environment),  
Linux at Lunch 2018 notes and a
Linux Overview
---> FOTOS by john
2018 fotos - updated often, listed by dates, general subject in title
the fotomeister... mildly serious with a camera since about 1974 - circa 1964...
---> JEEPS - "Jeep is America's only real sports car." -Enzo Ferrari
---> TECH INFO - Diesel, Nikon, VW, Mercedes, IH sections:
---> The Bible - truly, an all time best seller, a MUST READ! -
Read the Bible
in ONE Year, or just read a few chapters right here!
---> Promises and Prophets
a one page diagram of Promises-n-Prophets
...about the Word... from a few prophets:
---> ebooks by john on Linux, Windows and Jeeps - support this website, consider one of these books
---> NAVIGATION
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||