bellrichm / WeeWX-MQTTSubscribe

A WeeWX service and driver that receives data from MQTT.
GNU General Public License v3.0
52 stars 13 forks source link

ignore_start_time does not really ignore the start time #92

Closed bellrichm closed 3 years ago

bellrichm commented 3 years ago

For additional detail see, https://groups.google.com/g/weewx-user/c/opQq4UaOyxs/m/Sn-RQvpxCgAJ

Note, should also check ignore_end_time

bellrichm commented 3 years ago

The ignore_start_time and ignore_end_time options ignore the start and end time calculations. These times are calculated from the time in the loop packet. Instead the time of the first element in the queue is used as the start time and the time of the last element is used as the end time. Because the timespan start is exclusive, this will never work (the start time will always equal the mqtt time). When ignore_start_time is true, the adjust_start_time will default to 1 so that the adjusted time will be less than the mqtt time. Because the timespan end is inclusive and is the end time is used to ensure the loop is broken (to allow other WeeWX processing), ignore_end_time should be good.