Thanks for the reply. I did more tests, but I still cannot figure out 
what's wrong.
So I prepared a new dummy data service (attached) to rule out an issue with 
my original one: I have the same issue. This new data service does nothing 
except print the record. It is based on the example provided in the 
documentation.

Here is what I get when I enable the data service with the following 
configuration in weex.conf:

[Engine]
  [[Services]]
    prep_services = weewx.engine.StdTimeSynch
    process_services = weewx.engine.StdConvert, weewx.engine.StdCalibrate, 
weewx.engine.StdQC, weewx.wxservices.StdWXCalculate
    xtype_services = weewx.wxxtypes.StdWXXTypes, 
weewx.wxxtypes.StdPressureCooker, weewx.wxxtypes.StdRainRater, 
weewx.wxxtypes.StdDelta
    archive_services = weewx.engine.StdArchive
    restful_services = weewx.restx.StdStationRegistry, 
weewx.restx.StdWunderground, weewx.restx.StdPWSweather, 
weewx.restx.StdCWOP, weewx.restx.StdWOW, weewx.restx.StdAWEKAS, 
user.mqtt.MQTT
    report_services = weewx.engine.StdPrint, weewx.engine.StdReport
    data_services = user.dummyDataService.PrintPacket

The output produced is:
2024-10-26 17:55:02 weewxd[1]: DEBUG user.dummyDataService: Dummy data 
service - printing archive record
2024-10-26 17:55:02 weewxd[1]: DEBUG user.dummyDataService: {'dateTime': 
1729958100, 'usUnits': 1, 'interval': 5, 'rxCheckPercent': 99.9375, 
'outTemp': 59.2, 'highOutTemp': 59.3, 'lowOutTemp': 59.2, 'rain': 0.0, 
'rainRate': 0.0, 'barometer': 30.002, 'radiation': 6.0, 'wind_samples': 
117.0, 'inTemp': 79.5, 'inHumidity': 54.0, 'outHumidity': 93.0, 
'windSpeed': 1.0, 'windGust': 3.0, 'windGustDir': 270.0, 'windDir': 315.0, 
'ET': 0.0, 'highRadiation': 9.0, 'forecastRule': 44}
2024-10-26 17:55:02 weewxd[1]: INFO weewx.manager: Added record 2024-10-26 
17:55:00 CEST (1729958100) to database 'weewx'
2024-10-26 17:55:02 weewxd[1]: INFO weewx.manager: Added record 2024-10-26 
17:55:00 CEST (1729958100) to daily summary in 'weewx'
REC: 2024-10-26 17:55:00 CEST (1729958100) 'altimeter': 
'1016.3862117251151', 'appTemp': '16.058246419654616', 'barometer': 
'1015.9841754081338', 'cloudbase': '397.1353776690074', 'dateTime': 
'1729958100', 'dewpoint': '13.986259038068189', 'ET': '0.0', 
'forecastRule': '44', 'heatindex': '15.106111111111112', 'highOutTemp': 
'15.166666666666664', 'highRadiation': '9.0', 'humidex': 
'18.474908466486777', 'inDewpoint': '16.319400135449317', 'inHumidity': 
'54.0', 'inTemp': '26.38888888888889', 'interval': '5', 'lowOutTemp': 
'15.111111111111112', 'maxSolarRad': '15.956834013222045', 'outHumidity': 
'93.0', 'outTemp': '15.111111111111112', 'pressure': '985.3738011279798', 
'radiation': '6.0', 'rain': '0.0', 'rainRate': '0.0', 'rxCheckPercent': 
'99.9375', 'usUnits': '17', 'wind_samples': '117.0', 'windchill': 
'15.111111111111112', 'windDir': '315.0', 'windGust': '1.34112', 
'windGustDir': '270.0', 'windrun': '0.13411199999999998', 'windSpeed': 
'0.44704'
2024-10-26 17:55:02 weewxd[1]: INFO weewx.engine: Starting main packet loop.

Without the data service (I commented out the entire 'data_services' line 
in the configuration above):
REC: 2024-10-26 18:00:00 CEST (1729958400) 'altimeter': 
'1016.3868998672192', 'appTemp': '16.132600646010406', 'barometer': 
'1015.9841754081338', 'cloudbase': '397.1955242260177', 
'consBatteryVoltage': '3.86', 'dateTime': '1729958400', 'dayET': '0.004', 
'dayRain': '47.39999971086', 'dewpoint': '14.04132126433811', 'ET': '0.0', 
'extraAlarm1': '0.0', 'extraAlarm2': '0.0', 'extraAlarm3': '0.0', 
'extraAlarm4': '0.0', 'extraAlarm5': '0.0', 'extraAlarm6': '0.0', 
'extraAlarm7': '0.0', 'extraAlarm8': '0.0', 'forecastIcon': '6.0', 
'forecastRule': '44', 'heatindex': '15.167222222222223', 'highOutTemp': 
'15.166666666666664', 'highRadiation': '0.0', 'humidex': 
'18.562786577632735', 'inDewpoint': '16.319400135449317', 'inHumidity': 
'54.0', 'insideAlarm': '0.0', 'inTemp': '26.38888888888889', 'interval': 
'5', 'lowOutTemp': '15.111111111111112', 'maxSolarRad': 
'10.014834789005617', 'monthET': '1.11', 'monthRain': '330.19999798578', 
'outHumidity': '93.0', 'outsideAlarm1': '0.0', 'outsideAlarm2': '0.0', 
'outTemp': '15.166666666666664', 'pressure': '985.3744721896454', 
'radiation': '0.0', 'rain': '0.0', 'rainAlarm': '0.0', 'rainRate': '0.0', 
'rxCheckPercent': '99.9375', 'soilLeafAlarm1': '0.0', 'soilLeafAlarm2': 
'0.0', 'soilLeafAlarm3': '0.0', 'soilLeafAlarm4': '0.0', 'stormRain': 
'51.59999968523999', 'stormStart': '1729807200.0', 'sunrise': 
'1729922230.2439024', 'sunset': '1729960260.0', 'txBatteryStatus': '0', 
'usUnits': '17', 'wind_samples': '117.0', 'windchill': 
'15.166666666666664', 'windDir': '270.0', 'windGust': '1.34112', 
'windGustDir': '270.0', 'windrun': '0.13411199999999998', 'windSpeed': 
'0.44704', 'windSpeed10': '0.44704', 'yearET': '26.23', 'yearRain': 
'1369.999991643'

When the data service is not enable, the record contains a lot more 
information. From what I have seen, it appears that this information is 
added to what the Vantage is producing. It looks like enabling a data 
service causes this step to be skipped.

Any clues on how I can investigate this further?

Thanks!

-- 
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 visit 
https://groups.google.com/d/msgid/weewx-user/f62dcc08-6e96-45d2-96e4-6fde7526e300n%40googlegroups.com.
import weewx
from weewx.engine import StdService
import logging

log = logging.getLogger(__name__)

class PrintPacket(StdService):

    def __init__(self, engine, config_dict):

      # Initialize my superclass first:
      super(PrintPacket, self).__init__(engine, config_dict)

      # Bind to any new archive record events:
      self.bind(weewx.NEW_ARCHIVE_RECORD, self.new_archive_record)

    def new_archive_record(self, event):

        log.debug(event.record)

Reply via email to