Re: [weewx-user] Re: Publishing aggregate data, the topic is TOPIC/loop?

2019-09-04 Thread Rui Pinto
Thanks @Greg Troxel  and @Pat!!

You were very helful... I just wanted to understand why is like the that.

Best Regards

Greg Troxel  escreveu no dia terça, 3/09/2019 à(s) 20:45:

> Pat  writes:
>
> > The aggregate topic is hard-coded to /LOOP because weewx operates on the
> > LOOP method. You can read more about that in the User Guide
> > .
>
> And it's still /loop if you are publishing aggregate information based
> on archive records (the default, I think), even though that's confusing.
>
> To Rui: I would suggest separating trying to understand how things
> behave from why someone chose to make it behave that way.
> Understanding how lets you get things done, and the why is much less
> useful :-)
>
> --
> 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/rmisgpd88pp.fsf%40s1.lexort.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/CAHGxKCzxVHySBCmD8WeuVBReCCMSb0dghCdhn4O2ZGNhxO3TNg%40mail.gmail.com.


Re: [weewx-user] Re: Publishing aggregate data, the topic is TOPIC/loop?

2019-09-03 Thread Greg Troxel
Pat  writes:

> The aggregate topic is hard-coded to /LOOP because weewx operates on the 
> LOOP method. You can read more about that in the User Guide 
> .

And it's still /loop if you are publishing aggregate information based
on archive records (the default, I think), even though that's confusing.

To Rui: I would suggest separating trying to understand how things
behave from why someone chose to make it behave that way.
Understanding how lets you get things done, and the why is much less
useful :-)

-- 
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/rmisgpd88pp.fsf%40s1.lexort.com.


[weewx-user] Re: Publishing aggregate data, the topic is TOPIC/loop?

2019-09-03 Thread Pat
The aggregate topic is hard-coded to /LOOP because weewx operates on the 
LOOP method. You can read more about that in the User Guide 
.

On Tuesday, September 3, 2019 at 2:28:33 PM UTC-4, Pat wrote:
>
> Yes, aggregate will publish all loop data as a single json array to the 
> /loop topic. 
>
> If you want individual observations published to their individual topic, 
> use aggregation = individual. 
>
> If you want a mixture of both, use aggregation = individual,aggregate
>
>
>
> On Tuesday, September 3, 2019 at 12:59:44 PM UTC-4, Rui Pinto wrote:
>>
>> Hello!! 
>>
>> These are my configurations for transmitting data through Weewx to the 
>> MQTT broker:
>>
>> [StdRESTful]
>> ...
>> [[MQTT]]
>> server_url = mqtt://username:password@localhost:1883/
>> topic = weather/default/default/VantagePro2/
>> unit_system = METRIC
>>
>> aggregation = aggregate   
>>
>> why the data is published to the TOPIC/loop? Is it because i'm publishing 
>> aggregate data so all the observations are pusblished in one go to the loop 
>> level?
>>
>>
>> Best Regards
>>
>>
>>

-- 
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/a10748a6-5714-4004-a536-7082eacd4d3e%40googlegroups.com.


[weewx-user] Re: Publishing aggregate data, the topic is TOPIC/loop?

2019-09-03 Thread Pat
Yes, aggregate will publish all loop data as a single json array to the 
/loop topic. 

If you want individual observations published to their individual topic, 
use aggregation = individual. 

If you want a mixture of both, use aggregation = individual,aggregate



On Tuesday, September 3, 2019 at 12:59:44 PM UTC-4, Rui Pinto wrote:
>
> Hello!! 
>
> These are my configurations for transmitting data through Weewx to the 
> MQTT broker:
>
> [StdRESTful]
> ...
> [[MQTT]]
> server_url = mqtt://username:password@localhost:1883/
> topic = weather/default/default/VantagePro2/
> unit_system = METRIC
>
> aggregation = aggregate   
>
> why the data is published to the TOPIC/loop? Is it because i'm publishing 
> aggregate data so all the observations are pusblished in one go to the loop 
> level?
>
>
> Best Regards
>
>
>

-- 
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/2f32de1f-3785-4fed-a816-12327e3b8533%40googlegroups.com.