Thanks for your support!

Tried that already - with not much success after downloading the master.zip

*pi@raspberrypi*:*~ $* sudo wee_extension --install master.zip

Request to install 'master.zip'

Extracting from zip archive master.zip

Traceback (most recent call last):

  File "/usr/share/weewx/wee_extension", line 88, in <module>

    main()

  File "/usr/share/weewx/wee_extension", line 80, in main

    ext.install_extension(options.install)

  File "/usr/share/weewx/weecfg/extension.py", line 113, in 
install_extension

    self.tmpdir, self.logger)

  File "/usr/share/weewx/weecfg/__init__.py", line 1760, in extract_zip

    zip_archive = zipfile.ZipFile(filename)

  File "/usr/lib/python3.7/zipfile.py", line 1222, in __init__

    self._RealGetContents()

  File "/usr/lib/python3.7/zipfile.py", line 1289, in _RealGetContents

    raise BadZipFile("File is not a zip file")

zipfile.BadZipFile: File is not a zip file




Am Freitag, 1. Mai 2020 17:03:36 UTC+2 schrieb Tarmo:
>
> grab it from here 
> https://github.com/matthewwall/weewx-mqtt/archive/master.zip
>
> wee_extension supports zip files as well
>
> On Friday, May 1, 2020 at 5:56:55 PM UTC+3, Manfred Maier wrote:
>>
>> A very stupid question:
>> How do I update the extension?
>>
>> I don't find the weewx-mqtt.tgz that I need for the installation.
>>
>>
>>
>>
>> Am Freitag, 1. Mai 2020 16:37:04 UTC+2 schrieb Tarmo:
>>>
>>> Hi Manfred!
>>>
>>> try to update mqtt extension https://github.com/matthewwall/weewx-mqtt
>>>
>>>
>>> On Friday, May 1, 2020 at 5:34:11 PM UTC+3, Manfred Maier wrote:
>>>>
>>>> Also pulling my issues while updating in a separate thread.
>>>>
>>>> I was using version 3.9.2 on a RPi4 (Rasbian 10) with the Belchertown 
>>>> skin installed.
>>>>
>>>> I've tried to install the Python 3 version with:
>>>>
>>>> curl -s http://weewx.com/apt/weewx-python3.list | sudo tee 
>>>> /etc/apt/sources.list.d/weewx.list
>>>>
>>>> sudo apt-get update
>>>> sudo apt-get install weewx
>>>>
>>>>
>>>> The system crashed with the following lines in the log-file:
>>>>
>>>> May  1 10:57:40 raspberrypi weewx[14513] CRITICAL __main__: Caught 
>>>> unrecoverable exception:
>>>>
>>>> May  1 10:57:40 raspberrypi weewx[14513] CRITICAL __main__:     ****  
>>>> invalid syntax (mqtt.py, line 197)
>>>>
>>>> May  1 10:57:40 raspberrypi weewx[14513] CRITICAL __main__:     ****  
>>>> Traceback (most recent call last):
>>>>
>>>> May  1 10:57:40 raspberrypi weewx[14513] CRITICAL __main__:     ****    
>>>> File "/usr/share/weewx/weewxd", line 148, in main
>>>>
>>>> May  1 10:57:40 raspberrypi weewx[14513] CRITICAL __main__:     ****    
>>>>   engine = weewx.engine.StdEngine(config_dict)
>>>>
>>>> May  1 10:57:40 raspberrypi weewx[14513] CRITICAL __main__:     ****    
>>>> File "/usr/share/weewx/weewx/engine.py", line 75, in __init__
>>>>
>>>> May  1 10:57:40 raspberrypi weewx[14513] CRITICAL __main__:     ****    
>>>>   self.loadServices(config_dict)
>>>>
>>>> May  1 10:57:40 raspberrypi weewx[14513] CRITICAL __main__:     ****    
>>>> File "/usr/share/weewx/weewx/engine.py", line 138, in loadServices
>>>>
>>>> May  1 10:57:40 raspberrypi weewx[14513] CRITICAL __main__:     ****    
>>>>   obj = weeutil.weeutil.get_object(svc)(self,config_dict)
>>>>
>>>> May  1 10:57:40 raspberrypi weewx[14513] CRITICAL __main__:     ****    
>>>> File "/usr/share/weewx/weeutil/weeutil.py", line 1093, in get_object
>>>>
>>>> May  1 10:57:40 raspberrypi weewx[14513] CRITICAL __main__:     ****    
>>>>   mod = __import__(module)
>>>>
>>>> May  1 10:57:40 raspberrypi weewx[14513] CRITICAL __main__:     ****    
>>>> File "/usr/share/weewx/user/mqtt.py", line 197
>>>>
>>>> May  1 10:57:40 raspberrypi weewx[14513] CRITICAL __main__:     ****    
>>>>   except KeyError, e:
>>>>
>>>> May  1 10:57:40 raspberrypi weewx[14513] CRITICAL __main__:     ****   
>>>>                   ^
>>>>
>>>> May  1 10:57:40 raspberrypi weewx[14513] CRITICAL __main__:     ****  
>>>> SyntaxError: invalid syntax
>>>>
>>>> May  1 10:57:40 raspberrypi weewx[14513] CRITICAL __main__:     ****  
>>>> Exiting.
>>>>
>>>>
>>>> I then installed the Python 2 version.
>>>> Weewx at least started again. The MQTT is working, too. 
>>>>
>>>> But the system stopped creating most of JSON files for the skins.
>>>> The weewx_data.json gets created, but all the files for my belchertown 
>>>> graphs do not get generated.
>>>>
>>>>
>>>> Ideally I would like to switch to the Python 3 version.
>>>> Any thoughts what the problem of my Python 3 installation is?
>>>>
>>>>
>>>> Manfred. 
>>>>
>>>

-- 
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/2e8b6a82-127a-4fb1-a057-49961c42a98c%40googlegroups.com.

Reply via email to