The thread you linked describes the process to (1) have WeeWX use a clean database and (2) change the driver from simulator to FineOffsetUSB (fousb). Step 3 was all about the latter, it has nothing to do with clearing the database. If you simply want to have WeeWX start with a clean database then the easiest thing to do is to stop weewx, delete the database file (a default install will use database weewx.sdb located in either /var/lib/weewx or /home/weewx/archive) and then restart WeeWX. WeeWX will automatically create a clean database during startup. Unless you have manually changed the structure of your archive this will give you a clean database with the same structure (schema) as the original.
Of course if you want to keep the old database/data you should make a copy of the database before deleting. Gary On Wednesday, 5 May 2021 at 05:14:38 UTC+10 [email protected] wrote: > Have started operation of WeeWX with the Simulator. > Now switched to Tempest, and getting real data. > > The thread > https://groups.google.com/g/weewx-user/c/NJ_XFLbWrNc/m/fpRqGIBWBQAJ > describes a method to transition the database(s) from Simulator to 'Real' > sensor by defining completely new database(s). > But what is the easy way to *wipe *the data in the database(s) *while* > maintaining the datastructure? > In other words: > can the goal be achieved with less action than redefinition according to > steps 2.+3. in the quoted message? > -- 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 [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/weewx-user/53cc57b3-946c-4c63-a03f-be2b443386fdn%40googlegroups.com.
