Use old database in new weeWX install.

44 views
Skip to first unread message

Patrick Mendiuk

unread,
Jun 8, 2023, 6:43:01 PM6/8/23
to weewx-user
I am trying to use an existing database with a new weeWX install.  I copied the existing database into /var/lib/weewx and restarted weeWX.  I then ran wee_debug --info and I see: 

Archive info
  Database name:        weewx.sdb
  Table name:           archive
  Version               4.0
  Unit system:          1 (US)
  First good timestamp: 2023-06-07 13:00:00 PDT (1686168000)
  Last good timestamp:  2023-06-08 15:15:00 PDT (1686262500)
  Number of records:    311
  weewx (weewx.conf) is set to use an archive interval of 300 seconds.
  The station hardware was not interrogated in determining archive interval.

On the original weeWX install I see this when I run wee_debug:

Archive info
  Database name:        weewx.sdb
  Table name:           archive
  Version               2.0
  Unit system:          1 (US)
  First good timestamp: 1969-12-31 16:01:00 PST (60)
  Last good timestamp:  2023-06-08 15:37:00 PDT (1686263820)
  Number of records:    2160656
  weewx (weewx.conf) is set to use an archive interval of 60 seconds.
  The station hardware was not interrogated in determining archive interval.

Is there a way I can convert the old database and have all the old history visible in the new weeWX install?


Tom Keffer

unread,
Jun 8, 2023, 7:09:02 PM6/8/23
to weewx...@googlegroups.com
Obviously, this is not the same database. Double check your steps. You can also start weewxd, then look at the log. Perhaps it's not using the database you think it is using?

Your original database has some bad timestamps, probably from a bad clock. It's easy enough to get rid of them. See the wiki guide Deleting unwanted records.



--
You received this message because you are subscribed to the Google Groups "weewx-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email to weewx-user+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/weewx-user/3486b127-ef6c-498c-80d1-686cbaad4ecfn%40googlegroups.com.

Patrick Mendiuk

unread,
Jun 8, 2023, 7:43:19 PM6/8/23
to weewx-user
Thanks,
I had to change permissions on the file and directory.  I see the correct number of records now.  Now I need to figure out how to get the Belchertown skin records to use the entire database. 

Reply all
Reply to author
Forward
0 new messages