Good analysis, Gary. Regarding caching, see the first rule of driver development <http://www.weewx.com/docs/customizing.htm#General_guidelines>.
On Sat, Apr 8, 2023 at 5:08 PM gjr80 <[email protected]> wrote: > Thank you, I think I know what is happening. I am almost certain that > something on your system is caching loop packets. The vantage driver emit > loop packets approx every two seconds, the Ecowitt gateway driver (service) > augments these packets every 20 seconds. So we should be seeing cycles of > nine loop packets of vantage only data and then one loop packet of vantage > data augmented by Ecowitt data. Something like this: > > LOOP: 2023-04-09 09:25:41 AEST (1680996341) 'altimeter': > '31.27158957756279', 'appTemp': '28.460312775499265', 'barometer': > '31.09999999933894', 'cloudbase': '1395.243234838005', > 'consBatteryVoltage': '12.661454746010866', 'dateTime': '1680996341', > 'daymaxwind': '7.2', 'dewpoint': '27.20373816152373', 'ET': 'None', > 'extraHumid1': '48', 'extraHumid2': '50', 'extraHumid3': '53', > 'extraHumid4': '54', 'extraHumid5': '51', 'extraHumid6': '49', > 'extraHumid7': '50', 'extraTemp1': '74.30000000000001', 'extraTemp2': > '73.03999999999999', 'extraTemp3': '71.6', 'extraTemp4': '73.4', > 'extraTemp5': '72.86', 'extraTemp6': '73.4', 'extraTemp7': '72.68', > 'extraTemp9': '73.75999999999999', 'heatindex': '32.67876474958993', > 'heatingVoltage': '12.0', 'humidex': '32.67876474958993', 'inDewpoint': > '31.07953383380539', 'inHumidity': '29.999999973557514', 'inTemp': > '63.00000001322124', 'inTempBatteryStatus': '0', 'lightning_distance': > '14.912908608', 'lightning_last_det_time': '1678608960', > 'lightning_strike_count': 'None', 'lightningcount': '0', 'luminosity': > '7720.0', 'maxSolarRad': '636.30500946084', 'outHumidity': > '79.99999998016814', 'outTemp': '32.67876474958993', > 'outTempBatteryStatus': '0', 'p_dayRain': '0.0', 'p_monthRain': > '2.4645669291338583', 'p_rain': 'None', 'p_rainRate': '0.0', 'p_stormRain': > '0.0', 'p_weekRain': '0.5905511811023623', 'p_yearRain': > '19.27952755905512', 'pm2_5': '7.0', 'pm2_51_24h_avg': '7.5', 'pressure': > '31.09999999933894', 'radiation': '610.9869828446981', 'rain': '0', > 'rainBatteryStatus': '0', 'rainRate': '0.0', 'referenceVoltage': > '12.58710158858874', 'relbarometer': '1002.8', 'rxCheckPercent': > '49.04243081236129', 'soilMoist1': '3', 'soilMoist3': '63', > 'supplyVoltage': '12.714444948667934', 'txBatteryStatus': '0', 'usUnits': > '1', 'UV': '8.553817759825773', 'uvradiation': '0.0', 'wh31_ch1_batt': '0', > 'wh31_ch1_sig': '4', 'wh31_ch2_batt': '0', 'wh31_ch2_sig': '4', > 'wh31_ch3_batt': '0', 'wh31_ch3_sig': '4', 'wh31_ch4_batt': '0', > 'wh31_ch4_sig': '4', 'wh31_ch5_batt': '0', 'wh31_ch5_sig': '4', > 'wh31_ch6_batt': '0', 'wh31_ch6_sig': '4', 'wh31_ch7_batt': '0', > 'wh31_ch7_sig': '4', 'wh32_batt': '0', 'wh32_sig': '4', 'wh41_ch1_batt': > '6', 'wh41_ch1_sig': '4', 'wh51_ch1_batt': '1.3', 'wh51_ch1_sig': '4', > 'wh51_ch2_batt': 'None', 'wh51_ch2_sig': '0', 'wh51_ch3_batt': '1.4', > 'wh51_ch3_sig': '4', 'wh57_batt': '4', 'wh57_sig': '4', > 'windBatteryStatus': '0', 'windchill': '32.67876474958993', 'windDir': > '359.9999998810088', 'windGust': '3.966372119634798e-09', 'windGustDir': > '359.9999998810088', 'windrun': 'None', 'windSpeed': > '3.3053106918146113e-09', 'wn34_ch1_batt': '1.54', 'wn34_ch1_sig': '4', > 'ws90_batt': '3.28', 'ws90_sig': '4' > LOOP: 2023-04-09 09:25:43 AEST (1680996343) 'altimeter': > '31.271589572250452', 'appTemp': '28.45868424609039', 'barometer': > '31.099999994050442', 'cloudbase': '1395.2348554798498', > 'consBatteryVoltage': '12.722892959372873', 'dateTime': '1680996343', > 'dewpoint': '27.202320956070754', 'ET': 'None', 'heatindex': > '32.67731067496107', 'heatingVoltage': '10.832759904346824', 'humidex': > '32.67731067496107', 'inDewpoint': '31.079533751427373', 'inHumidity': > '29.99999976201764', 'inTemp': '63.00000011899118', 'inTempBatteryStatus': > '0', 'maxSolarRad': '636.402982535062', 'outHumidity': '79.99999982151323', > 'outTemp': '32.67731067496107', 'outTempBatteryStatus': '0', 'pressure': > '31.099999994050442', 'radiation': '611.1287937980882', 'rain': '0', > 'rainBatteryStatus': '0', 'rainRate': '0.0', 'referenceVoltage': > '11.986229313443989', 'rxCheckPercent': '47.044187188107415', > 'supplyVoltage': '12.0', 'txBatteryStatus': '0', 'usUnits': '1', 'UV': > '8.555803113173233', 'windBatteryStatus': '0', 'windchill': > '32.67731067496107', 'windDir': '359.9999989290794', 'windGust': > '3.569735351760528e-08', 'windGustDir': '359.9999989290794', 'windrun': > 'None', 'windSpeed': '2.9747794449974663e-08' > LOOP: 2023-04-09 09:25:45 AEST (1680996345) 'altimeter': > '31.271589561625774', 'appTemp': '28.457056115297203', 'barometer': > '31.09999998347345', 'cloudbase': '1395.2264891813957', > 'consBatteryVoltage': '12.970996950023848', 'dateTime': '1680996345', > 'dewpoint': '27.20090405959906', 'ET': 'None', 'heatindex': > '32.67585696677618', 'heatingVoltage': '13.010225870450844', 'humidex': > '32.67585696677618', 'inDewpoint': '31.079533586671307', 'inHumidity': > '29.999999338937897', 'inTemp': '63.00000033053105', 'inTempBatteryStatus': > '0', 'maxSolarRad': '636.5009481470474', 'outHumidity': > '79.99999950420342', 'outTemp': '32.67585696677618', > 'outTempBatteryStatus': '0', 'pressure': '31.09999998347345', 'radiation': > '611.2705953482097', 'rain': '0', 'rainBatteryStatus': '0', 'rainRate': > '0.0', 'referenceVoltage': '12.0', 'rxCheckPercent': '42.382919255193926', > 'supplyVoltage': '12.846743389483482', 'txBatteryStatus': '0', 'usUnits': > '1', 'UV': '8.557788334874935', 'windBatteryStatus': '0', 'windchill': > '32.67585696677618', 'windDir': '359.9999970252205', 'windGust': > '9.915931631354624e-08', 'windGustDir': '359.9999970252205', 'windrun': > 'None', 'windSpeed': '8.26327637426516e-08' > LOOP: 2023-04-09 09:25:47 AEST (1680996347) 'altimeter': > '31.271589545688727', 'appTemp': '28.455428383147925', 'barometer': > '31.099999967607957', 'cloudbase': '1395.2181359425792', > 'consBatteryVoltage': '11.773742734400715', 'dateTime': '1680996347', > 'dewpoint': '27.19948747213965', 'ET': 'None', 'heatindex': > '32.67440362506598', 'heatingVoltage': '12.687738346130637', 'humidex': > '32.67440362506598', 'inDewpoint': '31.079533339537207', 'inHumidity': > '29.999998704318294', 'inTemp': '63.00000064784085', 'inTempBatteryStatus': > '0', 'maxSolarRad': '636.5989062952551', 'outHumidity': '79.9999990282387', > 'outTemp': '32.67440362506598', 'outTempBatteryStatus': '0', 'pressure': > '31.099999967607957', 'radiation': '611.4123874830647', 'rain': '0', > 'rainBatteryStatus': '0', 'rainRate': '0.0', 'referenceVoltage': > '12.050131138766899', 'rxCheckPercent': '35.26684549752525', > 'supplyVoltage': '12.0', 'txBatteryStatus': '0', 'usUnits': '1', 'UV': > '8.559773424762906', 'windBatteryStatus': '0', 'windchill': > '32.67440362506598', 'windDir': '359.9999941694322', 'windGust': > '1.9435225873110085e-07', 'windGustDir': '359.9999941694322', 'windrun': > 'None', 'windSpeed': '1.6196021590531018e-07' > LOOP: 2023-04-09 09:25:49 AEST (1680996349) 'altimeter': > '31.271589524439364', 'appTemp': '28.453801049670826', 'barometer': > '31.09999994645397', 'cloudbase': '1395.2097957633393', > 'consBatteryVoltage': '12.0', 'dateTime': '1680996349', 'dewpoint': > '27.19807119372355', 'ET': 'None', 'heatindex': '32.67295064986122', > 'heatingVoltage': '12.0', 'humidex': '32.67295064986122', 'inDewpoint': > '31.079533010025067', 'inHumidity': '29.999997858158842', 'inTemp': > '63.000001070920575', 'inTempBatteryStatus': '0', 'maxSolarRad': > '636.696856978146', 'outHumidity': '79.99999839361908', 'outTemp': > '32.67295064986122', 'outTempBatteryStatus': '0', 'pressure': > '31.09999994645397', 'radiation': '611.5541701906544', 'rain': '0', > 'rainBatteryStatus': '0', 'rainRate': '0.0', 'referenceVoltage': '12.0', > 'rxCheckPercent': '34.17969789148699', 'supplyVoltage': '12.0', > 'txBatteryStatus': '0', 'usUnits': '1', 'UV': '8.561758382669161', > 'windBatteryStatus': '0', 'windchill': '32.67295064986122', 'windDir': > '359.99999036171454', 'windGust': '3.2127618254662593e-07', 'windGustDir': > '359.99999036171454', 'windrun': 'None', 'windSpeed': > '2.677301518261288e-07' > LOOP: 2023-04-09 09:25:51 AEST (1680996351) 'altimeter': > '31.27158949787764', 'appTemp': '28.452174114894166', 'barometer': > '31.099999920011488', 'cloudbase': '1395.2014686436103', > 'consBatteryVoltage': '11.684219474337862', 'dateTime': '1680996351', > 'dewpoint': '27.1966552243818', 'ET': 'None', 'heatindex': > '32.67149804119266', 'heatingVoltage': '12.388091115942846', 'humidex': > '32.67149804119266', 'inDewpoint': '31.07953259813488', 'inHumidity': > '29.999996800459563', 'inTemp': '63.000001599770215', > 'inTempBatteryStatus': '0', 'maxSolarRad': '636.794741652946', > 'outHumidity': '79.99999760034457', 'outTemp': '32.67149804119266', > 'outTempBatteryStatus': '0', 'pressure': '31.099999920011488', 'radiation': > '611.6959434589819', 'rain': '0', 'rainBatteryStatus': '0', 'rainRate': > '0.0', 'referenceVoltage': '12.0', 'rxCheckPercent': '26.91015806941578', > 'supplyVoltage': '11.797093599105207', 'txBatteryStatus': '0', 'usUnits': > '1', 'UV': '8.563743208425747', 'windBatteryStatus': '0', 'windchill': > '32.67149804119266', 'windDir': '359.99998560206745', 'windGust': > '4.799310850955862e-07', 'windGustDir': '359.99998560206745', 'windrun': > 'None', 'windSpeed': '3.9994257061692906e-07' > LOOP: 2023-04-09 09:25:53 AEST (1680996353) 'altimeter': > '31.271589466003576', 'appTemp': '28.450547578846155', 'barometer': > '31.099999888280507', 'cloudbase': '1395.1931545833327', > 'consBatteryVoltage': '11.409224398330512', 'dateTime': '1680996353', > 'dewpoint': '27.19523956414537', 'ET': 'None', 'heatindex': > '32.670045799091014', 'heatingVoltage': '10.825067818569881', 'humidex': > '32.670045799091014', 'inDewpoint': '31.079532103866647', 'inHumidity': > '29.999995531220478', 'inTemp': '63.00000223438976', 'inTempBatteryStatus': > '0', 'maxSolarRad': '636.8926188682768', 'outHumidity': > '79.99999664841516', 'outTemp': '32.670045799091014', > 'outTempBatteryStatus': '0', 'pressure': '31.099999888280507', 'radiation': > '611.8377072760517', 'rain': '0', 'rainBatteryStatus': '0', 'rainRate': > '0.0', 'referenceVoltage': '11.292194218237315', 'rxCheckPercent': > '26.71465273136759', 'supplyVoltage': '10.948895428159915', > 'txBatteryStatus': '0', 'usUnits': '1', 'UV': '8.565727901864724', > 'windBatteryStatus': '0', 'windchill': '32.670045799091014', 'windDir': > '359.99997989049103', 'windGust': '6.703169663779818e-07', 'windGustDir': > '359.99997989049103', 'windrun': 'None', 'windSpeed': > '5.585974713895325e-07' > LOOP: 2023-04-09 09:25:55 AEST (1680996355) 'altimeter': > '31.271589428817187', 'appTemp': '28.44892144155503', 'barometer': > '31.099999851261032', 'cloudbase': '1395.1848535824427', > 'consBatteryVoltage': '12.027969245394328', 'dateTime': '1680996355', > 'dewpoint': '27.19382421304527', 'ET': 'None', 'heatindex': > '32.668593923587', 'heatingVoltage': '12.87036182863151', 'humidex': > '32.668593923587', 'inDewpoint': '31.07953152722033', 'inHumidity': > '29.999994050441607', 'inTemp': '63.00000297477919', 'inTempBatteryStatus': > '0', 'maxSolarRad': '636.9904886226024', 'outHumidity': > '79.99999553783087', 'outTemp': '32.668593923587', 'outTempBatteryStatus': > '0', 'pressure': '31.099999851261032', 'radiation': '611.9794616298668', > 'rain': '0', 'rainBatteryStatus': '0', 'rainRate': '0.0', > 'referenceVoltage': '12.0', 'rxCheckPercent': '31.06601192881312', > 'supplyVoltage': '11.244782894952689', 'txBatteryStatus': '0', 'usUnits': > '1', 'UV': '8.567712462818136', 'windBatteryStatus': '0', 'windchill': > '32.668593923587', 'windDir': '359.9999732269853', 'windGust': > '8.924338246174557e-07', 'windGustDir': '359.9999732269853', 'windrun': > 'None', 'windSpeed': '7.436948541439392e-07' > LOOP: 2023-04-09 09:25:57 AEST (1680996357) 'altimeter': > '31.271589386318446', 'appTemp': '28.447295703049008', 'barometer': > '31.099999808953058', 'cloudbase': '1395.1765656408763', > 'consBatteryVoltage': '13.1184017154268', 'dateTime': '1680996357', > 'dewpoint': '27.192409171112494', 'ET': 'None', 'heatindex': > '32.66714241471133', 'heatingVoltage': '12.0', 'humidex': > '32.66714241471133', 'inDewpoint': '31.079530868195928', 'inHumidity': > '29.999992358122995', 'inTemp': '63.0000038209385', 'inTempBatteryStatus': > '0', 'maxSolarRad': '637.0883509143866', 'outHumidity': '79.9999942685917', > 'outTemp': '32.66714241471133', 'outTempBatteryStatus': '0', 'pressure': > '31.099999808953058', 'radiation': '612.1212065084344', 'rain': '0', > 'rainBatteryStatus': '0', 'rainRate': '0.0', 'referenceVoltage': > '12.366827029759545', 'rxCheckPercent': '31.06601192881312', > 'supplyVoltage': '11.304532729344425', 'txBatteryStatus': '0', 'usUnits': > '1', 'UV': '8.569696891118081', 'windBatteryStatus': '0', 'windchill': > '32.66714241471133', 'windDir': '359.9999656115502', 'windGust': > '1.146281659814008e-06', 'windGustDir': '359.9999656115502', 'windrun': > 'None', 'windSpeed': '9.552347171037923e-07' > LOOP: 2023-04-09 09:25:59 AEST (1680996359) 'altimeter': > '31.271589338507336', 'appTemp': '28.44567036335628', 'barometer': > '31.09999976135659', 'cloudbase': '1395.168290758574', > 'consBatteryVoltage': '13.074958789210047', 'dateTime': '1680996359', > 'dewpoint': '27.190994438377995', 'ET': 'None', 'heatindex': > '32.6656912724947', 'heatingVoltage': '12.60971840943415', 'humidex': > '32.6656912724947', 'inDewpoint': '31.07953012679343', 'inHumidity': > '29.999990454264665', 'inTemp': '63.00000477286767', 'inTempBatteryStatus': > '0', 'maxSolarRad': '637.1862057420942', 'outHumidity': > '79.99999284069764', 'outTemp': '32.6656912724947', 'outTempBatteryStatus': > '0', 'pressure': '31.09999976135659', 'radiation': '612.2629418997595', > 'rain': '0', 'rainBatteryStatus': '0', 'rainRate': '0.0', > 'referenceVoltage': '12.0', 'rxCheckPercent': '31.06601192881312', > 'supplyVoltage': '12.195712791002382', 'txBatteryStatus': '0', 'usUnits': > '1', 'UV': '8.571681186596633', 'windBatteryStatus': '0', 'windchill': > '32.6656912724947', 'windDir': '359.99995704418586', 'windGust': > '1.4318604710794602e-06', 'windGustDir': '359.99995704418586', 'windrun': > 'None', 'windSpeed': '1.1932170593809133e-06' > LOOP: 2023-04-09 09:26:01 AEST (1680996361) 'altimeter': > '31.271589285383918', 'appTemp': '28.4440454225051', 'barometer': > '31.099999708471625', 'cloudbase': '1395.16002893547', > 'consBatteryVoltage': '12.177474697097402', 'dateTime': '1680996361', > 'daymaxwind': '7.2', 'dewpoint': '27.18958001487279', 'ET': 'None', > 'extraHumid1': '48', 'extraHumid2': '50', 'extraHumid3': '53', > 'extraHumid4': '54', 'extraHumid5': '50', 'extraHumid6': '49', > 'extraHumid7': '50', 'extraTemp1': '74.30000000000001', 'extraTemp2': > '73.03999999999999', 'extraTemp3': '71.78', 'extraTemp4': '73.4', > 'extraTemp5': '72.86', 'extraTemp6': '73.4', 'extraTemp7': '72.68', > 'extraTemp9': '73.75999999999999', 'heatindex': '32.664240496967835', > 'heatingVoltage': '12.909932333368173', 'humidex': '32.664240496967835', > 'inDewpoint': '31.07952930301281', 'inHumidity': '29.999988338866665', > 'inTemp': '63.000005830566664', 'inTempBatteryStatus': '0', > 'lightning_distance': '14.912908608', 'lightning_last_det_time': > '1678608960', 'lightning_strike_count': '0', 'lightningcount': '0', > 'luminosity': '7740.0', 'maxSolarRad': '637.2839945852726', 'outHumidity': > '79.99999125414872', 'outTemp': '32.664240496967835', > 'outTempBatteryStatus': '0', 'p_dayRain': '0.0', 'p_monthRain': > '2.4645669291338583', 'p_rain': '0.0', 'p_rainRate': '0.0', 'p_stormRain': > '0.0', 'p_weekRain': '0.5905511811023623', 'p_yearRain': > '19.27952755905512', 'pm2_5': '7.0', 'pm2_51_24h_avg': '7.5', 'pressure': > '31.099999708471625', 'radiation': '612.4046677918484', 'rain': '0', > 'rainBatteryStatus': '0', 'rainRate': '0.0', 'referenceVoltage': > '11.246298422910774', 'relbarometer': '1002.8', 'rxCheckPercent': > '32.1673443172317', 'soilMoist1': '3', 'soilMoist3': '63', 'supplyVoltage': > '12.083041438242383', 'txBatteryStatus': '0', 'usUnits': '1', 'UV': > '8.573665349085879', 'uvradiation': '0.0', 'wh31_ch1_batt': '0', > 'wh31_ch1_sig': '4', 'wh31_ch2_batt': '0', 'wh31_ch2_sig': '4', > 'wh31_ch3_batt': '0', 'wh31_ch3_sig': '4', 'wh31_ch4_batt': '0', > 'wh31_ch4_sig': '4', 'wh31_ch5_batt': '0', 'wh31_ch5_sig': '4', > 'wh31_ch6_batt': '0', 'wh31_ch6_sig': '4', 'wh31_ch7_batt': '0', > 'wh31_ch7_sig': '4', 'wh32_batt': '0', 'wh32_sig': '4', 'wh41_ch1_batt': > '6', 'wh41_ch1_sig': '4', 'wh51_ch1_batt': '1.3', 'wh51_ch1_sig': '4', > 'wh51_ch2_batt': 'None', 'wh51_ch2_sig': '0', 'wh51_ch3_batt': '1.4', > 'wh51_ch3_sig': '4', 'wh57_batt': '4', 'wh57_sig': '4', > 'windBatteryStatus': '0', 'windchill': '32.664240496967835', 'windDir': > '359.9999475248924', 'windGust': '1.7491702557492772e-06', 'windGustDir': > '359.9999475248924', 'windrun': 'None', 'windSpeed': > '1.4576418791989454e-06', 'wn34_ch1_batt': '1.54', 'wn34_ch1_sig': '4', > 'ws90_batt': '3.28', 'ws90_sig': '4' > LOOP: 2023-04-09 09:26:03 AEST (1680996363) 'altimeter': > '31.27158922694815', 'appTemp': '28.442420880523628', 'barometer': > '31.099999650298166', 'cloudbase': '1395.151780171505', > 'consBatteryVoltage': '12.050549718826872', 'dateTime': '1680996363', > 'dewpoint': '27.18816590062781', 'ET': 'None', 'heatindex': > '32.66279008816141', 'heatingVoltage': '10.89454067698934', 'humidex': > '32.66279008816141', 'inDewpoint': '31.07952839685406', 'inHumidity': > '29.999986011929035', 'inTemp': '63.00000699403548', 'inTempBatteryStatus': > '0', 'maxSolarRad': '637.3817759702349', 'outHumidity': > '79.99998950894494', 'outTemp': '32.66279008816141', > 'outTempBatteryStatus': '0', 'pressure': '31.099999650298166', 'radiation': > '612.5463841727105', 'rain': '0', 'rainBatteryStatus': '0', 'rainRate': > '0.0', 'referenceVoltage': '12.755723236821073', 'rxCheckPercent': > '38.74516456949142', 'supplyVoltage': '12.1033915398232', > 'txBatteryStatus': '0', 'usUnits': '1', 'UV': '8.575649378417948', > 'windBatteryStatus': '0', 'windchill': '32.66279008816141', 'windDir': > '359.99993705366967', 'windGust': '2.0982110111589236e-06', 'windGustDir': > '359.99993705366967', 'windrun': 'None', 'windSpeed': > '1.7485091765578886e-06' > LOOP: 2023-04-09 09:26:05 AEST (1680996365) 'altimeter': > '31.271589163200048', 'appTemp': '28.440796737440046', 'barometer': > '31.099999586836212', 'cloudbase': '1395.1435444666135', > 'consBatteryVoltage': '11.595460924005934', 'dateTime': '1680996365', > 'dewpoint': '27.186752095674013', 'ET': 'None', 'heatindex': > '32.66134004610609', 'heatingVoltage': '11.483222091822254', 'humidex': > '32.66134004610609', 'inDewpoint': '31.07952740831714', 'inHumidity': > '29.999983473451827', 'inTemp': '63.00000826327408', 'inTempBatteryStatus': > '0', 'maxSolarRad': '637.4796084054396', 'outHumidity': > '79.99998760508632', 'outTemp': '32.66134004610609', > 'outTempBatteryStatus': '0', 'pressure': '31.099999586836212', 'radiation': > '612.688091030353', 'rain': '0', 'rainBatteryStatus': '0', 'rainRate': > '0.0', 'referenceVoltage': '11.984165303216498', 'rxCheckPercent': > '36.15071944877823', 'supplyVoltage': '12.830922020695365', > 'txBatteryStatus': '0', 'usUnits': '1', 'UV': '8.577633274424942', > 'windBatteryStatus': '0', 'windchill': '32.66134004610609', 'windDir': > '359.99992563051785', 'windGust': '2.478982738196578e-06', 'windGustDir': > '359.99992563051785', 'windrun': 'None', 'windSpeed': > '2.0658189479050293e-06' > > In the above extract you can easily identify the augmented loop packets by > their size. Looking at your loop packets we see every loop packet contains > every Ecowitt observation. > > There is nothing wrong with caching, it is often necessary with stations > that emit partial loop packets, but it needs to be done properly. Fields > such as outTemp, outHumidity etc can be easily cached, you just retain > the last value and keep churning it out until a new value arrives or the > old data is deemed stale. However, with fields such as rain and > lightning_strike_count where the value is a per-period total, you cannot > simply churn out the last value as it will appear that each loop packet > contains the cached rain or lightning_strike_count value. The problem is > masked if the per-period field is zero, but when it is non-zero you have > repeated non-zero values appearing until a new value is saved to the cache. > In you case the cache is updated every 20 seconds when the Ecowitt device > is polled so you end up with nine loop packets containing bogus non-zero > data. If you look at the loop packets around when your tripped your > lightning detector you can see what I mean (I've removed extraneous fields > for clarity): > > LOOP: 2023-04-08 16:57:07 BST (1680969427) 'lightning_distance': > '0.621371192', 'lightning_last_det_time': '1680955010', > 'lightning_strike_count': '0', 'lightningcount': '7' > LOOP: 2023-04-08 16:57:09 BST (1680969429) 'lightning_distance': > '0.621371192', 'lightning_last_det_time': '1680955010', > 'lightning_strike_count': '0', 'lightningcount': '7' > LOOP: 2023-04-08 16:57:11 BST (1680969431) 'lightning_distance': > '0.621371192', 'lightning_last_det_time': '1680969416', > 'lightning_strike_count': '2', 'lightningcount': '9' > LOOP: 2023-04-08 16:57:13 BST (1680969433) 'lightning_distance': > '0.621371192', 'lightning_last_det_time': '1680969416', > 'lightning_strike_count': '2', 'lightningcount': '9' > LOOP: 2023-04-08 16:57:15 BST (1680969435) 'lightning_distance': > '0.621371192', 'lightning_last_det_time': '1680969416', > 'lightning_strike_count': '2', 'lightningcount': '9' > LOOP: 2023-04-08 16:57:17 BST (1680969437) 'lightning_distance': > '0.621371192', 'lightning_last_det_time': '1680969416', > 'lightning_strike_count': '2', 'lightningcount': '9' > LOOP: 2023-04-08 16:57:19 BST (1680969439) 'lightning_distance': > '0.621371192', 'lightning_last_det_time': '1680969416', > 'lightning_strike_count': '2', 'lightningcount': '9' > LOOP: 2023-04-08 16:57:21 BST (1680969441) 'lightning_distance': > '0.621371192', 'lightning_last_det_time': '1680969416', > 'lightning_strike_count': '2', 'lightningcount': '9' > LOOP: 2023-04-08 16:57:23 BST (1680969443) 'lightning_distance': > '0.621371192', 'lightning_last_det_time': '1680969416', > 'lightning_strike_count': '2', 'lightningcount': '9' > LOOP: 2023-04-08 16:57:25 BST (1680969445) 'lightning_distance': > '0.621371192', 'lightning_last_det_time': '1680969416', > 'lightning_strike_count': '2', 'lightningcount': '9' > LOOP: 2023-04-08 16:57:27 BST (1680969447) 'lightning_distance': > '0.621371192', 'lightning_last_det_time': '1680969416', > 'lightning_strike_count': '2', 'lightningcount': '9' > LOOP: 2023-04-08 16:57:29 BST (1680969449) 'lightning_distance': > '0.621371192', 'lightning_last_det_time': '1680969416', > 'lightning_strike_count': '2', 'lightningcount': '9' > LOOP: 2023-04-08 16:57:31 BST (1680969451) 'lightning_distance': > '0.621371192', 'lightning_last_det_time': '1680969416', > 'lightning_strike_count': '0', 'lightningcount': '9' > LOOP: 2023-04-08 16:57:33 BST (1680969453) 'lightning_distance': > '0.621371192', 'lightning_last_det_time': '1680969416', > 'lightning_strike_count': '0', 'lightningcount': '9' > LOOP: 2023-04-08 16:57:35 BST (1680969455) 'lightning_distance': > '0.621371192', 'lightning_last_det_time': '1680969416', > 'lightning_strike_count': '0', 'lightningcount': '9' > > Here the 16:57:11 loop packet contained fresh Ecowitt data and due to > caching the same data was repeated in subsequent loop packets until the > Ecowitt device was next read 20 seconds later. > > The reason you do not see the problem when the Ecowitt polling period is > one second is that the cache (of whatever is caching loop packets) is > updated approx every one second so the incorrectly cached > lightning_strike_count data is never used. As soon as you increase the > Ecowitt polling interval above the vantage loop interval you will start > (eventually) see some packets with incorrect cached lightning data. > > I can't be sure what service is doing the caching, but judging by the > entries in the log extract provided I would be suspicious of > user.divumwx.DivumWXRealTime. The service name and a lot of the > associated log entries sound very much like there is caching going on. I've > been unable to find that service or its associated python file anywhere so > I can' be certain. You could try disabling user.divumwx.DivumWXRealTime and > running WeeWX directly and exciting the lightning detector. If the loop > packet lightning_strike_count data is correct I think you have the > culprit. > > How to fix? Well there are a couple of possibilities: > 1. poll the Ecowitt device at least every two seconds > 2. find whatever service is caching loop packets and fix it, either so > that it correctly caches per-period obs or does not cache them at all > > I really don't recommend 1, not only is it wasteful (I believe Ecowitt > sensors update at no faster than every 6 seconds with most (including WH57) > updating far less frequently). You also have the potential to overload the > Ecowitt gateway device. I would look at 2, in particular the > user.divumwx.DivumWXRealTime service and try to make it properly cache > lightning_strike_count data. Looking through the log I found the > highlighted entry: > > Apr 8 09:10:26 raspberrypi weewx[1030] DEBUG weewx.engine: Loading > service user.divumwx.DivumWXRealTime > Apr 8 09:10:26 raspberrypi weewx[1030] DEBUG user.gw1000: Unknown field > address '7B' detected. Remaining data '00' ignored. > Apr 8 09:10:26 raspberrypi weewx[1030] DEBUG user.gw1000: Next update in > 1 seconds > Apr 8 09:10:26 raspberrypi weewx[1030] INFO user.divumwx: service version > is 0.4 > Apr 8 09:10:26 raspberrypi weewx[1030] INFO user.divumwx: 'None' values > will be displayed as NULL > Apr 8 09:10:26 raspberrypi weewx[1030] INFO user.divumwx: units will be > displayed as METRICWX > Apr 8 09:10:26 raspberrypi weewx[1030] INFO user.divumwx: zambretti > forecast: False > Apr 8 09:10:26 raspberrypi weewx[1030] INFO user.divumwx: Web Service: aq > is running > Apr 8 09:10:26 raspberrypi weewx[1030] DEBUG user.divumwx: SkyObject > Url_so 1 > https://www.fourmilab.ch/cgi-bin/Earth?img=NASAmMM.evif&imgsize=320&dynimg=y&opt=-l&lat=51.000&ns=North&lon=3.112&ew=West&alt=35785&tle=&date=0&utc=&jd=/Earth.jpg > Apr 8 09:10:26 raspberrypi weewx[1030] DEBUG user.divumwx: SkyObject > service has started > Apr 8 09:10:26 raspberrypi weewx[1030] DEBUG user.divumwx: SkyObject > Url_so 2 > https://www.fourmilab.ch/cgi-bin/Earth?img=LRO_100m.evif&imgsize=320&dynimg=y&gamma=1.32&opt=-l&lat=51.000&ns=North&lon=3.112&ew=West&alt=5000&tle=&date=0&utc=&jd=/Earth.jpg > Apr 8 09:10:26 raspberrypi weewx[1030] DEBUG user.divumwx: SkyObject > File_so 1 /var/www/html/weewx/divumwx/img/earth-1.jpg > Apr 8 09:10:26 raspberrypi weewx[1030] DEBUG user.divumwx: SkyObject > File_so 2 /var/www/html/weewx/divumwx/img/moon-1.jpg > Apr 8 09:10:26 raspberrypi weewx[1030] DEBUG user.divumwx: CloudCover Url > 1 > https://api.sat24.com/crop?type=visual5hdcomplete&lat=51.00098&lon=-3.11276&width=300&height=300&zoom=1.00&continent=eu > Apr 8 09:10:26 raspberrypi weewx[1030] DEBUG user.divumwx: CloudCover Url > 2 > https://api.sat24.com/crop?type=infraPolair&lat=51.00098&lon=-3.11276&width=300&height=300&zoom=1.00&continent=eu > Apr 8 09:10:26 raspberrypi weewx[1030] DEBUG user.divumwx: CloudCover > File 1 /tmp/divumwx/sat1.png > Apr 8 09:10:26 raspberrypi weewx[1030] DEBUG user.divumwx: CloudCover > File 2 /tmp/divumwx/sat2.png > Apr 8 09:10:26 raspberrypi weewx[1030] DEBUG user.divumwx: CloudCover > service has started > Apr 8 09:10:26 raspberrypi weewx[1030] DEBUG user.divumwx: excluding > fields: {'rain'} > Apr 8 09:10:26 raspberrypi weewx[1030] INFO user.divumwx: DivumWX > DivumWXRealTime in cache is: True > Apr 8 09:10:26 raspberrypi weewx[1030] DEBUG weewx.engine: Finished > loading service user.divumwx.DivumWXRealTime > > That sounds very much like rain (another per-period observation) is being > omitted from caching, perhaps there is some setting in that service to set > which fields are ignored. Not much you can do if it is hard-coded other > than approach the author to fix it. > > Gary > > -- > 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]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/weewx-user/f76f25e9-8188-45b7-9adc-34a2fe7007f2n%40googlegroups.com > <https://groups.google.com/d/msgid/weewx-user/f76f25e9-8188-45b7-9adc-34a2fe7007f2n%40googlegroups.com?utm_medium=email&utm_source=footer> > . > -- 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]. To view this discussion on the web visit https://groups.google.com/d/msgid/weewx-user/CAPq0zECMAm0YGPhNd__j44aeWGS8uNia7cRA82%3DOvnU6M2S_Pg%40mail.gmail.com.
