Wednesday, October 23, 2024

Back from the Brink

I have my weather website running again.  It was a major PITA to get things going.  I am partially to blame for not having a good backup system in place.  But since it is such a hassle to get things working, when I finally do, I'm almost afraid to mess with it.

As previously mentioned, I believe the SD card on the Raspberry Pi failed.  It is actually not that easy to know for sure, but the Pi itself seems OK with another card installed.

So the challenge was to get Weewx up and running again with a new SD card.  I had to reload all of the required software.  Of course the latest version of Weewx was 5.1, and I had been running 4.10.  Here is a list of software I had to load:

  • Weewx
  • Apache
  • DDClient (for dynamic DNS)
  • Fswebcam
Settings for those often had to be added, as well as adding some udev rules to workaround the flakey Davis serial to USB converter, setting all kinds of permissions.  Weewx 5 also had some major changes to get used to.  So I spent a ton of time visiting the Weewx website and guides.

Unfortunately, many needed files were on the "bad" microSD card.  I figured I probably could recreate most of what I needed, except for 16 years of weather data stored in a sqlite database.

I tried so many things, I can't remember most of them.  The files I needed could not be read by windows.  I attempted to read the files on the Raspberry Pi using a SD to USB adapter with no luck.  I eventually found some software (and tried many) that would run on Windows such that I could recover some files from the SD card.

Sadly, the main one, the weather database, initially appeared corrupted for both Weewx and SQLite.  Again, I found another tool that "recovered" the database, though this whole process took hours and hours of Google searches and trial-and-error.

Eventually I had a usable database again, but missing some data.  The last few years of data was missing, or partially missing (some months).  Again, I was able to get most of that back.  Still waiting on the image graphs for the last year, not sure when they are generated.

In all, it was the better part of two days work.  I'm no Linux expert, so I basically need to refamiliarize myself to the basics every time I need to delve into it.  

It seems like there is some major problem/failure/etc that happens every couple of years that requires a huge effort to overcome.  At least it hasn't cost me anything but time, so far.

Tuesday, October 22, 2024

Raspberry-Pi Issues

 For a couple of days I was unable to access my web page.  I was getting similar errors off and on, so I thought maybe it was a temporary problem.  Finally, I checked the Raspberry-Pi and there were some problems.  I had a desktop screen, but most everything was missing.  I pulled up a command window, and it didn't seem to recognize any commands.  I really was confused as to what was going on, so I did a power shutdown.

After powering back up, it seemed to like it was trying to boot, but eventually the screen just went black.  I did a few recommended checks on the Pi, and it seemed it was OK.  Then I installed a new SD card with a fresh version of Raspian and it booted up fine.

It indicates that the SD card is corrupted, which I understand is a common issue.  I don't think I ever got an automatic backup working right, so no backups stored anywhere.

My next step was to try and recover files from the SD card.  That is in process.  But I also will need to reload all the software to the new SD card and get everything configured.

So no WX for a few days.

Friday, July 21, 2023

New Temp/Humidity Sensor Installed

After several nights of working, the sensor had a fairly lengthy period of no readings of several hours on the 18th and 19th of July.  So it was clear that it did not suddenly fix itself.  The new sensor arrived on July 19th, and I was able to install it that afternoon.

So far, so good.  Hopefully the problem is resolved and I can get another 15 years out of this one!

Wednesday, July 12, 2023

Intermittent - Now Worked 5 Nights Straight

 So of course the next day after ordering the new sensor, it has worked through the night for 5 days.  Not that it would have changed my mind, though I might have held off a few more days.  It did drop out for somewhat shorter periods for a couple of days, but now has had a streak of solid readings.  It might help that the nights are short, as seems voltage related, but other sensors are OK.

I still feel it is intermittent, and probably on the way to a complete failure.  The new sensor just shipped today from California, so it won't be here until next week.  It will give a few more days of readings so it will be at least interesting to watch.

Thursday, July 6, 2023

Ordered Temp/Humidity Sensor

The first night after complete disassembly and cleaning of the ISS, the temperature and humidity worked through the night.  Still,  I wasn't too hopeful the problem was resolved.

I had done some research and found this website:  https://www.manula.com/manuals/pws/davis-kb/1/en/topic/general-please-read

