Closed TheCableGuy99 closed 4 months ago
What version of WeeWX are you running?
Hey,
I'm sorry but I don't actually know. How do I find out? WeeWX is new to me and I'm still trying to get to grips with it.
Thanks for your help.
On the terminal run weewxd --version
ahhh I was trying without the "d" on the end "weewd --version".
It's 5.0.2
Got it. Let me spin up an environment and test it out.
ahhh thank you, I really appreciate the help. I think it was installed using apt if I remember.
Hey, I got this working.
What was the problem?
Something in the config near the last line. Included something about api.weatherstation (something like that). It was in my previous config and worked but when I removed it the new version started up fine.
It almost seems it may have added duplicate lines to the config. The section added to the weewx.conf should look similar to: https://github.com/themoosman/weewx-ambientweatherapi-json/blob/master/weewx.conf
yeah, I just took the new and old config and compared them. The only difference was I had added quotes around my entried and near the last line (restful_services =) had some reference to the driver. I removed the quotes and that part on the end of the restful_services line to do with the driver and it started fine.
I have tried to find what it was on the line but i'm moving files around my NAS at the moment and it's taking 48 hours to complete and running so slow. To to rebuilt a backup will just kill everything.
It was this stopping it: user.ambientweatherapi.AmbientWeatherAPI
also had this issue, the error was:
May 08 21:35:53 jellyfin weewxd[30029]: CRITICAL __main__: Caught unrecoverable exception:
May 08 21:35:53 jellyfin weewxd[30029]: CRITICAL __main__: **** AmbientWeatherAPI.__init__() takes 1 positional argument but 3 were >
May 08 21:35:53 jellyfin weewxd[30029]: CRITICAL __main__: **** Traceback (most recent call last):
May 08 21:35:53 jellyfin weewxd[30029]: CRITICAL __main__: **** File "/usr/share/weewx/weewxd.py", line 160, in main
May 08 21:35:53 jellyfin weewxd[30029]: CRITICAL __main__: **** engine = weewx.engine.StdEngine(config_dict)
May 08 21:35:53 jellyfin weewxd[30029]: CRITICAL __main__: **** ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
May 08 21:35:53 jellyfin weewxd[30029]: CRITICAL __main__: **** File "/usr/share/weewx/weewx/engine.py", line 89, in __init__
May 08 21:35:53 jellyfin weewxd[30029]: CRITICAL __main__: **** self.loadServices(config_dict)
May 08 21:35:53 jellyfin weewxd[30029]: CRITICAL __main__: **** File "/usr/share/weewx/weewx/engine.py", line 157, in loadServices
May 08 21:35:53 jellyfin weewxd[30029]: Traceback (most recent call last):
May 08 21:35:53 jellyfin weewxd[30029]: File "/usr/share/weewx/weewxd.py", line 265, in <module>
May 08 21:35:53 jellyfin weewxd[30029]: CRITICAL __main__: **** obj = weeutil.weeutil.get_object(svc)(self, config_dict)
May 08 21:35:53 jellyfin weewxd[30029]: main()
May 08 21:35:53 jellyfin weewxd[30029]: File "/usr/share/weewx/weewxd.py", line 160, in main
May 08 21:35:53 jellyfin weewxd[30029]: engine = weewx.engine.StdEngine(config_dict)
May 08 21:35:53 jellyfin weewxd[30029]: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
May 08 21:35:53 jellyfin weewxd[30029]: File "/usr/share/weewx/weewx/engine.py", line 89, in __init__
May 08 21:35:53 jellyfin weewxd[30029]: self.loadServices(config_dict)
May 08 21:35:53 jellyfin weewxd[30029]: File "/usr/share/weewx/weewx/engine.py", line 157, in loadServices
May 08 21:35:53 jellyfin weewxd[30029]: obj = weeutil.weeutil.get_object(svc)(self, config_dict)
May 08 21:35:53 jellyfin weewxd[30029]: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
May 08 21:35:53 jellyfin weewxd[30029]: TypeError: AmbientWeatherAPI.__init__() takes 1 positional argument but 3 were given
May 08 21:35:53 jellyfin weewxd[30029]: CRITICAL __main__: **** ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
May 08 21:35:53 jellyfin systemd[1]: weewx.service: Main process exited, code=exited, status=1/FAILURE
but removing the
It was this stopping it:
user.ambientweatherapi.AmbientWeatherAPI bit weectl extension install
puts in the config resolved it
Hi,
I'm running this on an Ubuntu 22.04 VM.
I've tried to upgrade but it's failed and won't start so reverted it to an image backup to get it up and running again.
Please could you confirm the process to upgrade it?
Many thanks.