Ernest, you would need to pull a newer version of 3.x to avoid this error and for api_key to have any meaning.

Ernest Jillson wrote on 2/6/20 4:21 PM:
Definitely does cause weewx to fail. Keep in mind that we are adding the key to version 3.x, not 4, then running the wunderfixer pointing at our old weewx.conf file.


|
Feb  6 15:56:56 LakeFantasia weewx[21278]: restx: WU essentials: {}
Feb  6 15:56:56 LakeFantasia weewx[21278]: engine: Caught unrecoverable exception in engine: Feb  6 15:56:56 LakeFantasia weewx[21278]:     ****  __init__() got an unexpected keyword argument 'api_key' Feb  6 15:56:56 LakeFantasia weewx[21278]:     ****  Traceback (most recent call last): Feb  6 15:56:56 LakeFantasia weewx[21278]:     ****    File "/usr/share/weewx/weewx/engine.py", line 888, in main Feb  6 15:56:56 LakeFantasia weewx[21278]:     ****      engine = engine_class(config_dict) Feb  6 15:56:56 LakeFantasia weewx[21278]:     ****    File "/usr/share/weewx/weewx/engine.py", line 78, in __init__ Feb  6 15:56:56 LakeFantasia weewx[21278]:     **** self.loadServices(config_dict) Feb  6 15:56:56 LakeFantasia weewx[21278]:     ****    File "/usr/share/weewx/weewx/engine.py", line 142, in loadServices Feb  6 15:56:56 LakeFantasia weewx[21278]:     **** self.service_obj.append(weeutil.weeutil._get_object(svc)(self, config_dict)) Feb  6 15:56:56 LakeFantasia weewx[21278]:     ****    File "/usr/share/weewx/weewx/restx.py", line 632, in __init__
Feb  6 15:56:56 LakeFantasia weewx[21278]:     **** **_ambient_dict)
Feb  6 15:56:56 LakeFantasia weewx[21278]:     ****  TypeError: __init__() got an unexpected keyword argument 'api_key'
Feb  6 15:56:56 LakeFantasia weewx[21278]:     ****  Exiting.

|



On Thursday, February 6, 2020 at 3:12:29 PM UTC-5, gjr80 wrote:

    Hi,

    Simply adding a key to weewx.conf should not cause any problems.
    Would you please give us some details (console output, log extract
    etc) so we can see if indeed there is a problem with WeeWX and if
    so fix it.

    Gary

--
You received this message because you are subscribed to the Google Groups "weewx-user" group. To unsubscribe from this group and stop receiving emails from it, send an email to weewx-user+unsubscr...@googlegroups.com <mailto:weewx-user+unsubscr...@googlegroups.com>. To view this discussion on the web visit https://groups.google.com/d/msgid/weewx-user/ab22ae83-46b6-4a4b-a8ea-6d58a4263c38%40googlegroups.com <https://groups.google.com/d/msgid/weewx-user/ab22ae83-46b6-4a4b-a8ea-6d58a4263c38%40googlegroups.com?utm_medium=email&utm_source=footer>.


--
l...@isylum.org - Dearborn, Michigan

--
You received this message because you are subscribed to the Google Groups 
"weewx-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to weewx-user+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-user/411635df-49d5-ceba-89cd-1690efcdaca3%40isylum.org.

Reply via email to