This is not a Davis site, but I believe a UK reseller of Davis products.  But they have supplied a good amount of information, better in many ways than Davis.

They indicate that a temperature/Humidity Sensor has an average life of about 5 years, less if near the ocean.  They also say with maintenance, a Davis weather station can expect to last about 10 years with some maintenance.

Interesting that other than replacing the super capacitor once for a failure, my other failure was the console, always indoors and out of the weather.

Since my anemometer seems to be performing better with some lubrication, I decided to order a new temperature/humidity sensor.  I'm sure I will also need a ISS Cover/Solar cell in the near future.  Hopefully no other failures for a few years.

Tuesday, July 4, 2023

Complete Disassembly of ISS

 After another night of Temp/humidity not reporting, I completely disassembled the ISS and looked it over.  I did not see anything that looked wrong, but I cleaned it up.  I didn't see anything with the temp/humidity sensor obvious, but I also cleaned the cover and filter screen.

While I was at it, I lubricated the anemometer and wind vane.  The wind vain was definitely not turning easily.  The anemometer wasn't bad.  Though it certainly seemed like under 5 mph it was not spinning the last couple of years.

Since the rain gauge and wind speed/direction seem to be working, things are pointing to the temp/humidity sensor.  It is as if it works, but when the voltage drops below some level where it should work, it doesn't work.

I am still struggling with whether to spend $60 on a new sensor.  I would if I knew the station would work for several more years, but the anemometer is marginal, and the solar cell / ISS cover looks like it has been out in the weather for 15 years.

The Ambient WS-2902 I have been looking at requires some magic to work with Weewx.  Not sure I want to attempt a major new project.

As much as prices for the Davis weather stations has increased the last 15 years, and the trouble I have had with my Vantage Pro 2, buying a Vantage Vue ISS would be plug and play with my current setup.

Monday, July 3, 2023

Well That Didn't Help

 A couple of days after replacing the "Super Capacitor", the temperature and humidity readings are still dropping out intermittently.  Mostly at night, but this morning they stopped for an hour or two after sunrise, though I think it was mostly overcast.

So I wondered if the ISS battery was really OK.  Weewx reports "signal quality" of the ISS and actually graphs it, and I wasn't seeing any issues.  It also reports a "Battery Status" in real time (at the 2.5 sec update rate, though web page only refreshed every 5 minutes.  It normally reports just as "OK".  I assume if there is an issue, it would report "Not OK" or something similar.

Then today I spent some time trying to figure how to know if the Battery Status ever was not OK, like in the middle of the night.  I didn't think so, but wanted to know. I search through some logs, but didn't see any battery issues.  Then I did some searching in the Weewx Google Groups pages, and eventually saw that one could make Weewx create an alarm send an email if battery was ever low, or not OK.

That was not quite so easy.  It took me several hours to get it working, but I believe it will now send me an email if the ISS battery level drops below OK.

One other bit of information that really should answer the question, is that it appears wind speed and direction is still being reported.  A least it was yesterday.  Today shows no wind speed, but maybe it is just calm, or very low.  I don't think the anemometer works great below 5 mph.

Then tonight, just after dark temp and humidity have stopped reporting.  It is looking like maybe it is just a temp/humidity sensor issue.  Looking on line, I see some people say they have to replace them every 3 or 4 years.  I'm at 15, so maybe I'm lucky?

The Vantage Pro 2 is supposed to be one of the best personal weather stations.  I have had quite a few issues with mine, and it looks like I will need to spend some more to keep it running.  The Temp/Humidity sensor is $60.  Parts to replace anemometer bearings are not available for my vintage unit, so a whole new one is $184 as of today.  A complete weather station from Ambient that has similar features is less than $200.  The vantage Pro 2 updates readings more often, and it has a better wireless transmitter.  But it is not a bulletproof station.  It needs regular upkeep and parts will fail.  Another option is to buy a slightly lower cost Vantage Vue ISS only.  My console will work with it.  It's around $300.

A different station will mean doing some updating to make it work with Weewx.  Maybe I could sell the Vantage Pro 2 console and logger/pc interface.

Maybe I'll just buy the sensor and hope everything else lasts a few more years.

Back from the Brink

I have my weather website running again.  It was a major PITA to get things going.  I am partially to blame for not having a good backup sys...