themoosman / weewx-ambientweatherapi-json

An AmbientWeather API driver for the weewx weather software using JSON.
14 stars 0 forks source link

Help upgrading #31

Closed TheCableGuy99 closed 4 months ago

TheCableGuy99 commented 6 months ago

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.

themoosman commented 6 months ago

What version of WeeWX are you running?

TheCableGuy99 commented 6 months ago

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.

themoosman commented 6 months ago

On the terminal run weewxd --version

TheCableGuy99 commented 6 months ago

ahhh I was trying without the "d" on the end "weewd --version".

It's 5.0.2

themoosman commented 6 months ago

Got it. Let me spin up an environment and test it out.

TheCableGuy99 commented 6 months ago

ahhh thank you, I really appreciate the help. I think it was installed using apt if I remember.

TheCableGuy99 commented 6 months ago

Hey, I got this working.

themoosman commented 6 months ago

What was the problem?

TheCableGuy99 commented 6 months ago

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.

themoosman commented 6 months ago

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

TheCableGuy99 commented 6 months ago

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.

TheCableGuy99 commented 6 months ago

It was this stopping it: user.ambientweatherapi.AmbientWeatherAPI

jithatsonei commented 5 months ago

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