Thank for your reaction. I run the rebuild but it went in a slit second. Indeed the data was in the archive and i therefor tried an second import with only changing the dates. The first time it was confiirmed to be OK but there was no data in the archive. Again with only changing the dates i get the following message from the terminal.
eectl import --import-config=/var/tmp/wu.conf --from=2023-01-01T00:00 --to=2023-01-06T00:00
Using configuration file /home/avd/weewx-data/weewx.conf
Starting weectl import...
Observation history for Weather Underground station 'IVAUXS11' will be imported.
Using database binding 'wx_binding', which is bound to database 'weewx.sdb'
Destination table 'archive' unit system is '0x01' (US).
Imported records will not overwrite existing database records.
Missing derived observations will be calculated.
Observations timestamped after 2023-01-01 00:00:00 CET (1672527600) and up to and
including 2023-01-06 00:00:00 CET (1672959600) will be imported.
Starting import ...
Records covering multiple periods have been identified for import.
Period 1 ...
Unable to open Weather Underground station IVAUXS11 or HTTP Error 401: Unauthorized
**** Unable to load config file.
**** HTTP Error 401: Unauthorized
Traceback (most recent call last):
File "/home/avd/weewx-venv/lib/python3.11/site-packages/weectllib/import_actions.py", line 58, in obs_import
source_obj.run()
File "/home/avd/weewx-venv/lib/python3.11/site-packages/weeimport/weeimport.py", line 367, in run
_raw_data = self.get_raw_data(period)
^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/avd/weewx-venv/lib/python3.11/site-packages/weeimport/wuimport.py", line 322, in get_raw_data
response = urllib.request.urlopen(request_obj)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/urllib/request.py", line 216, in urlopen
return opener.open(url, data, timeout)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/urllib/request.py", line 525, in open
response = meth(req, response)
^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/urllib/request.py", line 634, in http_response
response = self.parent.error(
^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/urllib/request.py", line 563, in error
return self._call_chain(*args)
^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/urllib/request.py", line 496, in _call_chain
result = func(*args)
^^^^^^^^^^^
File "/usr/lib/python3.11/urllib/request.py", line 643, in http_error_default
raise HTTPError(req.full_url, code, msg, hdrs, fp)
urllib.error.HTTPError: HTTP Error 401: Unauthorized
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/avd/weewx-venv/bin/weectl", line 8, in <module>
sys.exit(main())
^^^^^^
File "/home/avd/weewx-venv/lib/python3.11/site-packages/weectl.py", line 67, in main
namespace.func(namespace)
File "/home/avd/weewx-venv/lib/python3.11/site-packages/weectllib/__init__.py", line 90, in dispatch
namespace.action_func(config_dict, namespace)
File "/home/avd/weewx-venv/lib/python3.11/site-packages/weectllib/import_cmd.py", line 85, in import_func
weectllib.import_actions.obs_import(config_dict,
File "/home/avd/weewx-venv/lib/python3.11/site-packages/weectllib/import_actions.py", line 110, in obs_import
log.info(f"**** " % e)
~~~~~~~~~^~~
TypeError: not all arguments converted during string formatting
(weewx-venv) avd@raspberrypi:~ $ weectl import --import-config=/var/tmp/wu.conf --from=2021-01-01T00:00 --to=2022-01-06T00:00
Using configuration file /home/avd/weewx-data/weewx.conf
Starting weectl import...
Observation history for Weather Underground station 'IVAUXS11' will be imported.
Using database binding 'wx_binding', which is bound to database 'weewx.sdb'
Destination table 'archive' unit system is '0x01' (US).
Imported records will not overwrite existing database records.
Missing derived observations will be calculated.
Observations timestamped after 2021-01-01 00:00:00 CET (1609455600) and up to and
including 2022-01-06 00:00:00 CET (1641423600) will be imported.
Starting import ...
Records covering multiple periods have been identified for import.
Period 1 ...
Unable to open Weather Underground station IVAUXS11 or HTTP Error 401: Unauthorized
**** Unable to load config file.
**** HTTP Error 401: Unauthorized
Traceback (most recent call last):
File "/home/avd/weewx-venv/lib/python3.11/site-packages/weectllib/import_actions.py", line 58, in obs_import
source_obj.run()
File "/home/avd/weewx-venv/lib/python3.11/site-packages/weeimport/weeimport.py", line 367, in run
_raw_data = self.get_raw_data(period)
^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/avd/weewx-venv/lib/python3.11/site-packages/weeimport/wuimport.py", line 322, in get_raw_data
response = urllib.request.urlopen(request_obj)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/urllib/request.py", line 216, in urlopen
return opener.open(url, data, timeout)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/urllib/request.py", line 525, in open
response = meth(req, response)
^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/urllib/request.py", line 634, in http_response
response = self.parent.error(
^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/urllib/request.py", line 563, in error
return self._call_chain(*args)
^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/urllib/request.py", line 496, in _call_chain
result = func(*args)
^^^^^^^^^^^
File "/usr/lib/python3.11/urllib/request.py", line 643, in http_error_default
raise HTTPError(req.full_url, code, msg, hdrs, fp)
urllib.error.HTTPError: HTTP Error 401: Unauthorized
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/avd/weewx-venv/bin/weectl", line 8, in <module>
sys.exit(main())
^^^^^^
File "/home/avd/weewx-venv/lib/python3.11/site-packages/weectl.py", line 67, in main
namespace.func(namespace)
File "/home/avd/weewx-venv/lib/python3.11/site-packages/weectllib/__init__.py", line 90, in dispatch
namespace.action_func(config_dict, namespace)
File "/home/avd/weewx-venv/lib/python3.11/site-packages/weectllib/import_cmd.py", line 85, in import_func
weectllib.import_actions.obs_import(config_dict,
File "/home/avd/weewx-venv/lib/python3.11/site-packages/weectllib/import_actions.py", line 110, in obs_import
log.info(f"**** " % e)
~~~~~~~~~^~~
TypeError: not all arguments converted during string formatting
Op maandag 17 februari 2025 om 21:56:43 UTC+1 schreef gjr80: