Wayne <
nm73wee...@fastmail.com> writes:
> I have been runnning weewx on a Raspberry Pi 4 in simulator mode for
> over a week gaining confidence in it's (and my) ability. I am able to
> generate reports, transfer files to a web server and successfully
> imported a Davis WeatherLink (.wlk) file. The next step is to
> cut-over to my actual weather station hardware and go "live".
Sounds like you are doing the right level of planning.
You did not explain what you are doing now to process and stre
observations. Skins and web servers are good to make work, but as I can
tell you understand it is all about safely storing the data in the
database.
I am assuming that a web publishing outage is not a big deal and the
point is not to lose data.
> My weather station hardware is an older Davis Weather Monitor II which
> will talk to the Pi over an RS-232 link via an RS-232 HAT. The
> Weather Monitor II has the Davis data logger hardware which is capable
> of storing upwards of 1,500 archive records.
Are you sure that the logger the same protocol as the loggers that go
with the Vantage Pro and Pro2? Is it the very same logger model#? To
me this is the biggest risk in your approach.
> My plan to migrate from Davis WeatherLink to weewx is as follows:
>
0. Double check time setting, time zone, and other settings on the
station. Replan if not ok. Probably you are using 5 minute interval;
if not think about what interval and why. It's not magic, but it's
pretty normal to use 5 minutes.
> 1. Delete the current weewx.sdb file, change drivers from simulator to Vantage, connect the weather station serial line and start weewx.
1.A. Watch the log file for reading the archive records. Expect it to
take a while (minutes not 4 hours) to process them.
> 2. After some number of archive data captures, stop weewx and let the
> Monitor II continue to store observation records to its internal data
> logger.
2.A. Check the weewx.sdb file to see if archive records have been stored
and look at the values. Look at the skins, more to check the archive
records than the skins.
> 3. Import historical data into the new weewx.sdb database.
weewx should and I think will insert every record in the logger when it starts.
So you need to either prepare an import file cut to the right place or
use an import method that gets this right. wee_import probably does,
given that weewx does things right :-)
Also you could import and start with no connection and see if things
seems ok other than "can't talk to station" errors.
Beware of imported records being exactly the same or not as the ones you
retrieve form the logger. I think it's just about timestamp, but think
about this.
> 4. Restart weewx.
>
> For this plan to work, the weewx driver needs to be smart enough to
> recognize and read multiple timestamped records from the station data
> logger (not just the current record). Depending on the length of time
> the station is "offline" there could be tens or even hundreds of
> stored logger records.
Yes, for the logger with VP/VP2 this is normal. It's one of the reasons
why they are such great stations: after you get power back N days later
you process those records and your history is continuous. Mine does
this right every power failure (VP2).
> Is the Vantage driver able to read multiple such saved logger records
> which weewx then loads into the database? I have not seen it
> explicitly stated that the driver has the ability to retrieve multiple
> stored records from a logger. My migration plan depends upon this
> capability.
Yes, for VP/VP2 logger. I am not sure your logger is the same. But I
have not reason to think it is different either. I just haven't used
any pre-VP hardware and only got a logger in December 2017.