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`"
##############################################################



ebook:
Full Size
Jeep Buyer's
Guide
ebook:
Practical Suggestions
for Microsoft
Windows
Linux Tackles Microsoft
12 hour Video Course by john:
The Art of Linux System Administration
published by O'Reilly Media
Study Guide for the LPIC-2 Certification Exams
search for:
on the internet, or:
JohnMeister.com-fotos
LinuxMeister-Linux
BibleTech-
Bible overview


An overview of Biblical history:
"Promises and Prophets"

Wagoneers

FULL SIZE JEEPS

JeepMeister
"Jeep is America's
only real sports car."
-Enzo Ferrari


MeisterTech
Diesels +

One Page Overview of Linux Commands

click for an image of the 5 essential Linux commands

An Intro to Linux
AMSOIL product guide,
or, AMSOIL web, or 1-800-956-5695,
use customer #283461

Amsoil dealer since 1983
purchase AMSOIL
at Midway Auto on SR9 in Snohomish,
or at Northland Diesel in Bellingham, WA


SJ - 1962-1991

XJ - 1984-2001

WJ - 1999-2004

KJ - 2002-2007

WK - 2005-2010

Find the recommended
AMSOIL synthetics
for your Jeep

CJ-10A - 1984-1986

Jeepsters

MJ - 1984-1992

Willys - 1946-1965

Other Jeeps (FC)