You're leaving out a lot of details, in particular, what you mean by "...this database and the data to be imported..."
Inside a WeeWX database is actually two databases: the "archive" database, and the "daily summaries" database. You can't just add new data in the former (using SQL INSERT statements) without updating the latter. They have to be kept in sync. You have two choices:
- Depending on what you're trying to do, you might be able to use one of the WeeWX tools to do the import, which may be able to keep the daily summaries up to date.
- Alternatively, and perhaps the easiest, just drop the daily summaries and let WeeWX rebuild them. See wee_database --drop-daily.
-tk