Re: [weewx-user] Re: Changing QoS when publishing to Mosquitto through Weewx

2019-09-03 Thread vince
On Tuesday, September 3, 2019 at 3:02:01 AM UTC-7, Rui Pinto wrote:

> https://github.com/weewx/weewx/wiki/mqtt 
> The solution couldn't just be set the option retain to True?
>
>
>
You asked specifically about QOS setting.  The extension doesn't seem to 
support setting that from what I could tell, but I gave you which 'two' 
lines you need to edit to see if it can be easily added.

I'm not sure retain is the same thing according to 
https://www.hivemq.com/blog/mqtt-essentials-part-8-retained-messages/ but 
you could always try it and see if you get the behavior you want.   I just 
run the defaults at home which works ok for me.


-- 
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/0deb8cc8-4b6f-4fbc-a179-d125c931044a%40googlegroups.com.


Re: [weewx-user] Re: Changing QoS when publishing to Mosquitto through Weewx

2019-09-03 Thread Rui Pinto
Thank you for responding!!

https://github.com/weewx/weewx/wiki/mqtt
The solution couldn't just be set the option retain to True?

Best Regards

vince  escreveu no dia segunda, 2/09/2019 à(s) 17:45:

> On Monday, September 2, 2019 at 9:11:01 AM UTC-7, Rui Pinto wrote:
>>
>> I have a Davis Vantage Pro2 station and i'm using Weewx to publish data
>> to an MQTT broker (Mosquitto).
>>
>> But i would like to know if it's possible to change the QoS.
>>
>>
>>
> My reading of the mqtt extension v0.19 sources vs. some paho-mqtt examples
> says 'no', but if you wanted to hack on your extension a little you might
> try finding the two lines that say mc.publish and add qos=1 (or 2) and see
> if that works. (untested)
>
>
>
> --
> 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/0b26bd48-a107-443b-b5cb-5805975c8af1%40googlegroups.com
> 
> .
>

-- 
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/CAHGxKCxfT%2Bsi-wGoqV0u4haAn-F4wKNfLh2k4VgMYuhmcB%2BG-A%40mail.gmail.com.


[weewx-user] Re: Changing QoS when publishing to Mosquitto through Weewx

2019-09-02 Thread vince
On Monday, September 2, 2019 at 9:11:01 AM UTC-7, Rui Pinto wrote:
>
> I have a Davis Vantage Pro2 station and i'm using Weewx to publish data to 
> an MQTT broker (Mosquitto).
>
> But i would like to know if it's possible to change the QoS.
>
>
>
My reading of the mqtt extension v0.19 sources vs. some paho-mqtt examples 
says 'no', but if you wanted to hack on your extension a little you might 
try finding the two lines that say mc.publish and add qos=1 (or 2) and see 
if that works. (untested)

 

-- 
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/0b26bd48-a107-443b-b5cb-5805975c8af1%40googlegroups.com.