All,
I am trying out 2 different tasks. First is to confirm that I can make weewx run on a raspberry pi before I move from wview and then to automate the collection of data from our enphase envoy system. This post is regarding my second task which I am trying out on a different raspberry pi from what I will use to replace my wview system.
System:
raspberry pi 4b
latest os
WeeWx 5.0
So far:
WeeWx runs using Simulator
Installed Matthew Wall's driver
- weectl extension install /home/pi/weewx-envoy.zip
Then ran
- weectl station reconfigure
but obtained these warnings and errors:
Warning ---
Choose a driver. Installed drivers include:
0) ? (user.envoy) Missing parentheses in call to 'print'. Did you mean print(...)? (envoy.py, line 164)
1) AcuRite (weewx.drivers.acurite)
then the standard list of stations
After selecting 0): for the driver the errors arrive:
driver [4]: 0
Traceback (most recent call last):
File "/usr/share/weewx/weectl.py", line 74, in <module>
main()
File "/usr/share/weewx/weectl.py", line 66, in main
namespace.func(namespace)
File "/usr/share/weewx/weectllib/__init__.py", line 121, in dispatch
namespace.action_func(config_dict, namespace)
File "/usr/share/weewx/weectllib/station_cmd.py", line 311, in reconfigure_station
weectllib.station_actions.station_reconfigure(config_dict=config_dict,
File "/usr/share/weewx/weectllib/station_actions.py", line 164, in station_reconfigure
config_config(config_dict,
File "/usr/share/weewx/weectllib/station_actions.py", line 207, in config_config
config_driver(config_dict, driver=driver, no_prompt=no_prompt)
File "/usr/share/weewx/weectllib/station_actions.py", line 419, in config_driver
driver_editor, driver_name, driver_version = weecfg.load_driver_editor(final_driver)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/share/weewx/weecfg/__init__.py", line 451, in load_driver_editor
driver_module = importlib.import_module(driver_module_name)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/importlib/__init__.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "<frozen importlib._bootstrap>", line 1206, in _gcd_import
File "<frozen importlib._bootstrap>", line 1178, in _find_and_load
File "<frozen importlib._bootstrap>", line 1149, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 690, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 936, in exec_module
File "<frozen importlib._bootstrap_external>", line 1074, in get_code
File "<frozen importlib._bootstrap_external>", line 1004, in source_to_code
File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
File "/etc/weewx/bin/user/envoy.py", line 164
print "Specify the hostname or address of the Envoy"
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
Before I jump in blindly looking at the code.....a question. Is the core issue something like the driver no longer will work with the current version of WeeWx or is there some simple modification that will make it work?
Stay healthy,
Pat