That got me much closer... but (PermissionError: [Errno 13] Permission
denied: '/etc/weewx/bin/user/MQTTSubscribe.py')
frank@pi4:/tmp $ weectl extension install v2.3.1.tar.gz
Using configuration file /etc/weewx/weewx.conf
Install extension 'v2.3.1.tar.gz' (y/n)? y
Extracting from tar archive v2.3.1.tar.gz
Traceback (most recent call last):
File "/usr/share/weewx/weectl.py", line 74, in <module>
main()
File "/usr/share/weewx/weectl.py", line 66, in main
namespace.func(namespace)
File "/usr/share/weewx/weectllib/__init__.py", line 121, in dispatch
namespace.action_func(config_dict, namespace)
File "/usr/share/weewx/weectllib/extension_cmd.py", line 116, in
install_extension
ext.install_extension(namespace.source, no_confirm=namespace.yes)
File "/usr/share/weewx/weecfg/extension.py", line 138, in
install_extension
extension_name = self._install_from_file(extension_path, filetype)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/share/weewx/weecfg/extension.py", line 168, in
_install_from_file
extension_name = self.install_from_dir(extension_dir)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/share/weewx/weecfg/extension.py", line 185, in install_from_dir
self._install_files(installer['files'], extension_dir)
File "/usr/share/weewx/weecfg/extension.py", line 269, in _install_files
shutil.copy(source_path, destination_path)
File "/usr/lib/python3.11/shutil.py", line 419, in copy
copyfile(src, dst, follow_symlinks=follow_symlinks)
File "/usr/lib/python3.11/shutil.py", line 258, in copyfile
with open(dst, 'wb') as fdst:
^^^^^^^^^^^^^^^
PermissionError: [Errno 13] Permission denied:
'/etc/weewx/bin/user/MQTTSubscribe.py'
On Saturday, January 27, 2024 at 4:54:23 PM UTC-6 vince wrote:
> You didn't say which version of weewx but you probably installed v5.
>
> See if 'weectl extension install' works (v5 syntax) rather than
> 'wee_extension --install' (v4 syntax).
>
> On Saturday, January 27, 2024 at 2:34:15 PM UTC-8 Frank Gruhlke Gg wrote:
>
>> Thanks for helping me out... here is what got..
>>
>> frank@pi4:/tmp $ wee_extension --install=v2.3.1.tar.gz
>> bash: wee_extension: command not found
>>
>> On Saturday, January 27, 2024 at 4:20:12 PM UTC-6 Rich Bell wrote:
>>
>>> Drop the BIN_DIR
>>> wee_extension --install=v2.3.1.tar.gz
>>> Assuming you are /tmp
>>>
>>> On Sat, Jan 27, 2024 at 4:56 PM [email protected] <[email protected]>
>>> wrote:
>>>
>>>> You caught me in the middle of a major documentation update.
>>>>
>>>> For weewx v5 use,
>>>> http://www.weewx.com/docs/5.0/utilities/weectl-extension/ and
>>>> http://www.weewx.com/docs/5.0/utilities/weectl-station/
>>>> And v4,
>>>> http://www.weewx.com/docs/4.10/utilities.htm#wee_extension_utility and
>>>> http://www.weewx.com/docs/4.10/utilities.htm#Action_--reconfigure
>>>>
>>>> Then manually update weewx.conf using
>>>> https://github.com/bellrichm/WeeWX-MQTTSubscribe/wiki/Common-Options
>>>> as a reference
>>>>
>>>> rich
>>>>
>>>> On Saturday 27 January 2024 at 16:38:36 UTC-5 Frank Gruhlke Gg wrote:
>>>>
>>>>> Hello all.. hopefully someone can help me!
>>>>> I have a fresh raspbean install on a pi-4 and want to install the MQTT
>>>>> driver found here:
>>>>> https://github.com/bellrichm/WeeWX-MQTTSubscribe
>>>>>
>>>>> So far managed to install the Paho MQTT Python Client but then started
>>>>> to run into issues.
>>>>>
>>>>> First, DOWNLOAD_DIR = /tmp gave me a "bad command error so I
>>>>> adjusted and ran:
>>>>>
>>>>> /tmp $ wget https://github.com/bellrichm/WeeWX-
>>>>> MQTTSubscribe/archive/refs/tags/v2.3.1.tar.gz
>>>>>
>>>>> and managed to get "v2.3.1.tar.gz into the /tmp directory
>>>>>
>>>>> now it seems no matter what I try I cant install from here..
>>>>>
>>>>> frank@pi4:/tmp $ BIN_DIR/wee_extension --install=v2.3.1.tar.gz
>>>>> bash: BIN_DIR/wee_extension: No such file or directory
>>>>> also tried
>>>>> frank@pi4:/tmp $ BIN_DIR/wee_extension --install v2.3.1.tar.gz
>>>>> bash: BIN_DIR/wee_extension: No such file or directory
>>>>>
>>>>> I am sure its something minor but I have no hair left to pull!
>>>>>
>>>>>
>>>>>
>>>>> --
>>>> 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/d3d4555a-b6b7-4594-a022-128c6739442cn%40googlegroups.com
>>>>
>>>> <https://groups.google.com/d/msgid/weewx-user/d3d4555a-b6b7-4594-a022-128c6739442cn%40googlegroups.com?utm_medium=email&utm_source=footer>
>>>> .
>>>>
>>>
--
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/354e5b5b-e375-4d68-916b-bd00499aa298n%40googlegroups.com.