This extension imports WLK files into WeeWX by emulating a driver. This has the advantage of subjecting the imported data to the same processing pipeline as real data, including any extensions.
- Python 3.7+
- WeeWX V4.6+
This extension requires modifying your weewx.conf file. Rather tha modify your
only copy of the file, it's safer to make a copy, then use that. For example:
cd ~/weewx-data
cp weewx.conf weewx-import.conf The extension is installed like any other WeeWX extension, except that you should use the config file created above:
weectl extension --config=~/weewx-data/weewx-import.conf install https://github.com/tkeffer/weewx-wlk/archive/refs/heads/master.zip -
Stop
weewxd. -
Edit the copy of
weewx.confto set the driver to the WLK importer. Under the[Station]stanza, change the linestation_typeso it reads:station_type = WLK -
In the
[WLK]stanza, set optionwlk_filesto the pathway to the WLK file(s) that you intend to import. Wildcards can be used. The tilde symbol (~) can also be used. For example:[WLK] wlk_files = ~/Downloads/2018-??.wlkIn this example, all WLK files with 2018 dates would be imported. Substitute as necessary.
-
Run
weewxddirectly from the command line, using the config file that you created. Typically, this looks like:weewxd --config=~/weewx-data/weewx-import.confMonitor the output to make sure that the import is successful. When the import is complete, it will end with a not-implemented error that looks like this:
NotImplementedError: WLK import complete. Ignore this exception.This is the normal end of the import process.
-
Restart
weewxd.
WeeWX is licensed under the GNU Public License v3.
© 2009-2026 Thomas Keffer, Matthew Wall, and Gary Roderick