Unfortunately for a WU import wee_import imports whatever WU provides, there is no (simple) way to limit which fields are imported. There are a couple of workarounds (untested) that should work.
1. Tell WeeWX to force the UV value to None (needs to be done before running wee_import):
- stop WeeWX
- before running wee_import add an entry to the [StdCalibrate] [[Corrections]] stanza of weewx.conf as follows:
[StdCalibrate]
[[Corrections]]
....
UV = None
- save weewx.conf
- run wee_import and import the WU data
- remove the UV = None correction added earlier
- restart WeeWX
2. Manually remove the UV data using some SQL (needs to be done after running wee_import):
- stop WeeWX
- make a backup copy of the database
- if not already installed install the sqlite3 utility:
$ sudo apt-install sqlite3
(or as appropriate for your OS)
- open your database with sqlite3:
$ sqlite3 /home/weewx/archive/weewx.sdb
or
$ sqlite3 /var/lib/weewx/weewx.sdb
depending on your WeeWX install
- execute the following SQL statement (setting the date and time range accordingly) to set UV to None for the interval concerned
sqlite> UPDATE archive SET UV=NULL WHERE UV IS NOT NULL AND dateTime>strftime('%s', '2022-10-01 13:00:00') AND dateTime<=STRFTIME('%s', '2022-10-21 09:15:00');
sqlite> .quit
- update the daily summaries:
$ wee_database --rebuild-daily --from=2022-100-01 --to=2022-10-21 (again replacing dates with the required date range)
- restart WeeWX
- WeeWX should update any web pages with the new data on the next report cycle, plots will eventually update (you can force all plots to be regenerated on the next report cycle by deleting all plots of the WeeWX machine). NOAA format reports will need to be deleted from the earliest month/year with incorrect UV data through until the current month/year to force regeneration
Gary