Home > Uncategorized > Weather Alias

Weather Alias

I use a quick alias to get weather conditions and a 7-day forecast from NOAA. I found the links for my current location at http://mobile.weather.gov/.

$ grep weather .bashrc
alias weather='(w3m -dump -cols 80 "http://mobile.weather.gov/port_mp_ns.php?select=3&CityName=Minneapolis&site=MPX&State=MN&warnzone=MNZ060"; w3m -dump -cols 80 "http://mobile.weather.gov/port_mp_ns.php?select=1&CityName=Minneapolis&site=MPX&State=MN&warnzone=MNZ060") | less -F'

I’d invest more time in making the output less wordy, but the layouts at http://www.weather.gov/ seem to change quite a bit.

Advertisements
Categories: Uncategorized Tags: , ,
  1. No comments yet.
  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: