Monthly Archives: July 2012

NOAA & Archive Data

After thinking about it, I finally set up symbolic links so when you goto the base wview site inside the Gloucester network you can find NOAA records, now I just have to figure out how to ftp them to danchase.net
For posterity the command was: ln -s /var/lib/wview/img/Archive/ Archive  run from inside /var/www

BIG images & NOAA

Before I forget, I figured out how to make BIG images in wview.  In the days to fast Internet access and speedy processors a 300×150 image is kinda pathetic, it doesn’t show adequate detail, and since I can’t figure out how to get the loop data out of wview, I can’t get detailed data from wunderground even though there are all sorts of cool graphs there. Anyway, the file is /etc/wview/graphics.conf and there are a couple of different lines to adjust both the graphs and dials:
# Width of bucket image
BUCKET_IMAGE_WIDTH=240

# Height of bucket image
BUCKET_IMAGE_HEIGHT=480

# Width of bucket itself
BUCKET_WIDTH=144

and under ‘line charts’
# Width of image
CHART_WIDTH=600

# Height of image
CHART_HEIGHT=360

and there’s a couple of more lines but you get the idea.

Also what I have to play with is the NOAA charts.  This is what comes up on the wview main page, or on my site if you click on the image and it has all the nifty dials.  On the bottom of that page there is a place to download a text file of the day, month, or yearly archive data.  The problem is, it’s not activated on most of the boxes, and the ones that are do not upload to the danchase.net ftp site.

Plum Cove back up!

After over two weeks of being down, I finally got over here to plug the server back in.  There great part about the Davis is the archive memory so I didn’t lose all that much data, just from 7/4 to 7/8, since it appears it only stored from 7/9 to now. I cam over on 7/5 to check it out since there had been a power outage that also took out Vets.  Turns out the voltage to most of the school, but not all, was only 70 volts.  A fuse had tripped on the pole outside, giving the school only one phase.  Why we got 70 and not just half the school being off I have no idea.  Anyway, the computer ran OK on 70 volts, but the big POE network switch it was connected to did not.  I also unplugged the computer as a precaution so I wouldn’t have to come back to change a power supply or whatnot. Today was the first chance I got to plug it back in (in a different room since the one it was in was being waxed).

For the record here is my recovery procedure:
The logs shown through webmin (/var/log/wview.log) said wview wasn’t starting becuase of pid files. So I ran:
rm /var/lib/wview/*.pid
And started it up (I really should put that on a cron job when the computer starts up, it would solve some problems)
Next I ran wunderfixer to upload the data that I had but was not put on Wunderground:
/opt/wunderfixer-0.5.0/wunderfixer.py -f /var/lib/wview/archive/wview-archive.sdb -s KMAGLOUC13 -p (my password!) -d 2012-07-15 (and change the date and run it for everyday between 7/9 and today, including run it dateless for today’s data)