Soooo...  somthing like this?

[[[[tempf]]]]
    ignore = true 
    name = inTemp
    conversion_func = tempf * 1.8 +32 



On Wednesday, January 31, 2024 at 11:20:22 AM UTC-6 bell...@gmail.com wrote:

> You have a couple of options. If all (or the majority) of your data coming 
> in is metric, you can use; 
> https://github.com/bellrichm/WeeWX-MQTTSubscribe/wiki/Common-Options#unit_system
> Or you can set it at the field level via, 
> https://github.com/bellrichm/WeeWX-MQTTSubscribe/wiki/Additional-Options#units
> rich
> On Wednesday 31 January 2024 at 10:17:27 UTC-5 Frank Gruhlke Gg wrote:
>
> Quick question, I use a ESP32 with an attached BME280 programed to gather 
> my data and then use "weewxMQTTSubcribe" to feed Weewx.
> The outdoor station sends the temp in "C" and the BME280 sends the 
> pressure in "Pa"
> Where and how in my chain does it makes the most sense to convert the 
> temperature to "F" and the pressure to "inHg" ?
>
>
> On Monday, January 29, 2024 at 1:33:14 PM UTC-6 Frank Gruhlke Gg wrote:
>
> That worked, thank you vince!    
>
> On Monday, January 29, 2024 at 1:23:41 PM UTC-6 vince wrote:
>
> Use the packaged version of paho-mqtt.....
>
> $ sudo apt-get install python3-paho-mqtt
>
>
> On Monday, January 29, 2024 at 11:01:14 AM UTC-8 Frank Gruhlke Gg wrote:
>
> I am still trying to get everything installed correctly...
>
> I can install weewx 5,  no problem    (sudo apt install weewx)
> I can install Paho-Mqtt, no problem   (pip install paho-mqtt)
> I am using this to install  WeewxMQTTSubcribe (sudo weectl extension 
> install 
> https://github.com/bellrichm/WeeWX-MQTTSubscribe/archive/refs/tags/v2.3.1.tar.gz
> )
>
> When use" "wectl station reconfigure", it indicates I may have path issues?
>
> Installed drivers include:
>   0) ?               (user.MQTTSubscribe)      No module named 'paho'
>   1) AcuRite         (weewx.drivers.acurite)
>   2) CC3000          (weewx.drivers.cc3000)
>   3) FineOffsetUSB   (weewx.drivers.fousb)
>   4) Simulator       (weewx.drivers.simulator)
>   5) TE923           (weewx.drivers.te923)
>   6) Ultimeter       (weewx.drivers.ultimeter)
>   7) Vantage         (weewx.drivers.vantage)
>   8) WMR100          (weewx.drivers.wmr100)
>   9) WMR300          (weewx.drivers.wmr300)
>  10) WMR9x8          (weewx.drivers.wmr9x8)
>  11) WS1             (weewx.drivers.ws1)
>  12) WS23xx          (weewx.drivers.ws23xx)
>  13) WS28xx          (weewx.drivers.ws28xx)
> choose a driver [4]:
>
> On Saturday, January 27, 2024 at 5:44:59 PM UTC-6 Frank Gruhlke Gg wrote:
>
> This worked!   Vince and Rich, thank you so much!!
>
> sudo weectl extension install 
> https://github.com/bellrichm/WeeWX-MQTTSubscribe/archive/refs/tags/v2.3.1.tar.gz
>
> On Saturday, January 27, 2024 at 5:20:52 PM UTC-6 Frank Gruhlke Gg wrote:
>
> And sorry, yes using WeeWx 5
>
> On Saturday, January 27, 2024 at 5:20:14 PM UTC-6 Frank Gruhlke Gg wrote:
>
> 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 bell...@gmail.com <bell...@gmail.com> 
> 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 weewx-user+...@googlegroups.com.
> 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 weewx-user+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-user/150c0073-1414-4faf-9830-a9fb9686337dn%40googlegroups.com.

Reply via email to