OK, that explains the api_key issue. 3.9.2 (the latest release version) 
does not use api_key, hence the error you receive. Subsequent to the 3.9.2 
release there have been numerous wunderfixer commits in an attempt to have 
wunderfixer work properly given the changes/chaos at WU. Somewhere in these 
commits api_key was introduced. WeeWX 4.0 will include the wunderfixer with 
all of these commits, I have not kept across wunderfixer/WU changes so i 
will let others advise on what wunderfixer version to use with 3.9.2.

Gary

On Friday, 7 February 2020 08:07:34 UTC+10, Ernest Jillson wrote:
>
> Hi Leon,
>  
> I'm using 3.9.2, which I believe is the latest of the 3.x series.
>
>
> On Thursday, February 6, 2020 at 4:27:11 PM UTC-5, Leon Shaner wrote:
>>
>> 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 [email protected].
>> 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>
>> .
>>
>>
>>
>> -- [email protected] - 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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-user/6f5d5cac-a967-4d95-aec9-13936afeb29c%40googlegroups.com.

Reply via email to