February 01, 2002
Earlier this afternoon, I noticed the Accipiter.org weather center wasn't displaying any data for my area. I've seen this problem before; sometimes the National Oceanic & Atmospheric Administration sensor information doesn't receive data for the city of Marietta, which is the data that Accipiter.org uses for the weather center. Since the script looks for the appropriate entry (a line starting with MARIETTA), the variables aren't set if the appropriate data can't be found. And of course, if the variables aren't set, the weather center can't display the data.
So I made a modification to the script that, if in the event it cannot locate environmental data for Marietta, it will look for the general data for Atlanta instead. That way, there won't be any dead variables. (Unless, of course, the NOAA goes down. In that event, it'll just use the most recent information available.)
(14:58)
Search :: Previous Entry :: Next Entry