Coder Social home page Coder Social logo

Comments (6)

bellrichm avatar bellrichm commented on August 17, 2024

When running as a service MQTTSubscribe attempts to quality control the incoming data so that really old data is not processed. In hindsight it is too aggressive... The message should have three times, the ‘interval’ start, end, and the incoming time. You can either ignore the incoming time via ignore_start_time/ignore_end_time or allow data outside the ‘interval’ via adjust_start_time/adjust_end_time. For more information see, https://github.com/bellrichm/WeeWX-MQTTSubscribe/wiki/Date-Time-processing
-rich

from weewx-mqttsubscribe.

poblabs avatar poblabs commented on August 17, 2024

Thanks. I think ignore_start_time/ignore_end_time is what I want since my MQTT payload does not include a dateTime value.

Another question - you can submit as many loops as you want. Is the service waiting for the driver to submit a loop before it augments this MQTT data? Is there a way to send a separate LOOP from MQTT?

I'm lucky in that my driver and my MQTT data is ~2.5s so the timing is OK. But thinking if I had a 16 second LOOP, and my MQTT was 2.5s, would the augmented LOOP be 8 values behind? (does that make sense?)

from weewx-mqttsubscribe.

bellrichm avatar bellrichm commented on August 17, 2024

Yeah, the ignore* sounds like the way to go. Someday (when I have time...) I should rework some of the datetime stuff.

Yes, the service waits for a loop to ‘arrive’ from the driver. It treats each loop as a ‘mini archive period’. So for example, rain would be summed in those theoretical 16 seconds, temperature averaged, etc. All of this behavior controlled by the ‘Accumulator’ configuration in the WeeWX configuration file.

Having the service create its own loop is an interesting idea, but is too far out of the current WeeWX architecture for me...
-rich

from weewx-mqttsubscribe.

poblabs avatar poblabs commented on August 17, 2024

No worries - I think for my purposes it'll work just fine. Thanks for the help and insight!

from weewx-mqttsubscribe.

poblabs avatar poblabs commented on August 17, 2024

You might be right about the service not being able to submit loop packets because I don't think services have the genLoopPackets function. Anyways probably a non-issue!

from weewx-mqttsubscribe.

bellrichm avatar bellrichm commented on August 17, 2024

Good point, I’d have to do some real internal WeeWX stuff to make it ‘work’.
From my understanding (and I’m no WeeWX expert), by treating the loop as a ‘mini archive period’ it should accomplish the same, discounting rounding differences, etc.

from weewx-mqttsubscribe.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.