Yes, that's correct. "loop" is probably the more "future proof" choice.
Don't know why Matthew chose an either/or choice. Perhaps because there is no way for the broker to distinguishing them without an extra topic. -tk On Tue, Mar 27, 2018 at 5:22 PM, Pat <[email protected]> wrote: > Thanks Tom. I was reading the source and saw the binding reference, but I > didn't see it say "loop" specifically so I never tried it. I'm to assume > anything that's not "archive" would have worked? > > if binding == 'archive': > self.bind(weewx.NEW_ARCHIVE_RECORD, self.new_archive_record) > else: > self.bind(weewx.NEW_LOOP_PACKET, self.new_loop_packet) > > > > On Tuesday, March 27, 2018 at 7:38:52 PM UTC-4, Tom Keffer wrote: >> >> Matthew's "MQTT" extension can do this by setting binding = 'loop'. For >> example, >> >> [StdRestful] >> [[MQTT]] >> server_url = mqtt://username:password@localhost:1883/ >> topic = weather >> unit_system = METRIC >> binding = loop >> >> -tk >> >> On Tue, Mar 27, 2018 at 2:04 PM, Pat <[email protected]> wrote: >> >>> I'm looking to see if it's possible to have "rapid fire" type updates >>> with mqtt and have it publish the mqtt /loop topic on every weewx loop? >>> >>> >>> -- >>> 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]. >>> For more options, visit https://groups.google.com/d/optout. >>> >> >> -- > 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]. > For more options, visit https://groups.google.com/d/optout. > -- 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]. For more options, visit https://groups.google.com/d/optout.
